Formatting

This commit is contained in:
Marius Begby committed 2023-07-09 03:14:54 +02:00
1 parent c7aa9b41c7
commit 5f8f989c6a
2 files changed
+20 -7

No files matched your search

+7 -2
View File
@@ -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.');
+13 -5
View File
@@ -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) {