aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/setLevel.ts2
-rw-r--r--src/commands/dev/test.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/dev/setLevel.ts b/src/commands/dev/setLevel.ts
index 6603fcf..97527fa 100644
--- a/src/commands/dev/setLevel.ts
+++ b/src/commands/dev/setLevel.ts
@@ -48,7 +48,7 @@ export default class SetLevelCommand extends BushCommand {
});
}
- override async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
{ user, level }: { user: User; level: number }
): Promise<unknown> {
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts
index 0029a3a..5552803 100644
--- a/src/commands/dev/test.ts
+++ b/src/commands/dev/test.ts
@@ -136,8 +136,10 @@ export default class TestCommand extends BushCommand {
// })
// );
const guildCommands = await message.guild.commands.fetch();
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
guildCommands.forEach(async (command) => await command.delete());
const globalCommands = await client.application.commands.fetch();
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
globalCommands.forEach(async (command) => await command.delete());
return await message.util.reply(