From 895a9cefbcf1006d4aa3ff0661f83316626b05b7 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 25 Feb 2023 04:11:01 -0500 Subject: [PATCH] Updated logging in deployCommands to conform --- utilities/deployCommands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities/deployCommands.js b/utilities/deployCommands.js index 502d365..1cc14c3 100644 --- a/utilities/deployCommands.js +++ b/utilities/deployCommands.js @@ -32,17 +32,17 @@ exports.deploy = (guildIDs) => { for (const guildId of guildIDs){ (async () => { try { - console.log(`Started refreshing ${commands.length} application (/) commands for guild ID: ${guildId}.`); + log.DEBUG(`Started refreshing ${commands.length} application (/) commands for guild ID: ${guildId}.`); // The put method is used to fully refresh all commands in the guild with the current set const data = await rest.put( Routes.applicationGuildCommands(clientId, guildId), { body: commands }, ); - console.log(`Successfully reloaded ${data.length} application (/) commands for guild ID: ${guildId}.`); + log.DEBUG(`Successfully reloaded ${data.length} application (/) commands for guild ID: ${guildId}.`); } catch (error) { // And of course, make sure you catch and log any errors! - console.error(error); + log.ERROR(error); } })() }