avatar.url_as? #246
Answered
by
ooliver1
NavisGames
asked this question in
Q&A
avatar.url_as?
#246
-
Did you guys removed |
Beta Was this translation helpful? Give feedback.
Answered by
ooliver1
Nov 3, 2021
Replies: 2 comments 2 replies
-
Asset.with_format and with_size |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TAG-Epic
-
It was changed in discord.py 2.0 mainly because having multiple user avatars is now supported. See Migrating to 2.0 for full details. # previously str(avatar_url)
user.display_avatar.url
# previously str(avatar_url_as(size=128))
user.display_avatar.with_size(128).url
# previously str(avatar_url_as(size=128, static_format="png"))
user.display_avatar.replace(size=128, static_format="png").url |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Asset.with_format and with_size