Getting Discord.js on replit (new update for nodevv12)
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
npm i [email protected]
then just require it like always hope this helps
Voters
lock