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.
1 parent 1d65214 commit 78f5608Copy full SHA for 78f5608
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