Skip to content

Commit 6948109

Browse files
Rename stop_recording to stop_listening in sink.py
1 parent 89ac42f commit 6948109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/sink.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def wait_and_stop(self):
8787
time.sleep(self.seconds)
8888
if self.finished:
8989
return
90-
self.vc.stop_recording()
90+
self.vc.stop_listening()
9191

9292

9393
class RawData:
@@ -196,7 +196,7 @@ def __init__(self, *, encoding="wav", output_path="", filters=None):
196196
self.vc = None
197197
self.audio_data = {}
198198

199-
def init(self, vc): # called under start_recording
199+
def init(self, vc): # called under listen
200200
self.vc = vc
201201
super().init()
202202

0 commit comments

Comments
 (0)