.add_intent(IntentGatewayBits)

Adds an intent to the bot.

MUST BE RUN WITHIN THE define_intents FUNCTION IN YOUR main.js FILE

Example

const core = require('bit/core');
const { GatewayIntentBits } = require('discord.js');

module.exports = {
    define_intents: function define_intents() {
        // Adds the MessageContent intent
        // I recommend against adding this intent unless ABSOLUTELY required
        // This intent allows the bot to see Message Content and is ABSOLUTELY dangerous
        core.add_intent(GatewayIntentBits.MessageContent)
    }
}

Last updated

Was this helpful?