make this work again

This commit is contained in:
2025-11-08 23:10:20 -05:00
parent 52b8b60793
commit d6d1e5ef0b

View File

@@ -34,11 +34,8 @@ const rest = new REST().setToken(token);
try { try {
console.log(`Started refreshing ${commands.length} application (/) commands.`); console.log(`Started refreshing ${commands.length} application (/) commands.`);
// The put method is used to fully refresh all commands in the guild with the current set // The put method is used to fully refresh all commands with the current set
const data = await rest.put( const data = await rest.put(Routes.applicationCommands(client), { body: commands });
Routes.applicationCommands(client),
{ body: commands },
);
console.log(`Successfully reloaded ${data.length} application (/) commands.`); console.log(`Successfully reloaded ${data.length} application (/) commands.`);
} catch (error) { } catch (error) {