Discord.js bot’s reaction roles embeds do not work after bot restart
My trouble begins from trying to get my bot to store and fetch reaction data from the embed properly between up/downtime. When my bot goes down and then comes back up again, all of my logging seems to imply the correct information as far as I’m able to read–the embed, its reactions, and the users responsible for them are being stored in database.sqlite
. They’re also being fetched properly according to the logs. But this is sort of proven wrong by virtue that the initial removal of a reaction is not logged and so, subsequently, a role is not removed when doing that. Adding the same reaction back is logged, but the role is not added because it was never removed to begin with. A subsequent second attempt to remove the reaction does log and does remove the role because, I guess, by that time, the bot is truly aware that there was a reaction to remove in the first place… but so then why does it pretend to be aware that a reaction exists upon restart? Why is it logged from the embed that there is an existing reaction, but it’s incapable of recognizing the removal of that reaction the first time?