diff --git a/bot/src/bot/commands/unban.ts b/bot/src/bot/commands/unban.ts index 8adf332..a4aabfc 100644 --- a/bot/src/bot/commands/unban.ts +++ b/bot/src/bot/commands/unban.ts @@ -13,7 +13,7 @@ export default { syntax: '/unban [@user or ID]', category: 'moderation', run: async (message: MessageCommandContext, args: string[]) => { - if (!isModerator(message)) return message.reply(NO_MANAGER_MSG); + if (!await isModerator(message)) return message.reply(NO_MANAGER_MSG); let checkTempBans = async (id: string): Promise => { let tempbans: FindResult = await client.db.get('tempbans').find({ bannedUser: id, server: message.serverContext._id });