xxxxxxxxxx
import { Client } from 'discord.js';
// Enough for slash commands
const client: Client = new Client({
intents: [
'Guilds',
'GuildMessages'
],
});
xxxxxxxxxx
const Discord = require('discord.js')
const CLIENT = new Discord.Client({
intents: new Discord.Intents(32767)
})
xxxxxxxxxx
const { Client, GatewayIntentBits, Partials, Collection, ActivityType } = require('discord.js')
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.Message, Partials.User, Partials.GuildMember, Partials.Reaction]
})