No ready event

I'm logging ready, rateLimit, warn, and debug:
client.on('rateLimit', (rateLimit) => {
console.log(rateLimit);
})

client.on('warn', console.warn);
client.on('debug', console.log);
client.on('rateLimit', (rateLimit) => {
console.log(rateLimit);
})

client.on('warn', console.warn);
client.on('debug', console.log);
But all I get is this:
6 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Isra
IsraOP3y ago
I've tried this over 10 times and waited out for an hour. And I doing something wrong here?
duck
duck3y ago
it's very possible this is just a replit issue
Isra
IsraOP3y ago
That's possible, but I don't see why
duck
duck3y ago
well several of replit's shared ips are banned by discord so in many cases where bots experience login issues on replit, the cause is simply the bot being hosted on replit
Isra
IsraOP3y ago
Wouldn't it say something if it were banned? Like some kind of error, no silent fail Look if it really is replit's fault, there has to be some kind of error or reasoning other than being stuck ay "Preparing to connect to the gateway..." Oh that makes sense Ot would also make sense if Discord responds with errors to blocked IPs - both does Oh ok If you think about it - wouldn't this code strain the memory/server?
if(bannedUsers.has(req.socket.remoteAddress)) return;
if(bannedUsers.has(req.socket.remoteAddress)) return;
Want results from more Discord servers?
Add your server