aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts
index d7c8b60..41ecfaf 100644
--- a/src/lib/extensions/discord-akairo/BushClient.ts
+++ b/src/lib/extensions/discord-akairo/BushClient.ts
@@ -299,6 +299,10 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
logging: this.config.logging.db ? (sql) => this.logger.debug(sql) : false,
timezone: 'America/New_York'
});
+
+ // global objects
+ global.client = this;
+ global.util = this.util;
}
/**
@@ -448,10 +452,6 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
return done(null, `intercepted ${arg}`);
});
- // global objects
- global.client = this;
- global.util = this.util;
-
try {
await this.dbPreInit();
await UpdateCacheTask.init(this);