I wanted to know is there a way to send a message like: Only *user can react to this message and save the message id to the json file. then if someone reacts to that specific message and the user is the user in the json file it does something. I'm using disnake https://disnake.dev/ Thx
I have tried
message = await message.channel.send("Test REACTION")
await message.add_reaction("❌")
def check(reaction, user):
return user == message.author and str(reaction.emoji) in ["❌"] and reaction.message == message
approve = await bot.wait_for("reaction_add", check=check)
if approve:
await message.channel.send("Reaction added!")
but it would reply Reaction added! when the bot reacted + i want it to be stored in a database so it checks if the message id is the message id in the database.