This commit is contained in:
Yasir Aris M 2024-08-27 13:26:07 +07:00 committed by GitHub
parent 47ce746635
commit 1891e9f80f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,10 +88,10 @@ async def ban_a_user(bot, message):
except Exception as e:
return await message.reply(f"Error - {e}")
else:
isban, alesan = await db.get_ban_status(k.id)
isban = await db.get_ban_status(k.id)
if isban:
return await message.reply(
f"{k.mention} is already banned\n<b>Reason:</b> {alesan['reason']}"
f"{k.mention} is already banned\n<b>Reason:</b> {reason}"
)
await db.ban_user(k.id, reason)
await message.reply(