From 5f8f989c6a3487d2e26672bc584ac73a1c7e4a3d Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 9 Jul 2023 03:14:54 +0200 Subject: [PATCH] Formatting --- deploy-commands.js | 9 +++++++-- deploy-system-commands.js | 18 +++++++++++++----- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/deploy-commands.js b/deploy-commands.js index c0018bc..5412554 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -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.'); diff --git a/deploy-system-commands.js b/deploy-system-commands.js index 2af6e57..e7eece6 100644 --- a/deploy-system-commands.js +++ b/deploy-system-commands.js @@ -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) {