Browse Source

Try and fix linting issues

pull/10300/head
Snazzah 3 weeks ago
parent
commit
b81710bc06
No known key found for this signature in database GPG Key ID: EA479766A94CEB61
  1. 2
      discord/voice_client.py
  2. 2
      discord/voice_state.py

2
discord/voice_client.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.
"""

2
discord/voice_state.py

@ -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)

Loading…
Cancel
Save