Node.JS Error
Go to solution
Solved by Stentorian,
On 5/14/2019 at 12:37 PM, Breadpudding said:Your if statement on line 8 isn't checking if the variable is equal to true. It's setting the value to true instead. If the value is a boolean, simply make it:
if(bot) return;Also about detecting which emoji you're placing: Don't use emoji in your code. There's a reference about using emoji with discord.js here: https://discord.js.org/#/docs/main/stable/class/ReactionEmoji
Maybe name isn't what you think it is? Try logging the result of getting the emoji's name to see if it prints something similar to "regional_indicator_k". I haven't dealt with reactions myself but it's worth a shot.
On 5/11/2019 at 8:35 PM, duncannah said:
I've just given up on using a reaction system and I've just gone to sub-commands. Thanks for the help though!
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now