Author: noreply@github.com
Line: 740
|
RuntimeWarning, |
|
stacklevel=2, |
|
) |
|
# TODO: remove warning in voice-recv fix PR |
|
if not self.is_connected(): |
|
raise RecordingException("not connected to a voice channel") |
|
if not isinstance(sink, Sink): |
|
raise TypeError(f"expected a Sink object, got {sink.__class__.__name__}") |
|
|
|
if self.is_recording(): |
|
raise ClientException("Already recording audio") |
Author: noreply@github.com
Line: 740
pycord/discord/voice/client.py
Lines 737 to 747 in 5ffd21e