Callback param types on messageReactionAdd
not working
#6698
-
Beta Was this translation helpful? Give feedback.
Answered by
monbrey
Sep 26, 2021
Replies: 1 comment 5 replies
-
You shouldn’t cast the type of reaction and user, they will be casted automatically. Along with that make sure you’re not returning anything in the event, you must always return void |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Definitely seems to be Webstorm at fault here, if you look at the error it appears to be inserting additional
any
args before each of the real ones.args_0 and args_2 shouldn't exist - no idea where they're coming from. What Webstorm seems to think are args_1 and args_3 are the real ones, which also seems to align with the typings you're seeing on hover.