Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

avatar discord.py

@client.command(aliases=['av'])
async def avatar(ctx, user: discord.Member = None):
    if not user:
        user = ctx.message.author
        embed = discord.Embed()
        embed.set_image(url=user.avatar_url)
        embed.set_footer(text=f'Avatar from {user}')
        await ctx.channel.send(embed=embed)
 
PREVIOUS NEXT
Tagged: #avatar
ADD COMMENT
Topic
Name
9+9 =