From 1975a4476d07bda39e65655582b6b29ffc934a77 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Sun, 30 Nov 2025 16:24:20 +0100 Subject: [PATCH] fix --- deploy_command.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/deploy_command.js b/deploy_command.js index d3786a5..5b105b6 100644 --- a/deploy_command.js +++ b/deploy_command.js @@ -2,7 +2,6 @@ const { REST, Routes } = require('discord.js'); const fs = require('node:fs'); const path = require('node:path'); module.exports = (token) => { - const guildIds = ["1230809896744779777","1068240252092813373"]; const commands = []; // Grab all the command folders from the commands directory you created earlier const foldersPath = path.join(__dirname, 'commands'); @@ -29,14 +28,11 @@ module.exports = (token) => { // and deploy your commands! (async () => { try { - // The put method is used to fully refresh all commands in the guild with the current set - for(const guildId of guildIds){ - console.log(`Started refreshing ${commands.length} application (/) commands.`); - const data = await rest.put( - Routes.applicationGuildCommands(1256304109393547305n, guildId), - { body: commands }, - ).then(data=>console.log(`Successfully reloaded ${data.length} application (/) commands.`)) - } + console.log(`Started refreshing ${commands.length} application (/) commands.`); + const data = await rest.put( + Routes.applicationGuildCommands(1256304109393547305n, "1068240252092813373"), + { body: commands }, + ).then(data=>console.log(`Successfully reloaded ${data.length} application (/) commands.`)) } catch (error) { // And of course, make sure you catch and log any errors! console.error(error);