const Discord = require('discord.js');
const { Client, Intents } = require('discord.js');
const client = new Client({
intents: [
Intents.FLAGS.GUILDS, // חובה לצרכי הבסיסיים של הבוט
Intents.FLAGS.GUILD_MESSAGES // רק אם הבוט צריך לקרוא ולכתוב הודעות
]
});
client.once('ready', () => {
console.log('Bot is online!');
});
client.login('t
');
const Discord = require('discord.js');
const { Client, Intents } = require('discord.js');
const client = new Client({
intents: [
Intents.FLAGS.GUILDS, // חובה לצרכי הבסיסיים של הבוט
Intents.FLAGS.GUILD_MESSAGES // רק אם הבוט צריך לקרוא ולכתוב הודעות
]
});
client.once('ready', () => {
console.log('Bot is online!');
});
client.login('t
');