Skip to content

Custom Intents

Pre-release
Pre-release
Compare
Choose a tag to compare
@spuckhafte spuckhafte released this 13 Sep 17:08
· 2 commits to master since this release

commit

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
]