Ask coding questions

← Back to all posts
How i fix this
mechzzzz

/home/runner/JU-Bot/node_modules/discord.js/src/rest/RESTManager.js:32
const token = this.client.token ?? this.client.accessToken;
^

SyntaxError: Unexpected token '?'

Voters
mechzzzz
Comments
hotnewtop
VulcanWM

to get the token from the env to process.env.token