Browse Source

Fix hackban further

main
Ave Ozkal 2 years ago
parent
commit
1292f63e8d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cogs/mod.py

+ 1
- 1
cogs/mod.py View File

@ -193,7 +193,7 @@ class ModCog:
@commands.command()
async def hackban(self, ctx, target: int, *, reason: str = ""):
"""Bans a user with their ID, doesn't message them, staff only."""
target_user = self.bot.get_user(target)
target_user = await self.bot.get_user_info(target)
target_member = ctx.guild.get_member(target)
# Hedge-proofing the code
if target == ctx.author.id:


Loading…
Cancel
Save