@bot.command()
async def vote(reaction, ctx) :
vote = ctx.message.content[4:].split(" / ")
await ctx.send(ctx.channel, "[Vote] - " + vote[0])
for i in range(1, len(vote)) :
choose = await ctx.send(ctx.channel, "```" + vote[i] + "```")
await ctx.add_reaction(choose, "⭕")
await ctx.add_reaction(choose, "❌")
I get error :
Command raised an exception: AttributeError: 'str' object has no attribute 'message'
The following error appears when I execute the code.
It was executed before I entered these codes.
Finally, the add_reaction feature will not run in the discord.
How can I fix the error?