diff --git a/config/config.sample.yaml b/config/config.sample.yaml index 11fc75e5fddf36245ea9daddea2e9eefd589de22..79150b033b586da092661d9127e991dbfa0188af 100644 --- a/config/config.sample.yaml +++ b/config/config.sample.yaml @@ -40,7 +40,7 @@ auth: 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) # for this to work - usePriviledgedIntents: false + usePrivilegedIntents: false logging: # What level should the logger output to the console at. console: "warn" #silly, verbose, info, http, warn, error, silent diff --git a/config/config.schema.yaml b/config/config.schema.yaml index 89fe1876acfbc5b4235652d2f31cb0e067b12bb6..ea46af921b91ff575f98b7adf6fde252d0f68a4d 100644 --- a/config/config.schema.yaml +++ b/config/config.schema.yaml @@ -34,7 +34,7 @@ properties: type: "string" botToken: type: "string" - usePriviledgedIntents: + usePrivilegedIntents: type: "boolean" logging: type: "object" diff --git a/src/clientfactory.ts b/src/clientfactory.ts index 54470cecb417a20e92889bdeafcc8ae3c86fe1dd..b2a5baeb9a1886d40201248f3a8323ad884b8815 100644 --- a/src/clientfactory.ts +++ b/src/clientfactory.ts @@ -40,10 +40,10 @@ export class DiscordClientFactory { // We just need to make sure we have a bearer token. // Create a new Bot client. this.botClient = new DiscordClient({ - fetchAllMembers: this.config.usePriviledgedIntents, + fetchAllMembers: this.config.usePrivilegedIntents, messageCacheLifetime: 5, ws: { - intents: this.config.usePriviledgedIntents ? Intents.PRIVILEGED : Intents.NON_PRIVILEGED, + intents: this.config.usePrivilegedIntents ? Intents.PRIVILEGED : Intents.NON_PRIVILEGED, }, }); diff --git a/src/config.ts b/src/config.ts index dfe75e9a3658ad8ea526fa14ba07060469d58cae..51b6c2ae4c8ba12ed4c5d760044620768d2d73c3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -108,7 +108,7 @@ export class DiscordBridgeConfigDatabase { export class DiscordBridgeConfigAuth { public clientID: string; public botToken: string; - public usePriviledgedIntents: boolean; + public usePrivilegedIntents: boolean; } export class DiscordBridgeConfigLogging { diff --git a/yarn.lock b/yarn.lock index a90ac206a933f204db228230b9385bc1170edfff..2bb55ea9e8095a887dd2af85dcd22f2d16ff7867 100644 --- a/yarn.lock +++ b/yarn.lock @@ -584,9 +584,9 @@ bcrypt-pbkdf@^1.0.0: dependencies: 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" - resolved "https://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117" + resolved "git://github.com/Sorunome/better-discord.js.git#b5a28499899fe2d9e6aa1aa3b3c5d693ae672117" dependencies: "@discordjs/collection" "^0.1.6" "@discordjs/form-data" "^3.0.1"