diff options
| author | Rapptz <[email protected]> | 2017-04-19 16:06:45 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-04-19 16:06:45 -0400 |
| commit | 07d53288737e4eeb8a0e21c339d4b929bb97ce35 (patch) | |
| tree | 2f685511b1a0cab1d2d9e2ce817d73cc5042b61e /discord/player.py | |
| parent | Add VoiceClient.source to get the AudioSource being played. (diff) | |
| download | discord.py-07d53288737e4eeb8a0e21c339d4b929bb97ce35.tar.xz discord.py-07d53288737e4eeb8a0e21c339d4b929bb97ce35.zip | |
Add VoiceClient.is_paused to query pause state.
Diffstat (limited to 'discord/player.py')
| -rw-r--r-- | discord/player.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/player.py b/discord/player.py index 3ed7fb7d..4385a6df 100644 --- a/discord/player.py +++ b/discord/player.py @@ -252,3 +252,6 @@ class AudioPlayer(threading.Thread): def is_playing(self): return self._resumed.is_set() and not self._end.is_set() + + def is_paused(self): + return not self._end.is_set() and not self._resumed.is_set() |