Skip to content
Does anyone else have this issue?
Profile icon

Ever since I updated my discord bot from discord.js version 12 to discord.js version 13, it has not allowed me to start my bot. It logs an error that points to a file within node_modules that I cannot see.

Error: SyntaxError: Unexpected token '?'

Does anyone have a fix or know why this is happening?

You are viewing a single comment. View All
Answered by JustCoding123 [earned 5 cycles]
View Answer
Profile icon

Hey, finished following the tutorial. It works however, whenever I try to do a command it sends a series of errors. one including:

(node:1358) DeprecationWarning: The message event is deprecated. Use messageCreate instead
(Use node --trace-deprecation ... to show where the warning was created)
throw new DiscordAPIError(data, res.status, request);

DiscordAPIError: Cannot send an empty message