feat(lib/client): now adding all the Gateway needed for the bot

This commit is contained in:
Raphael 2025-12-05 12:21:18 +01:00 committed by Raphaël
parent d90746b07c
commit d121765e88

View file

@ -1,13 +1,18 @@
import {
Client,
GatewayIntentBits,
} from 'discord.js';
import { Client, GatewayIntentBits } from 'discord.js';
export const client: Client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildModeration,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.AutoModerationConfiguration,
GatewayIntentBits.AutoModerationExecution,
],
});