make this work again
This commit is contained in:
@@ -34,11 +34,8 @@ const rest = new REST().setToken(token);
|
||||
try {
|
||||
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
|
||||
const data = await rest.put(
|
||||
Routes.applicationCommands(client),
|
||||
{ body: commands },
|
||||
);
|
||||
// The put method is used to fully refresh all commands with the current set
|
||||
const data = await rest.put(Routes.applicationCommands(client), { body: commands });
|
||||
|
||||
console.log(`Successfully reloaded ${data.length} application (/) commands.`);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user