From f28a34504759dc60430ac08a618fbc33588d6915 Mon Sep 17 00:00:00 2001 From: Dimitrijevic Date: Mon, 6 Nov 2023 23:15:48 +0100 Subject: [PATCH] Supprimer 'registerCommands.js' --- registerCommands.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 registerCommands.js 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); - } -})();