diff --git a/deploy-commands.js b/deploy-commands.js index 6ccb4a1..2051c15 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -1,5 +1,5 @@ const { REST, Routes } = require('discord.js'); -const { clientID, guildID, token } = require('./config.json'); +const { clientID, token } = require('./config.json'); const fs = require('node:fs'); const path = require('node:path'); @@ -34,7 +34,7 @@ const rest = new REST().setToken(token); // The put method is used to fully refresh all commands in the guild with the current set const data = await rest.put( - Routes.applicationGuildCommands(clientID, guildID), + Routes.applicationCommands(clientID), { body: commands }, ); diff --git a/example.config.json b/example.config.json new file mode 100644 index 0000000..93d4218 --- /dev/null +++ b/example.config.json @@ -0,0 +1,4 @@ +{ + "token": "BOT-TOKEN-GOES-HERE", + "clientID": "APP-ID-GOES-HERE", +}