discordjs / discord.js-modules

Modularisation of discord.js (WIP)
Apache License 2.0
193 stars 30 forks source link

SyntaxError: Unexpected Token #75

Closed crystalstorm466 closed 2 years ago

crystalstorm466 commented 2 years ago

When deploying commands for discord.js an error occurs with the rest module.

*PATH*\DiscordMusicBotJS\node_modules\@discordjs\rest\dist\lib\RequestManager.js:66 const hash = this.hashes.get(${request.method}:${routeID.bucketRoute}) ??Global(${request.method}:${routeID.bucketRoute});

I am getting a syntax error with the question mark as seen here: SyntaxError: Unexpected token '?'

I have tried removing the second question mark but I am still getting an error.

SuperchupuDev commented 2 years ago

update to node 16