discord.py-rewrite Not able to add reaction, 'Bot' object has no attribute 'add_reaction'

Viewed 3343

I am trying to make it so when my bot reacts to the help command, it DMs them and reacts with a checkmark, however when trying to react, i get this error 'Bot' object has no attribute 'add_reaction' Heres what i tried.

reaction = ""
await bot.add_reaction(emoji=reaction)

EDIT/EXTRA

I also tried await ctx.add_reaction(emoji=reaction)

1 Answers

SOLUTION

What i did was the following.

reaction = ""
await ctx.message.add_reaction(emoji=reaction)
Related