From 36111793e381363db845c3b9bb0d41163fe72605 Mon Sep 17 00:00:00 2001 From: Nekokatt Date: Sun, 13 Sep 2020 12:11:23 +0100 Subject: [PATCH] Fixed bug with premium_since field not always being present. --- hikari/impl/entity_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikari/impl/entity_factory.py b/hikari/impl/entity_factory.py index b96c6b8aa6..00dd75dca7 100644 --- a/hikari/impl/entity_factory.py +++ b/hikari/impl/entity_factory.py @@ -995,7 +995,7 @@ def deserialize_member( joined_at = date.iso8601_datetime_string_to_datetime(payload["joined_at"]) - raw_premium_since = payload["premium_since"] + raw_premium_since = payload.get("premium_since") premium_since = ( date.iso8601_datetime_string_to_datetime(raw_premium_since) if raw_premium_since is not None else None )