diff --git a/bot.js b/bot.js index 8d43c73..6b911c6 100644 --- a/bot.js +++ b/bot.js @@ -124,7 +124,7 @@ async function aboutBot(message) { } async function memberCountChannelUpdate(member) { - collection.findOne({ guild_id: member.guild.id }, (error, result) => { + collection.findOne({ guild_id: member.guild.id }, async (error, result) => { if (error) { console.error; } @@ -265,7 +265,7 @@ async function memberCountChannelCreate(message) { message.reply("you do not have admin permissions!"); return; } - collection.findOne({ guild_id: message.guild.id }, (error, result) => { + collection.findOne({ guild_id: message.guild.id }, async (error, result) => { if (error) { console.error; }