Error: SyntaxError: unexpected token?

@SteGriff nullish coalescing is actually supported in js, but it’s a relatively new feature and works differently to the logical or.
@Austin_Westphal can you make sure you’re using node v14 or above? In your package.json, add the following:

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

However it looks like you’re probably using discord.js v13, so you’ll need to use node 16 instead.
Happy Glitching!

1 Like