Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 18, 2023
1 parent d8e65ac commit 2a5822f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/voice_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def is_speaking(self) -> bool:
"""
if not self.is_connected():
raise RecordingException("Not connected to voice channel.")

self.empty_socket()

ready, _, err = select.select([self.socket], [], [self.socket], 0.01)
Expand All @@ -763,7 +763,7 @@ def is_speaking(self) -> bool:

if data.decrypted_data == b"\xf8\xff\xfe": # Frame of silence
return False

return True

def start_recording(self, sink, callback, *args, sync_start: bool = False):
Expand Down

0 comments on commit 2a5822f

Please sign in to comment.