From c6609ba60322a5e55bd5f7a077cb0350eeeb45a0 Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Fri, 6 Nov 2020 17:05:39 +0000 Subject: [PATCH] Typo --- config/config.sample.yaml | 2 +- config/config.schema.yaml | 2 +- src/clientfactory.ts | 4 ++-- src/config.ts | 2 +- yarn.lock | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/config.sample.yaml b/config/config.sample.yaml index 11fc75e..79150b0 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 89fe187..ea46af9 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 54470ce..b2a5bae 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 dfe75e9..51b6c2a 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 a90ac20..2bb55ea 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" -- GitLab