From 75bd63b638a9f39c44b1e33c04f0273b051d9a7c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 23 Aug 2021 13:03:49 +0200 Subject: [PATCH] fix for slash command --- src/cogs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/utils.py b/src/cogs/utils.py index 3bcca7f..7e85a33 100644 --- a/src/cogs/utils.py +++ b/src/cogs/utils.py @@ -381,7 +381,7 @@ class Utils(commands.Cog): if "not found." in str(error): await ctx.send(f"Le membre renseigné n'a pas été trouvé (mauvais ID).") @cog_ext.cog_slash(name="whois", description = "Affiche les infos sur l'utilisateur.") - async def __whois(self, ctx, user: discord.Member = None): + async def __whois(self, ctx, user: discord.User = None): """Slash command""" ctx.prefix = "/" # pas sûr que ce soit utile if user == None: