Skip to content

While using remove Command raised an exception: AttributeError: 'Bot' object has no attribute 'music' #14

@shamspias

Description

@shamspias

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions