From 74c94b467f7b214e7288521ef4b76967dec816ff Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Sat, 22 Oct 2022 15:59:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20dev=20guild=20commands=20now=20w?= =?UTF-8?q?orking=20as=20expected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/deployCommands/index.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/handlers/deployCommands/index.ts b/src/handlers/deployCommands/index.ts index 4b30c96..7e63c4e 100644 --- a/src/handlers/deployCommands/index.ts +++ b/src/handlers/deployCommands/index.ts @@ -26,15 +26,13 @@ export default async (client: Client) => { throw new Error(`Could not gather command list: ${error}`); }); - await client.application?.commands - .set(commandList, process.env.DISCORD_GUILD_ID) - .then(() => { - logger.info(`Finished updating command list.`); - }); + await client.application?.commands.set(commandList).then(() => { + logger.info(`Finished updating command list.`); + }); if (process.env.NODE_ENV !== "production") { await client.application?.commands - .set(commandList) + .set(commandList, process.env.DISCORD_GUILD_ID) .then(() => logger.info(`Finished updating guild command list.`)); } };