mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-08-04 19:41:08 +00:00
Fix hackban further
This commit is contained in:
parent
b78544a4fb
commit
5eac0b1a81
|
@ -193,7 +193,7 @@ class ModCog:
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def hackban(self, ctx, target: int, *, reason: str = ""):
|
async def hackban(self, ctx, target: int, *, reason: str = ""):
|
||||||
"""Bans a user with their ID, doesn't message them, staff only."""
|
"""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)
|
target_member = ctx.guild.get_member(target)
|
||||||
# Hedge-proofing the code
|
# Hedge-proofing the code
|
||||||
if target == ctx.author.id:
|
if target == ctx.author.id:
|
||||||
|
|
Loading…
Reference in a new issue