From 1f7da4fd1426bc3ff79fa770c93a90f7d0218047 Mon Sep 17 00:00:00 2001 From: Romain J Date: Wed, 19 Aug 2020 17:00:45 +0200 Subject: [PATCH] improve avatar --- cogs/funs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/funs.py b/cogs/funs.py index d374d1e..0201036 100755 --- a/cogs/funs.py +++ b/cogs/funs.py @@ -1,4 +1,5 @@ from discord.ext import commands +from typing import Union import asyncio import discord import urllib.request @@ -16,7 +17,7 @@ class Funs(commands.Cog): """---------------------------------------------------------------------""" @commands.command() - async def avatar(self, ctx, user: discord.Member = None): + async def avatar(self, ctx, user: Union[discord.Member, discord.User] = None): """Récuperer l'avatar de ...""" if user is None: