Add another edge case check
This commit is contained in:
parent
942e1b0a09
commit
aebaa9b282
|
@ -551,7 +551,7 @@ class Music:
|
||||||
"""Shows info about the currently played song."""
|
"""Shows info about the currently played song."""
|
||||||
|
|
||||||
state = self.voice_states.get(ctx.message.guild.id)
|
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 not state.current:
|
||||||
await ctx.send('Not playing anything.')
|
await ctx.send('Not playing anything.')
|
||||||
else:
|
else:
|
||||||
# Create the embed object we'll use
|
# Create the embed object we'll use
|
||||||
|
|
Loading…
Reference in a new issue