Ask coding questions

← Back to all posts
Problem with token
yairrsha

I'm trying to make a discord bot for me and my friends
but every time I run the program it says this:
const token = this.client.token ?? this.client.accessToken;

pls help me, I checked few websites and didn't find what can I do to fix it

Voters
yairrsha
Comments
hotnewtop
CoderGautamYT
SixBeeps

This is a very commonly asked question, I'd recommend searching for the problem first before asking it.

Anyways, you need to upgrade your version of Node. The only way I know how to do that is by using the NodeJS 16 Repl, but there should be a way to do it with your currently existing Repl.

ch1ck3n

@SixBeeps

I'd recommend searching for the problem first before asking it.

more questions = more cycles 🤑

WE TALKING BUISNESS HERE