From 56f2214f56f673d1710097e0667f3843726be6dd Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 11:30:44 -0500 Subject: [PATCH] Finish adding bot logs feature --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ed683b3..793a279 100644 --- a/index.js +++ b/index.js @@ -99,8 +99,9 @@ async function startLogs(message) { }] }).then(channel => { // Add the ID of the "#bot-logs" channel to the database + message.reply(`channel ${channel} created!`) collection.updateOne({ guild_id: message.guild.id }, { $set: { "bot_logs_id": `${channel.id}` } }); - }); + }).catch(message.reply(`unable to create channel :(`)); } } });