Answers for "get author avatar discord py"

0

How to get a user's avatar with their id in discord.py?

@commands.command()
async def avatar(self, ctx, *,  avamember : discord.Member=None):
    userAvatarUrl = avamember.avatar_url
    await ctx.send(userAvatarUrl)
Posted by: Guest on April-18-2021
1

how to get the author on discord.py

ctx.author #Gets the author of a command
ctx.author.id #Gets the Discord ID of the author of a command
Posted by: Guest on March-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language