Enable Slash Commands in All Servers
parent
68ff7e850d
commit
c722b21e2b
|
@ -40,12 +40,6 @@ module.exports = async (client) => {
|
|||
arrayOfSlashCommands.push(file);
|
||||
});
|
||||
client.on("ready", async () => {
|
||||
// Register for a single guild
|
||||
await client.guilds.cache
|
||||
.get("427865794467069962")
|
||||
.commands.set(arrayOfSlashCommands);
|
||||
|
||||
// Register for all the guilds the bot is in
|
||||
// await client.application.commands.set(arrayOfSlashCommands);
|
||||
await client.application.commands.set(arrayOfSlashCommands);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue