diff --git a/index.js b/index.js index 1899f39..22e6500 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(`unable to create channel :(`)); + }).catch(message.reply(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(message.reply(`unable to create channel :(`)); + }).catch(console.error)); } }); }