diff --git a/discord/voice_client.py b/discord/voice_client.py index 8c9b4217e..f26d10af3 100644 --- a/discord/voice_client.py +++ b/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