From 10da82d211c6db94502089aba5ee6c8aa02c0f8c Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Sun, 30 May 2021 14:38:56 +0200 Subject: [PATCH] Fix whois to use proper member casting & allow mention prefix --- cogs/modCommands.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cogs/modCommands.py b/cogs/modCommands.py index df65831..24e6a95 100644 --- a/cogs/modCommands.py +++ b/cogs/modCommands.py @@ -176,12 +176,7 @@ class ModCommands(commands.Cog): @commands.command(name="WhoIs", aliases=["Info", "Whodis"], usage="[@User]") @help.Category(Category.Mod) - async def whois(self, ctx, user): - if ctx.message.mentions: - user = ctx.message.mentions[0].id - - user = await self.client.fetch_user(int(user)) - + async def whois(self, ctx, user: discord.User = None): if user is None: return