Fix default_avatar for team user and webhook

This commit is contained in:
owocado authored and GitHub committed 2024-08-28 15:34:33 -04:00
1 parent a6d1dc0455
commit 0a2faa6f5d
2 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ class BaseUser(_UserTag):
@property
def default_avatar(self) -> Asset:
""":class:`Asset`: Returns the default avatar for a given user."""
if self.discriminator == '0':
if self.discriminator in ('0', '0000'):
avatar_id = (self.id >> 22) % len(DefaultAvatar)
else:
avatar_id = int(self.discriminator) % 5