Fix hackban further
This commit is contained in:
parent
b78544a4fb
commit
5eac0b1a81
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue