aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-31 22:46:32 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-31 22:46:32 -0400
commit710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd (patch)
treec617d38a53064667e8d501aa1ed539ca1d8db3f7 /src/commands/dev
parent2f2a85707737753b23c8036de085c322641695e1 (diff)
downloadtanzanite-710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd.tar.gz
tanzanite-710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd.tar.bz2
tanzanite-710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd.zip
misc fixes
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(