From 2b4cf5dafc1ee6d04af24d2440a9f2517f65c160 Mon Sep 17 00:00:00 2001 From: SnowyLuma Date: Tue, 11 Jun 2019 21:13:43 +0200 Subject: [PATCH] Set premium_since when copying and updating Member --- discord/member.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/member.py b/discord/member.py index d28a5bd8a..266e15dd8 100644 --- a/discord/member.py +++ b/discord/member.py @@ -213,6 +213,7 @@ class Member(discord.abc.Messageable, _BaseUser): self._roles = utils.SnowflakeList(member._roles, is_sorted=True) self.joined_at = member.joined_at + self.premium_since = member.premium_since self._client_status = member._client_status.copy() self.guild = member.guild self.nick = member.nick @@ -239,6 +240,7 @@ class Member(discord.abc.Messageable, _BaseUser): except KeyError: pass + self.premium_since = utils.parse_time(data.get('premium_since')) self._update_roles(data) def _presence_update(self, data, user):