Connection Timeout Error

hey guys im really new to all this, im trying to set up a bot and i cant figure out why im getting this connection timeout error Discordjs 14.13.0 Nodejs 16.20.2 I pretty much followed everything from the site
import { Client, Events, GatewayIntentBits } from 'discord.js';

const client = new Client( {
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent]
} );

client.once(Events.ClientReady, c => {
console.log(`Ready! Logged in as ${c.user.tag}`);
});


client.login('token');
import { Client, Events, GatewayIntentBits } from 'discord.js';

const client = new Client( {
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent]
} );

client.once(Events.ClientReady, c => {
console.log(`Ready! Logged in as ${c.user.tag}`);
});


client.login('token');
Firewall is disabled, I have network connection, ive also tried reinstalling everything and reseting my token but same thing
No description
2 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
treble/luna
treble/luna14mo ago
Looks like a network issue
Want results from more Discord servers?
Add your server