Custom Intents
Pre-release
Pre-release
Changes
- Define custom intents overriding the default provided by the library.
import { Bot } from 'breezer.js';
import { Intents } from 'discord.js';
const bot = new Bot({
token: "<TOKEN>",
commandsFolder: "commands",
prefix: "!",
lang: ".js",
// new
intents: [Intents.FLAGS.GUILDS]
});
Default intents:
[
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
Intents.FLAGS.MESSAGE_CONTENT,
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS
]