B
B
Bot-Developer2021-08-10 10:50:06
Python
Bot-Developer, 2021-08-10 10:50:06

How to make the bot leave a reaction to the user's message?

I tried to make the bot leave a reaction to the user's message when using the command, but the bot does not react at all. Here is the code I used:

@client.command(aliases = ["хелп"])
async def help (ctx):
  await add_reaction('✅')
  embed = discord.Embed (title="Список команд", description="", color=ctx.author.color)
  embed.add_field(name="help", value="Выводит список команд", inline=False)
  await ctx.send(embed=embed)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-08-10
@Bot-Developer

await ctx.message.add_reaction('✅')

W
Wolf_Yout, 2021-08-10
@Wolf_Yout

Try to sign ctx
await ctx.add_reaction("✅")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question