Fix hackban further

This commit is contained in:
Ave Ozkal 2018-12-25 14:40:04 +03:00
parent b78544a4fb
commit 5eac0b1a81
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

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: