Skip to content
Extraits de code Groupes Projets
Valider c6609ba6 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Typo

parent 70975e02
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -40,7 +40,7 @@ auth: ...@@ -40,7 +40,7 @@ auth:
botToken: "foobar" botToken: "foobar"
# You must enable "Privileged Gateway Intents" in your bot settings on discord.com (e.g.g https://discord.com/developers/applications/12345/bot) # You must enable "Privileged Gateway Intents" in your bot settings on discord.com (e.g.g https://discord.com/developers/applications/12345/bot)
# for this to work # for this to work
usePriviledgedIntents: false usePrivilegedIntents: false
logging: logging:
# What level should the logger output to the console at. # What level should the logger output to the console at.
console: "warn" #silly, verbose, info, http, warn, error, silent console: "warn" #silly, verbose, info, http, warn, error, silent
......
...@@ -34,7 +34,7 @@ properties: ...@@ -34,7 +34,7 @@ properties:
type: "string" type: "string"
botToken: botToken:
type: "string" type: "string"
usePriviledgedIntents: usePrivilegedIntents:
type: "boolean" type: "boolean"
logging: logging:
type: "object" type: "object"
......
...@@ -40,10 +40,10 @@ export class DiscordClientFactory { ...@@ -40,10 +40,10 @@ export class DiscordClientFactory {
// We just need to make sure we have a bearer token. // We just need to make sure we have a bearer token.
// Create a new Bot client. // Create a new Bot client.
this.botClient = new DiscordClient({ this.botClient = new DiscordClient({
fetchAllMembers: this.config.usePriviledgedIntents, fetchAllMembers: this.config.usePrivilegedIntents,
messageCacheLifetime: 5, messageCacheLifetime: 5,
ws: { ws: {
intents: this.config.usePriviledgedIntents ? Intents.PRIVILEGED : Intents.NON_PRIVILEGED, intents: this.config.usePrivilegedIntents ? Intents.PRIVILEGED : Intents.NON_PRIVILEGED,
}, },
}); });
......
...@@ -108,7 +108,7 @@ export class DiscordBridgeConfigDatabase { ...@@ -108,7 +108,7 @@ export class DiscordBridgeConfigDatabase {
export class DiscordBridgeConfigAuth { export class DiscordBridgeConfigAuth {
public clientID: string; public clientID: string;
public botToken: string; public botToken: string;
public usePriviledgedIntents: boolean; public usePrivilegedIntents: boolean;
} }
export class DiscordBridgeConfigLogging { export class DiscordBridgeConfigLogging {
......
...@@ -584,9 +584,9 @@ bcrypt-pbkdf@^1.0.0: ...@@ -584,9 +584,9 @@ bcrypt-pbkdf@^1.0.0:
dependencies: dependencies:
tweetnacl "^0.14.3" tweetnacl "^0.14.3"
"better-discord.js@https://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117": "better-discord.js@git://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117":
version "12.3.1" version "12.3.1"
resolved "https://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117" resolved "git://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117"
dependencies: dependencies:
"@discordjs/collection" "^0.1.6" "@discordjs/collection" "^0.1.6"
"@discordjs/form-data" "^3.0.1" "@discordjs/form-data" "^3.0.1"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter