Syntax Error from The Discord.JS Package Itself [duplicate]
Solution 1:
This is not a syntax error, it's just a support problem
This assignment is called Logical nullish assignment check this MDN ref to understand the behavior and the browser support
And for Nodejs version support - which is causing the issue for you - check this Node Green table, you can see that you need nodejs higher than v15.0.0 so this assignment can work fine.