Discord.js client.on message error

there is no such code but i am getting an error please help ;

[enter image description here][1]I searched the internet and I could not get a result, I saw that we also got a very quick answer and I ask for the sauce by registering here, thank you and have a nice day.
I may not be able to explain well because I am Turkish.

What version of node are you using? Optional chaining (?.) is only supported in node 14+.
Make sure the followingis in your package.json file:

...
"engines": {
  "node": "14.x"
}
...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.