Skip to content

Commit e5a808f

Browse files
Bluepre-commit-ci[bot]
andauthored
feat: Adding communication_disabled_until in GuildMember (#965)
* docs: Fix description in ``set_rate_limit_per_user`` * feat: Adding ``premium_progress_bar_enabled`` for ``Guild`` * feat: Adding ``communication_disabled_until`` in GuildMember Gateway dispatch * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4fc3b83 commit e5a808f

File tree

1 file changed

+4
-0
lines changed
  • interactions/api/models

1 file changed

+4
-0
lines changed

interactions/api/models/gw.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ class GuildMember(ClientSerializerMixin):
246246
:ivar Optional[bool] deaf?: Whether the member of the event is deafened or not.
247247
:ivar Optional[bool] mute?: Whether the member of the event is muted or not.
248248
:ivar Optional[bool] pending?: Whether the member of the event is still pending -- pass membership screening -- or not.
249+
:ivat Optional[datetime.isoformat] communication_disabled_until?: when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out.
249250
"""
250251

251252
guild_id: Snowflake = field(converter=Snowflake)
@@ -258,6 +259,9 @@ class GuildMember(ClientSerializerMixin):
258259
deaf: Optional[bool] = field(default=None)
259260
mute: Optional[bool] = field(default=None)
260261
pending: Optional[bool] = field(default=None)
262+
communication_disabled_until: Optional[datetime.isoformat] = field(
263+
converter=datetime.fromisoformat, default=None
264+
)
261265

262266
def __str__(self) -> str:
263267
return self.name or ""

0 commit comments

Comments
 (0)