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?
@JustCoding123 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)
/home/runner/Primer/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
Does anyone else have this issue?
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?
(node:1358) DeprecationWarning: The message event is deprecated. Use messageCreate instead
(Use
node --trace-deprecation ...
to show where the warning was created)/home/runner/Primer/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Cannot send an empty message