From f912758a1f62ed9c4cf717fa0776453a6a9c1371 Mon Sep 17 00:00:00 2001 From: Xua Date: Thu, 17 Oct 2019 16:59:57 +1300 Subject: [PATCH] Prevent premium_subscription_count being None --- discord/guild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/guild.py b/discord/guild.py index 6948470a9..a06efcd3f 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -386,7 +386,7 @@ class Guild(Hashable): self.max_presences = guild.get('max_presences') self.max_members = guild.get('max_members') self.premium_tier = guild.get('premium_tier', 0) - self.premium_subscription_count = guild.get('premium_subscription_count', 0) + self.premium_subscription_count = guild.get('premium_subscription_count') or 0 self._system_channel_flags = guild.get('system_channel_flags', 0) self.preferred_locale = guild.get('preferred_locale')