Browse Source

Return if no guild resolved when looking for prefix in db

master
Abheek Dhawan 4 years ago
parent
commit
e4a5f48a31
  1. 4
      bot.js

4
bot.js

@ -57,6 +57,10 @@ client.on("message", async message => {
console.error; console.error;
} }
let prefix; let prefix;
if (!result) {
console.log(`Guild ${message.guild.id} not in database`);
return;
}
if (result.prefix) { if (result.prefix) {
prefix = result.prefix; prefix = result.prefix;
} else { } else {

Loading…
Cancel
Save