From 1603b602384f01741640797a1a2417be2af5af2d Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 12:18:52 -0500 Subject: [PATCH] Fix error log formatting --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 22e6500..77e58e7 100644 --- a/index.js +++ b/index.js @@ -136,7 +136,7 @@ async function kulboardCreate(message) { // Add the ID of the "#bot-logs" channel to the database message.reply(`channel ${channel} created!`) collection.updateOne({ guild_id: message.guild.id }, { $set: { "kulboard_id": `${channel.id}` } }); - }).catch(message.reply(console.error)); + }).catch(console.error); } } else { // Create "#bot-logs" text channel to track message deletes, edits, and channel creations @@ -151,7 +151,7 @@ async function kulboardCreate(message) { // Add the ID of the "#bot-logs" channel to the database message.reply(`channel ${channel} created!`) collection.updateOne({ guild_id: message.guild.id }, { $set: { "kulboard_id": `${channel.id}` } }); - }).catch(console.error)); + }).catch(console.error); } }); }