From 4ee2b6b2e0add00fd6077e8aef648c8dd9b34feb Mon Sep 17 00:00:00 2001 From: Snazzah Date: Tue, 9 Sep 2025 16:05:32 -0400 Subject: [PATCH] Fix voice_privacy_code docstring --- discord/voice_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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