diff --git a/bot.js b/bot.js index 7f06e4f..854a835 100644 --- a/bot.js +++ b/bot.js @@ -57,6 +57,10 @@ client.on("message", async message => { console.error; } let prefix; + if (!result) { + console.log(`Guild ${message.guild.id} not in database`); + return; + } if (result.prefix) { prefix = result.prefix; } else {