Skip to content

Commit 62461fe

Browse files
committed
Added global commands
1 parent 2dd04fe commit 62461fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registerCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const rest = new REST().setToken(config.config.token);
3030

3131
// The put method is used to fully refresh all commands in the guild with the current set
3232
const data = await rest.put(
33-
Routes.applicationGuildCommands(config.config.clientID, config.config.guildID),
33+
config.config.production ? Routes.applicationCommands(config.config.clientID): Routes.applicationGuildCommands(config.config.clientID, config.config.guildID),
3434
{ body: commands },
3535
);
3636

0 commit comments

Comments
 (0)