mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix whois to use proper member casting & allow mention prefix
This commit is contained in:
parent
a06fcdefe0
commit
10da82d211
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue