Skip to content

Commit 89ac42f

Browse files
Rename start_recording to listen and stop_recording to stop_listening
1 parent 046380a commit 89ac42f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/voice_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def unpack_audio(self, data):
704704

705705
self.decoder.decode(data)
706706

707-
def start_recording(self, sink, callback, *args):
707+
def listen(self, sink, callback, *args):
708708
"""The bot will begin recording audio from the current voice channel it is in.
709709
This function uses a thread so the current code line will not be stopped.
710710
Must be in a voice channel to use.
@@ -754,7 +754,7 @@ def start_recording(self, sink, callback, *args):
754754
)
755755
t.start()
756756

757-
def stop_recording(self):
757+
def stop_listening(self):
758758
"""Stops the recording.
759759
Must be already recording.
760760
Raises

0 commit comments

Comments
 (0)