From a946ba223ba70bc7acb863b7272fea431eb0b7fb Mon Sep 17 00:00:00 2001 From: Damego Date: Fri, 22 Jul 2022 12:26:57 +0500 Subject: [PATCH] feat: add ``total_message_sent`` to ``Channel`` --- interactions/api/models/channel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interactions/api/models/channel.py b/interactions/api/models/channel.py index 594b2665d..e13210b62 100644 --- a/interactions/api/models/channel.py +++ b/interactions/api/models/channel.py @@ -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__ = ( @@ -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: