Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add reaction to a ctx.author message discord.py lib

I want to react to a ctx.author message. What I tried:

@client.command()
async def help:
    command.add_reaction(':x:')
    await ctx.author.send('Something')

But I got that command has no add_reaction

like image 651
carmel dev Avatar asked Dec 17 '25 21:12

carmel dev


1 Answers

Replace command.add_reaction(':x:') with await ctx.message.add_reaction('❌')

like image 58
Matan Ka. Avatar answered Dec 20 '25 10:12

Matan Ka.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!