Browse Source

Add docstring for voice_privacy_code

pull/10300/head
Snazzah 1 month ago
parent
commit
d5d26bb0b4
No known key found for this signature in database GPG Key ID: EA479766A94CEB61
  1. 4
      discord/voice_client.py

4
discord/voice_client.py

@ -286,6 +286,10 @@ class VoiceClient(VoiceProtocol):
@property
def voice_privacy_code(self) -> Optional[str]:
""":class:`float`: The voice privacy code of the current voice session.
This can be None if there is no active DAVE session happening.
"""
return self._connection.dave_session.voice_privacy_code if self._connection.dave_session else None
def checked_add(self, attr: str, value: int, limit: int) -> None:

Loading…
Cancel
Save