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 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:
|
||||||
|
|
Loading…
Reference in a new issue