🩹 dev guild commands now working as expected
This commit is contained in:
parent
1b4c776037
commit
74c94b467f
1 changed files with 4 additions and 6 deletions
|
@ -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(() => {
|
||||
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.`));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue