[Mod] Use a better converter for Hackban & Unban (#3524)

closes #3523
This commit is contained in:
DiscordLiz
2020-02-08 07:43:03 -05:00
committed by GitHub
parent 9a278213bd
commit 8e3a76186b
3 changed files with 12 additions and 6 deletions

View File

@@ -581,7 +581,7 @@ class KickBanMixin(MixinMeta):
@commands.guild_only()
@commands.bot_has_permissions(ban_members=True)
@checks.admin_or_permissions(ban_members=True)
async def unban(self, ctx: commands.Context, user_id: int, *, reason: str = None):
async def unban(self, ctx: commands.Context, user_id: RawUserIds, *, reason: str = None):
"""Unban a user from this server.
Requires specifying the target user's ID. To find this, you may either: