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.`)); } };