From d40ba24ab5e32af2664e757158c37fce30d64a2a Mon Sep 17 00:00:00 2001 From: Hexugory Date: Wed, 29 Mar 2023 16:03:17 -0500 Subject: [PATCH] make slash commands more workable --- src/commands/deployslash.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/deployslash.ts b/src/commands/deployslash.ts index 04aea34..e43b541 100644 --- a/src/commands/deployslash.ts +++ b/src/commands/deployslash.ts @@ -15,6 +15,8 @@ export class DeploySlashCommand implements Command{ async execute(msg: Message) { const client = msg.client as CommandClient; + await client.application!.commands.set([]); + client.slashCommands.forEach(async (command) => { console.log(command); if (command.guildID) {