From ebecb90c9628a241a4e3c840792d7db1ed4ae310 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Wed, 18 Oct 2017 22:03:00 -0700 Subject: [PATCH] is_avatar_animated should always return bool Was returning None when User.avatar was None --- discord/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/user.py b/discord/user.py index 7bc5c2e21..0d31a22f3 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.