Added a check to ensure the song exists
This commit is contained in:
parent
8860cd90a7
commit
917ca70901
|
@ -505,7 +505,7 @@ class Music:
|
|||
"""
|
||||
|
||||
state = self.voice_states.get(ctx.message.guild.id)
|
||||
if state is None or not state.playing:
|
||||
if state is None or not state.playing or state.current is None:
|
||||
await ctx.send('Not playing any music right now...')
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue