Browse Source

Fix voice_privacy_code docstring

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

5
discord/voice_client.py

@ -286,8 +286,9 @@ class VoiceClient(VoiceProtocol):
@property
def voice_privacy_code(self) -> Optional[str]:
""":class:`float`: The voice privacy code of the current voice session.
""":class:`str`: Get the voice privacy code of this E2EE session's group.
A new privacy code is created and cached each time a new transition is executed.
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

Loading…
Cancel
Save