diff --git a/registerCommands.js b/registerCommands.js deleted file mode 100644 index fe8d2ae..0000000 --- a/registerCommands.js +++ /dev/null @@ -1,27 +0,0 @@ -const { REST } = require('@discordjs/rest'); -const { Routes } = require('discord-api-types/v9'); -const { clientId, guildId, token } = require('./config.json'); - -const commands = [ - { - name: 'bustme', - description: 'Affiche votre avatar sur une image de buste', - } -]; - -const rest = new REST({ version: '9' }).setToken(token); - -(async () => { - try { - console.log('Started refreshing application (/) commands.'); - - await rest.put( - Routes.applicationGuildCommands(clientId, guildId), - { body: commands }, - ); - - console.log('Successfully reloaded application (/) commands.'); - } catch (error) { - console.error(error); - } -})();