diff --git a/src/bot.py b/src/bot.py index 1440562..a21b94d 100644 --- a/src/bot.py +++ b/src/bot.py @@ -79,7 +79,7 @@ class Music(commands.Cog): @commands.command() async def skip(self, ctx): async with ctx.typing(): - if not ctx.voice_client.is_playing(): + if ctx.voice_client is None or not ctx.voice_client.is_playing(): raise commands.CommandError("Cannot skip: No song playing") ctx.voice_client.stop()