Skip to content

Commit e2ee269

Browse files
committed
fix
1 parent bfd5947 commit e2ee269

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

command-deployer.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ const rest = new REST({ version: '9' }).setToken(token);
1717
try {
1818
console.log('Started refreshing application (/) commands.');
1919

20-
await rest.put(
21-
Routes.applicationGuildCommands(clientId, guildId),
22-
{ body: commands },
23-
);
20+
for (let i = 0; i < guildIds.length; i++) {
21+
await rest.put(
22+
Routes.applicationGuildCommands(clientId, guildIds[i]),
23+
{ body: commands },
24+
);
25+
}
2426

2527
console.log('Successfully reloaded application (/) commands.');
2628
} catch (error) {

0 commit comments

Comments
 (0)