You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explanation: The event tries to get which reaction was added (?), but, since clearReactions ran, message.reactions is {}, causing the reactions.get is not a function error, since reactions is not a Map anymore.
where "message.reactions" is {}, resulting in TypeError: message.reactions.get is not a function, when there are 2 reactions on a message (me & the bot), and I unreact.
What happened?
This snippet of code causes the above error:
... when a
messageReactionAdd
event listener exists:This code was used to trigger the error:
Explanation: The event tries to get which reaction was added (?), but, since
clearReactions
ran,message.reactions
is{}
, causing thereactions.get is not a function
error, sincereactions
is not aMap
anymore.My temporary fix:
The text was updated successfully, but these errors were encountered: