From cc6f70c41ac691c634fb9ed60322345a33ab5564 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 14 Nov 2021 02:29:42 +0100 Subject: [PATCH] modif de la commande deploy to fit all guilds --- deploy-command.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-command.js b/deploy-command.js index 0090881..f02acb7 100644 --- a/deploy-command.js +++ b/deploy-command.js @@ -1,7 +1,7 @@ const fs = require('fs'); const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v9'); -const { clientId, guildId, token } = require('./config.json'); +const { clientId, token } = require('./config.json'); const commands = [] const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); @@ -13,6 +13,6 @@ for (const file of commandFiles) { const rest = new REST({ version: '9' }).setToken(token); -rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commands }) +rest.put(Routes.applicationCommands(clientId), { body: commands }) .then(() => console.log('Successfully registered application commands.')) .catch(console.error); \ No newline at end of file