when i run the code it tell me :
~/DiscordBot-Flash$ npm start
> djs@1.0.0 start /home/runner/DiscordBot-Flash
> node index.js
/home/runner/DiscordBot-Flash/node_modules/discord.js/src/rest/RESTManager.js:32
const token = this.client.token ?? this.client.accessToken;
^
SyntaxError: Unexpected token '?'
i don't know how to fix that can some one help me please
This is the nullish coalescing operator and it is supported in node from 14.0.0
In their docs they write nodejs version 16.6.0 or newer is required
Fix: upgrade node version to at least 16.6.0
This is the solution for the people who use repl.it https://blog.abbasali.me/how-to-use-nodejs-v16x-on-replit