#Cant fix it by myself

6 messages · Page 1 of 1 (latest)

kindred roost
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

alpine nova
#

how does the code you sent relates to the error?

gloomy dew
#

You forgot to add break in your switch statement cases

alpine nova
#

yeah but, the line numbers don't seem to match up at all with the error

#

unless i'm missing something

nova harnessBOT
#

Documentation suggestion for @kindred roost:
mdn switch
The switch statement evaluates an expression, matching the expression's value against a series of case clauses, and executes statements after the first case clause with a matching value, until a break statement is encountered. The default clause of a switch statement will be jumped to if no case matches the expression's value.