modules/informational.py
async def avatar(self, ctx, user: discord.Member=None):
        """Sends avatar of the user mentioned or you."""
        if user is None:
            user = ctx.author
        if user.avatar_url is None:
            return await ctx.send("User has no avatar.")
        embed = discord.Embed(title=f"{user.name}'s avatar:", colour=3553599)
        embed.set_image(url=user.avatar_url)
        await ctx.send(embed=embed)
Sends avatar of the user mentioned or you.
Sends avatar of the user mentioned or you.
Sends avatar of the user mentioned or you .
async def avatar(self, ctx, user: discord.Member=None):
        if user is None:
            user = ctx.author
        if user.avatar_url is None:
            return await ctx.send("User has no avatar.")
        embed = discord.Embed(title=f"{user.name}'s avatar:", colour=3553599)
        embed.set_image(url=user.avatar_url)
        await ctx.send(embed=embed)
async def avatar ( self , ctx , user : discord . Member = None ) : if user is None : user = ctx . author if user . avatar_url is None : return await ctx . send ( "User has no avatar." ) embed = discord . Embed ( title = f"{user.name}'s avatar:" , colour = 3553599 ) embed . set_image ( url = user . avatar_url ) await ctx . send ( embed = embed )
Sends avatar of the user mentioned or you.
Sends avatar of the user mentioned or you .
"""Sends avatar of the user mentioned or you."""
self
ctx
user
discord.Member