Skip to content
Sign upLog in
← Back to Community
Getting Discord.js on replit (new update for nodevv12)
Profile icon
DuckInc

I have seen that making a new replit and doing

const Discord = require('discord.js')

then trying to login with a bot toke doesn't work and gives and error

- token.login ?? token

to fix this just install discord.js v12
go to the console and run

then just require it like always hope this helps

Voters
Profile icon
aaaly-AlixopoAl
Profile icon
DuckInc
Comments
hotnewtop
Profile icon
aaaly-AlixopoAl

lock