carmel dev
carmel dev

Reputation: 49

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

Upvotes: 3

Views: 568

Answers (2)

ARealWant
ARealWant

Reputation: 111

As Matan already mentioned and for the future: you can get the right emote for pasting it into your code by using: \emoji in Discord, sending it and copy the converted text.

This text can be pasted into every string, Discord will convert it back to the regular emote.

Upvotes: 0

Matan Ka.
Matan Ka.

Reputation: 274

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

Upvotes: 3

Related Questions