We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dd04fe commit 62461feCopy full SHA for 62461fe
1 file changed
src/registerCommands.ts
@@ -30,7 +30,7 @@ const rest = new REST().setToken(config.config.token);
30
31
// The put method is used to fully refresh all commands in the guild with the current set
32
const data = await rest.put(
33
- Routes.applicationGuildCommands(config.config.clientID, config.config.guildID),
+ config.config.production ? Routes.applicationCommands(config.config.clientID): Routes.applicationGuildCommands(config.config.clientID, config.config.guildID),
34
{ body: commands },
35
);
36
0 commit comments