mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Skip paused songs
This commit is contained in:
parent
956cdb5ac0
commit
f3b2a9872f
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class SkipNH(NetworkHandler):
|
||||||
guild = list(bot.music_data)[0]
|
guild = list(bot.music_data)[0]
|
||||||
# Set the currently playing source as ended
|
# Set the currently playing source as ended
|
||||||
voice_client: discord.VoiceClient = bot.client.find_voice_client_by_guild(guild)
|
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")
|
raise NoneFoundError("Nothing to skip")
|
||||||
# noinspection PyProtectedMember
|
# noinspection PyProtectedMember
|
||||||
voice_client._player.stop()
|
voice_client._player.stop()
|
||||||
|
|
Loading…
Reference in a new issue