mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
Formatting
This commit is contained in:
1 parent
c7aa9b41c7
commit
5f8f989c6a
2 files changed
+20
-7
No files matched your search
+7
-2
@@ -16,8 +16,13 @@ const rest = new REST({ version: '10' }).setToken(token);
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
console.log("DEPLOYING BOT SLASH COMMANDS");
|
||||
console.log("Commands: ", commands.map((command) => {return command.name}));
|
||||
console.log('DEPLOYING BOT SLASH COMMANDS');
|
||||
console.log(
|
||||
'Commands: ',
|
||||
commands.map((command) => {
|
||||
return command.name;
|
||||
})
|
||||
);
|
||||
|
||||
console.log('Started refreshing application (/) commands.');
|
||||
|
||||
|
||||
@@ -16,14 +16,22 @@ const rest = new REST({ version: '10' }).setToken(token);
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
console.log("DEPLOYING SYSTEM SLASH COMMANDS");
|
||||
console.log("System Commands: ", systemCommands.map((systemCommand) => {return systemCommand.name}));
|
||||
console.log('DEPLOYING SYSTEM SLASH COMMANDS');
|
||||
console.log(
|
||||
'System Commands: ',
|
||||
systemCommands.map((systemCommand) => {
|
||||
return systemCommand.name;
|
||||
})
|
||||
);
|
||||
|
||||
console.log('Started refreshing application (/) system commands.');
|
||||
|
||||
await rest.put(Routes.applicationGuildCommands(clientId, systemServerGuildId), {
|
||||
body: systemCommands
|
||||
});
|
||||
await rest.put(
|
||||
Routes.applicationGuildCommands(clientId, systemServerGuildId),
|
||||
{
|
||||
body: systemCommands
|
||||
}
|
||||
);
|
||||
|
||||
console.log('Successfully reloaded application (/) system commands.');
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user