diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-19 16:58:07 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-19 16:58:07 -0400 |
commit | ea549295bb5271b0b31852ebf9aa84f95f43d92d (patch) | |
tree | 2d799618f812f30dbdae2f602a9809144bf18d86 /src/lib/extensions/discord-akairo/BushClient.ts | |
parent | 76702f62bc0f0e91ad64eec677ce56813601c906 (diff) | |
download | tanzanite-ea549295bb5271b0b31852ebf9aa84f95f43d92d.tar.gz tanzanite-ea549295bb5271b0b31852ebf9aa84f95f43d92d.tar.bz2 tanzanite-ea549295bb5271b0b31852ebf9aa84f95f43d92d.zip |
refactoring
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClient.ts')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index 68b2599..5f63839 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -202,7 +202,7 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re /** * A custom logging system for the bot. */ - public override logger: BushLogger; + public override logger: BushLogger = new BushLogger(this); /** * Cached global and guild database data. @@ -217,7 +217,7 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re /** * Manages most aspects of the highlight command */ - public override highlightManager = new HighlightManager(); + public override highlightManager: HighlightManager = new HighlightManager(this); /** * The perspective api @@ -227,17 +227,12 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re /** * Client utilities. */ - public override utils: BushClientUtils; + public override utils: BushClientUtils = new BushClientUtils(this); /** - * @param config The configuration for the bot. + * @param config The configuration for the client. */ - public constructor( - /** - * The configuration for the client. - */ - public override config: Config - ) { + public constructor(public override config: Config) { super({ ownerID: config.owners, intents: Object.keys(GatewayIntentBits) @@ -256,8 +251,6 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re patch(this); this.token = config.token as If<Ready, string, string | null>; - this.logger = new BushLogger(this); - this.utils = new BushClientUtils(this); /* =-=-= handlers =-=-= */ this.listenerHandler = new BushListenerHandler(this, { |