so i installed packages and wtv and it won’t ready up.
i have this in my code:
client.on(‘ready’,()=>{
console.log(${client.user.tag} is online
);
and it hasnt been sent meaning its not readyed up please help
so i installed packages and wtv and it won’t ready up.
i have this in my code:
client.on(‘ready’,()=>{
console.log(${client.user.tag} is online
);
and it hasnt been sent meaning its not readyed up please help
Hi! Welcome to the community! Can you explain your issue in detail? Did you define the client?
Are there any errors in logs?
You are missing a closing bracket.
let me help you bro
const discord = require(‘discord.js’);
const client = new discord.Client();
client.on(‘ready’, function() {
console.log(${client.user.tag} is online!);
})
Working? If yes, good look!
That is weird, because my bot is having the same issue, it worked before, but now, the client.login(process.env.TOKEN)
is returning Promise { <pending> }
It seams to not login at all.
Edit: I don’t know when it started happening.
Edit2: I ran the project on my computer and it started with no problem.
Edit3: Well, seams that the project was on a banned host.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.