This commit is contained in:
janderedev 2022-03-17 00:10:04 +01:00
parent 117e3b0f12
commit 471f013404
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -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<number> => {
let tempbans: FindResult<TempBan> = await client.db.get('tempbans').find({ bannedUser: id, server: message.serverContext._id });