I am trying to make multi guild reaction roles command with MongoDb,
await ctx.send(embed=gen_embed("React to this message with reaction you want to use.\n**Don't use Nitro Emoji that is not in this server.**"))
reaction,user = await self.bot.wait_for("reaction_add",timeout=30,check=reaction_check)
try:
#emoji = await ctx.guild.get_emoji(reaction.Emoji)
except:
return await ctx.send(embed=gen_embed("<:xmark:771032946915934298> | I can't see that emoji."))
This is the part of code, I am stucked at. Bot asks the user to react with an emoji, then bot should try to find that emoji (emoji can be default or custom), if the bot can find the emoji , it would store id or something like that of emoji and if it can't then it would return by saying I can't see...
Now the thing is Idk how to check if bot can see that emoji or not and what exactly to store for the event. I tried reading docs but docs doesn't seem to be written for beginners.
on_raw_reaction_add
instead? I think this gives you more information even in the case where the bot cannot "see" a custom emoji – Thomas Kowalskibot.wait_for("reaction_add",...
his question is what his check function should look likecheck=reaction_check
. If he was going theon_raw_reaction_add
route it'd be a huge mess since he will lose the context the command was created in. – Tin Nguyen