A
A
alexzsoda2020-12-07 18:25:24
Python
alexzsoda, 2020-12-07 18:25:24

How to get the user's avatar?

I made a bot on discord.py and I need to create something like "user information" but I can't figure out where to get the user's avatar from.
+ It should be sent along with the message.
Here is the part of the code where I want to do this getting the avatar:

elif message.content== ".юзер":
          await message.channel.send("Никнейм - {0.author}".format(message)), print("Выполнена команда .юзер")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Amoralny, 2020-12-07
@alexzsoda

Here

member.avatar
# or
member.avatar_url

https://discordpy.readthedocs.io/en/latest/api.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question