Problem while trying to remove a song from the queue it shows that error
the problem is in
Cogs/removeRemoverange.py
if (int(index) - 1) > len(self.bot.music[ctx.guild.id]["musics"]): return await ctx.channel.send(f"{self.bot.emojiList.false} {ctx.author.mention} The index is invalid!")
Solve,
just comment out these 2 line no need for any use.
after commenting it out it will show another error,
Command raised an exception: IndexError: list index out of range
because
track = tracks[index]
solve is
track = tracks[index-2]
Problem while trying to remove a song from the queue it shows that error
the problem is in
Cogs/removeRemoverange.py
if (int(index) - 1) > len(self.bot.music[ctx.guild.id]["musics"]): return await ctx.channel.send(f"{self.bot.emojiList.false} {ctx.author.mention} The index is invalid!")Solve,
just comment out these 2 line no need for any use.
after commenting it out it will show another error,
Command raised an exception: IndexError: list index out of rangebecause
track = tracks[index]solve is
track = tracks[index-2]