Add VoiceClient.is_paused to query pause state.

This commit is contained in:
Rapptz
2017-04-19 16:06:45 -04:00
parent 55e63ed87f
commit 07d5328873
2 changed files with 7 additions and 0 deletions

View File

@ -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()