discord py rewrite on reaction

Solutions on MaxInterview for discord py rewrite on reaction by the best coders in the world

showing results for - "discord py rewrite on reaction"
Silvana
06 Jan 2017
1@bot.event
2async def on_reaction_add(reaction, user):
3    embed = reaction.embeds[0]
4    emoji = reaction.emoji
5
6    if user.bot:
7        return
8
9    if emoji == "emoji 1":
10        fixed_channel = bot.get_channel(channel_id)
11        await fixed_channel.send(embed=embed)
12    elif emoji == "emoji 2":
13        #do stuff
14    elif emoji == "emoji 3":
15        #do stuff
16    else:
17        return
18
similar questions
queries leading to this page
discord py rewrite on reaction