We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd5947 commit e2ee269Copy full SHA for e2ee269
command-deployer.js
@@ -17,10 +17,12 @@ const rest = new REST({ version: '9' }).setToken(token);
17
try {
18
console.log('Started refreshing application (/) commands.');
19
20
- await rest.put(
21
- Routes.applicationGuildCommands(clientId, guildId),
22
- { body: commands },
23
- );
+ for (let i = 0; i < guildIds.length; i++) {
+ await rest.put(
+ Routes.applicationGuildCommands(clientId, guildIds[i]),
+ { body: commands },
24
+ );
25
+ }
26
27
console.log('Successfully reloaded application (/) commands.');
28
} catch (error) {
0 commit comments