From bdb9bbcc5bb9e2f6bce2331226740158507a4765 Mon Sep 17 00:00:00 2001 From: LordOfPolls Date: Mon, 17 Oct 2022 21:06:24 +0100 Subject: [PATCH] fix: handle no joined_at attribute --- naff/models/discord/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/naff/models/discord/user.py b/naff/models/discord/user.py index bb4d7c260..f92d33f46 100644 --- a/naff/models/discord/user.py +++ b/naff/models/discord/user.py @@ -230,7 +230,9 @@ class Member(DiscordObject, _SendDMMixin): nick: Optional[str] = field(repr=True, default=None, metadata=docs("The user's nickname in this guild'")) deaf: bool = field(default=False, metadata=docs("Has this user been deafened in voice channels?")) mute: bool = field(default=False, metadata=docs("Has this user been muted in voice channels?")) - joined_at: "Timestamp" = field(converter=timestamp_converter, metadata=docs("When the user joined this guild")) + joined_at: "Timestamp" = field( + default=MISSING, converter=optional(timestamp_converter), metadata=docs("When the user joined this guild") + ) premium_since: Optional["Timestamp"] = field( default=None, converter=optional_c(timestamp_converter),