Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: handle no joined_at attribute #680

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion naff/models/discord/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down