Skip to content
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
3 changes: 3 additions & 0 deletions interactions/api/models/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ class Channel(ClientSerializerMixin, IDMixin):
:ivar Optional[ThreadMember] member?: The member of the thread in the channel.
:ivar Optional[int] default_auto_archive_duration?: The set auto-archive time for all threads to naturally follow in the channel.
:ivar Optional[str] permissions?: The permissions of the channel.
:ivar Optional[int] flags?: The flags of the channel.
:ivar Optional[int] total_message_sent?: Number of messages ever sent in a thread.
"""

__slots__ = (
Expand Down Expand Up @@ -166,6 +168,7 @@ class Channel(ClientSerializerMixin, IDMixin):
default_auto_archive_duration: Optional[int] = field(default=None)
permissions: Optional[str] = field(default=None)
flags: Optional[int] = field(default=None)
total_message_sent: Optional[int] = field(default=None)

def __attrs_post_init__(self): # sourcery skip: last-if-guard
if self._client:
Expand Down