fetch user with discord database when it failed if the cache

This commit is contained in:
Mylloon 2021-08-23 13:18:36 +02:00
parent 75bd63b638
commit e1df60859f

View file

@ -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')