1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Skip paused songs

This commit is contained in:
Steffo 2019-06-02 18:22:14 +02:00
parent 956cdb5ac0
commit f3b2a9872f

View file

@ -23,7 +23,7 @@ class SkipNH(NetworkHandler):
guild = list(bot.music_data)[0]
# Set the currently playing source as ended
voice_client: discord.VoiceClient = bot.client.find_voice_client_by_guild(guild)
if not voice_client.is_playing():
if not (voice_client.is_playing() or voice_client.is_paused()):
raise NoneFoundError("Nothing to skip")
# noinspection PyProtectedMember
voice_client._player.stop()