aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhazhyk <[email protected]>2017-10-18 22:03:00 -0700
committerRapptz <[email protected]>2017-10-24 00:16:44 -0400
commitebecb90c9628a241a4e3c840792d7db1ed4ae310 (patch)
treef5bfa90e9cae96656b2e492004ae43856de35a96
parentQuote all Route params (diff)
downloaddiscord.py-ebecb90c9628a241a4e3c840792d7db1ed4ae310.tar.xz
discord.py-ebecb90c9628a241a4e3c840792d7db1ed4ae310.zip
is_avatar_animated should always return bool
Was returning None when User.avatar was None
-rw-r--r--discord/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/user.py b/discord/user.py
index 7bc5c2e2..0d31a22f 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -101,7 +101,7 @@ class BaseUser(_BaseUser):
def is_avatar_animated(self):
"""bool: Returns True if the user has an animated avatar."""
- return self.avatar and self.avatar.startswith('a_')
+ return bool(self.avatar and self.avatar.startswith('a_'))
def avatar_url_as(self, *, format=None, static_format='webp', size=1024):
"""Returns a friendly URL version of the avatar the user has.