Enable Slash Commands in All Servers

imgbot
KieranRobson 2022-06-27 09:51:53 +01:00
parent 68ff7e850d
commit c722b21e2b
1 changed files with 1 additions and 7 deletions

View File

@ -40,12 +40,6 @@ module.exports = async (client) => {
arrayOfSlashCommands.push(file); arrayOfSlashCommands.push(file);
}); });
client.on("ready", async () => { client.on("ready", async () => {
// Register for a single guild await client.application.commands.set(arrayOfSlashCommands);
await client.guilds.cache
.get("427865794467069962")
.commands.set(arrayOfSlashCommands);
// Register for all the guilds the bot is in
// await client.application.commands.set(arrayOfSlashCommands);
}); });
}; };