1
votes
async def qna(ctx):
    msg = await ctx.send('what is the color of mango\na. red\nb. blue')
    await msg.add_reaction("????️")
    await msg.add_reaction("????️")]

Here's what I did till now ???? Please someone help me?

1

1 Answers

1
votes

You're looking for Bot.wait_for

async def qna(ctx):
    reactions = ["🅰️", "🅱️"]
    msg = await ctx.send('what is the color of mango\na. red\nb. blue')
    for r in reactions:
        await msg.add_reaction(r)

    def check(reaction, user):
        return user == ctx.author and reaction.message == msg and str(reaction) in reactions

    reaction, user = await bot.wait_for("reaction_add", check=check)
    # Do something with the reactions

Reference: