Skip to content

Commit f178233

Browse files
committed
Fixed Dupe Slash Commands
1 parent e659d1b commit f178233

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

handler/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ module.exports = async (client) => {
4040
arrayOfSlashCommands.push(file);
4141
});
4242
client.on("ready", async () => {
43-
const guild = client.guilds.cache.get("969944638498680872");
44-
guild.commands.set([]);
43+
const guild1 = client.guilds.cache.get("969944638498680872");
44+
guild1.commands.set([]);
45+
46+
const guild2 = client.guilds.cache.get("427865794467069962");
47+
guild2.commands.set([]);
4548

4649
// Register for all the guilds the bot is in
4750
await client.application.commands.set(arrayOfSlashCommands);

0 commit comments

Comments
 (0)