aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/voice_client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index bf857572..a363586c 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -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.