aboutsummaryrefslogtreecommitdiff
path: root/docs/_static/codeblocks.css
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-25 01:42:29 -0400
committerRapptz <[email protected]>2021-08-25 01:43:09 -0400
commit848d752388f9878cc4a17148b87ae435d220640d (patch)
treefebbe5db754e1e5bf92494fc23d9ea7850ee0458 /docs/_static/codeblocks.css
parentChange on_socket_raw_receive to dispatch right before JSON conversion (diff)
downloaddiscord.py-848d752388f9878cc4a17148b87ae435d220640d.tar.xz
discord.py-848d752388f9878cc4a17148b87ae435d220640d.zip
Change User.avatar to be Optional[Asset] instead of Asset
This change was needed to allow users to more easily check if an uploaded avatar was set using `if user.avatar:` rather than the admittedly clunky `if user.avatar != user.default_avatar. The old behaviour with a fallback is still useful for actual display purposes, so it has been moved over to the new `User.display_avatar` attribute. This also has symmetry with the newly added `Member.display_avatar` attribute.
Diffstat (limited to 'docs/_static/codeblocks.css')
0 files changed, 0 insertions, 0 deletions