We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dad9021 + 78f5608 commit 0fe9b0aCopy full SHA for 0fe9b0a
discord/member.py
@@ -620,6 +620,15 @@ def voice(self) -> Optional[VoiceState]:
620
"""Optional[:class:`VoiceState`]: Returns the member's current voice state."""
621
return self.guild._voice_state_for(self._user.id)
622
623
+ @property
624
+ def timed_out(self) -> bool:
625
+ """bool: Returns whether the member is timed out.
626
+
627
+ .. versionadded:: 2.0
628
+ """
629
+ return self.communication_disabled_until is not None and self.communication_disabled_until > datetime.datetime.now(datetime.timezone.utc)
630
631
632
async def ban(
633
self,
634
*,
0 commit comments