improve avatar
This commit is contained in:
parent
db7dfd5c58
commit
1f7da4fd14
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue