adding Docker Scripts and some fixes from fork: https://git.ssh.surf/MrTuxedo/rai-serge-discord-bot

This commit is contained in:
Raven Scott
2023-04-08 02:43:12 +02:00
parent e3c5341561
commit cfa2230986
5 changed files with 50 additions and 1 deletions

View File

@ -30,6 +30,10 @@ module.exports = async (client) => {
// // Register for a single guild
// await client.guilds.cache.get("GUIDIDHERE").commands.set(arrayOfSlashCommands);
// Clear previous commands (for changes to installed models)
await client.application.commands.set([]);
// Register for all the guilds the bot is in
await client.application.commands.set(arrayOfSlashCommands);
});