Browse Source
Add docstring for voice_privacy_code
pull/10300/head
Snazzah
1 month ago
No known key found for this signature in database
GPG Key ID: EA479766A94CEB61
1 changed files with
4 additions and
0 deletions
-
discord/voice_client.py
|
@ -286,6 +286,10 @@ class VoiceClient(VoiceProtocol): |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def voice_privacy_code(self) -> Optional[str]: |
|
|
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 |
|
|
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: |
|
|
def checked_add(self, attr: str, value: int, limit: int) -> None: |
|
|