improve avatar

This commit is contained in:
Romain J 2020-08-19 17:00:45 +02:00
parent db7dfd5c58
commit 1f7da4fd14

View file

@ -1,4 +1,5 @@
from discord.ext import commands from discord.ext import commands
from typing import Union
import asyncio import asyncio
import discord import discord
import urllib.request import urllib.request
@ -16,7 +17,7 @@ class Funs(commands.Cog):
"""---------------------------------------------------------------------""" """---------------------------------------------------------------------"""
@commands.command() @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 ...""" """Récuperer l'avatar de ..."""
if user is None: if user is None: