Snazzah
3 weeks ago
No known key found for this signature in database
GPG Key ID: EA479766A94CEB61
2 changed files with
2 additions and
2 deletions
-
discord/voice_client.py
-
discord/voice_state.py
|
|
@ -287,7 +287,7 @@ class VoiceClient(VoiceProtocol): |
|
|
|
@property |
|
|
|
def voice_privacy_code(self) -> Optional[str]: |
|
|
|
""":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. |
|
|
|
""" |
|
|
|
|
|
@ -276,7 +276,7 @@ class VoiceConnectionState: |
|
|
|
if self.dave_protocol_version > 0: |
|
|
|
if not has_dave: |
|
|
|
raise RuntimeError('davey library needed in order to use E2EE voice') |
|
|
|
if self.dave_session: |
|
|
|
if self.dave_session is not None: |
|
|
|
self.dave_session.reinit(self.dave_protocol_version, self.user.id, self.voice_client.channel.id) |
|
|
|
else: |
|
|
|
self.dave_session = davey.DaveSession(self.dave_protocol_version, self.user.id, self.voice_client.channel.id) |
|
|
|