From e1df60859fde6f4f755e83c2d4854a38a2ad1cf1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 23 Aug 2021 13:18:36 +0200 Subject: [PATCH] fetch user with discord database when it failed if the cache --- src/cogs/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cogs/utils.py b/src/cogs/utils.py index 7e85a33..5a57bbe 100644 --- a/src/cogs/utils.py +++ b/src/cogs/utils.py @@ -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')