I’m working on a custom bot for my Discord server. I want it to ask users if they’re sure about doing a paid splash. The bot should post a message with two reaction options: and
.
Here’s what I’ve got so far:
@bot.command(name='splash')
async def paid_splash(ctx):
query = await ctx.send('Ready for a paid splash?')
await query.add_reaction('✅')
await query.add_reaction('❌')
await ctx.message.delete()
# This part doesn't work
bot.wait_for('reaction_add', timeout=10.0)
await ctx.send('Confirmed')
The bot posts the message and adds reactions, but I can’t figure out how to check which reaction the user picked. If they choose , I want to add them to a queue (haven’t coded that part yet).
Any ideas on how to fix this? Code examples would be super helpful. Thanks!