fetch user with discord database when it failed if the cache
This commit is contained in:
parent
75bd63b638
commit
e1df60859f
1 changed files with 2 additions and 0 deletions
|
@ -387,6 +387,8 @@ class Utils(commands.Cog):
|
|||
if user == None:
|
||||
return await self._whois(ctx, True)
|
||||
else:
|
||||
if isinstance(user, int):
|
||||
user = await self.client.fetch_user(user)
|
||||
return await self._whois(ctx, user, True)
|
||||
|
||||
@commands.command(name='sondage')
|
||||
|
|
Reference in a new issue