Skip to content

Commit

Permalink
Fixed Dupe Slash Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Ki-er committed Jun 27, 2022
1 parent e659d1b commit f178233
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions handler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ module.exports = async (client) => {
arrayOfSlashCommands.push(file);
});
client.on("ready", async () => {
const guild = client.guilds.cache.get("969944638498680872");
guild.commands.set([]);
const guild1 = client.guilds.cache.get("969944638498680872");
guild1.commands.set([]);

const guild2 = client.guilds.cache.get("427865794467069962");
guild2.commands.set([]);

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

0 comments on commit f178233

Please sign in to comment.