mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
Add VoiceClient.source to get the AudioSource being played.
This commit is contained in:
parent
efd6d11e9a
commit
55e63ed87f
@ -353,6 +353,11 @@ class VoiceClient:
|
||||
if self._player:
|
||||
self._player.resume()
|
||||
|
||||
@property
|
||||
def source(self):
|
||||
"""Optional[:class:`AudioSource`]: The audio source being played, if playing."""
|
||||
return self._player.source if self._player else None
|
||||
|
||||
def send_audio_packet(self, data, *, encode=True):
|
||||
"""Sends an audio packet composed of the data.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user