From 45f6cc57ef53163928a5f792e2cf6bcb1d201a6c Mon Sep 17 00:00:00 2001 From: Tyman Date: Fri, 7 May 2021 20:09:01 +0000 Subject: format --- src/listeners/client/CreateSlashCommands.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/listeners/client') diff --git a/src/listeners/client/CreateSlashCommands.ts b/src/listeners/client/CreateSlashCommands.ts index f747f4a..b860bec 100644 --- a/src/listeners/client/CreateSlashCommands.ts +++ b/src/listeners/client/CreateSlashCommands.ts @@ -11,7 +11,11 @@ export default class CreateSlashCommands extends BotListener { try { const enabled = await this.client.application.commands.fetch(); for (const command of enabled) { - if (!this.client.commandHandler.modules.find((cmd) => cmd.id == command[1].name)) { + if ( + !this.client.commandHandler.modules.find( + (cmd) => cmd.id == command[1].name + ) + ) { await this.client.application.commands.delete(command[1].id); console.log('deleted', command[1].name); } @@ -38,7 +42,6 @@ export default class CreateSlashCommands extends BotListener { } } - return console.log('Slash commands registered'); } catch (e) { console.log(e); -- cgit