Answer the question
In order to leave comments, you need to log in
How to make the issuance of roles using reactions?
I tried like this:
@bot.command(name='new_task')
async def _task(ctx):
embed = discord.Embed(title='Цвета :tada:')
live = await ctx.send(embed = embed)
await live.add_reaction('')
await live.add_reaction('')
await live.add_reaction('')
@bot.event
async def on_raw_reaction_add(ctx):
if ctx == '':
await ctx.author.add_roles(902525047019810847)
if ctx == '':
await ctx.author.add_roles(902525088845418517)
if ctx == '':
await ctx.author.add_roles(902525124685758494)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question