Open tahmidjahin opened 1 year ago
Hey, I got the same issue as you, but i have it with both attributes (is_paused & is_playing). Did you managed to fix it?
Nope, bro😐
@commands.command(name="pause", help="Pauses the current song being played")
async def pause(self, ctx, *args):
if self.is_playing:
self.is_playing = False
self.is_paused = True
self.vc.pause()
elif self.is_paused:
self.is_paused = False
self.is_playing = True
self.vc.resume()
@commands.command(name="resume", aliases=["r"], help="Resumes playing with the discord bot")
async def resume(self, ctx, *args):
if self.is_paused:
self.is_paused = False
self.is_playing = True
self.vc.resume()
@commands.command(name="skip", aliases=["s"], help="Skips the current song being played")
async def skip(self, ctx):
if self.vc != None and self.vc:
self.vc.stop()
#try to play next in the queue if it exists
await self.play_music(ctx)
It says 'music_cog' has no attribute 'is_paused' The
/help
command is working and showing the available commands but commands of 'music_cog' are not working...HELP Needed!!!