aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-16 18:22:11 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-16 18:22:11 -0400
commit4014e80e349526f5257f1c4f5aaed732593f3f80 (patch)
treee3bdaa55954ba981ffc764007de4c278d7030749 /src/lib/extensions
parent7889489b0a959e6097db2fd17065e4a36f8be6b3 (diff)
downloadtanzanite-4014e80e349526f5257f1c4f5aaed732593f3f80.tar.gz
tanzanite-4014e80e349526f5257f1c4f5aaed732593f3f80.tar.bz2
tanzanite-4014e80e349526f5257f1c4f5aaed732593f3f80.zip
fix breaking changes
Diffstat (limited to 'src/lib/extensions')
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts4
-rw-r--r--src/lib/extensions/discord.js/BushClientEvents.d.ts5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts
index 4c877f3..48ba90d 100644
--- a/src/lib/extensions/discord-akairo/BushClient.ts
+++ b/src/lib/extensions/discord-akairo/BushClient.ts
@@ -336,9 +336,9 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
inhibitors: this.inhibitorHandler,
tasks: this.taskHandler
};
- for (const loader of Object.keys(loaders)) {
+ for (const loader in loaders) {
try {
- loaders[loader as keyof typeof loaders].loadAll();
+ await loaders[loader as keyof typeof loaders].loadAll();
void this.logger.success('startup', `Successfully loaded <<${loader}>>.`, false);
} catch (e) {
void this.logger.error('startup', `Unable to load loader <<${loader}>> with error:\n${e?.stack || e}`, false);
diff --git a/src/lib/extensions/discord.js/BushClientEvents.d.ts b/src/lib/extensions/discord.js/BushClientEvents.d.ts
index 96dc4c5..eb36153 100644
--- a/src/lib/extensions/discord.js/BushClientEvents.d.ts
+++ b/src/lib/extensions/discord.js/BushClientEvents.d.ts
@@ -85,7 +85,10 @@ export interface BushClientEvents extends ClientEvents {
inviteDelete: [invite: Invite];
messageCreate: [message: BushMessage];
messageDelete: [message: BushMessage | PartialBushMessage];
- messageReactionRemoveAll: [message: BushMessage | PartialBushMessage];
+ messageReactionRemoveAll: [
+ message: BushMessage | PartialBushMessage,
+ reactions: Collection<string, BushMessageReaction>
+ ];
messageReactionRemoveEmoji: [
reaction: BushMessageReaction | PartialBushMessageReaction
];