You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command raised an exception: AttributeError: 'tuple' object has no attribute 'title'
and
Command raised an exception: AttributeError: 'tuple' object has no attribute 'title'
The problem is
Cogs/move.py
embed = discord.Embed(title="Song moved", description=f"- [**{trackToMove.title}**]({trackToMove.uri}) was moved from `{indexFromFake}` to `{indexToFake}`.",
here trackToMove is a tuple inside a list,
so better use trackToMove[index_number_of_title] and trackToMove[index_number_of_url]
so solve is
embed = discord.Embed(title="Song moved", description=f"- [**{trackToMove[5]}**]({trackToMove[4]}) was moved from `{indexFromFake}` to `{indexToFake}`.",
The text was updated successfully, but these errors were encountered:
shamspias
added a commit
to shamspias/Music-Discord-Bot
that referenced
this issue
Oct 19, 2021
Command raised an exception: AttributeError: 'tuple' object has no attribute 'title'
and
Command raised an exception: AttributeError: 'tuple' object has no attribute 'title'
The problem is
Cogs/move.py
embed = discord.Embed(title="Song moved", description=f"- [**{trackToMove.title}**]({trackToMove.uri}) was moved from `{indexFromFake}` to `{indexToFake}`.",
here trackToMove is a tuple inside a list,
so better use
trackToMove[index_number_of_title] and trackToMove[index_number_of_url]
so solve is
embed = discord.Embed(title="Song moved", description=f"- [**{trackToMove[5]}**]({trackToMove[4]}) was moved from `{indexFromFake}` to `{indexToFake}`.",
The text was updated successfully, but these errors were encountered: