Intents

They're great to only receive the event information you'll actually use. Each intent is disabled by default to prioritize the use of Application Commands, a powerful way to handle commands.

Available intents

GatewayLayerIntent.ALL
GatewayLayerIntent.GUILDS
GatewayLayerIntent.GUILD_MESSAGES
GatewayLayerIntent.GUILD_MESSAGE_REACTIONS
GatewayLayerIntent.MESSAGE_CONTENT
GatewayLayerIntent.GUILD_WEBHOOKS

Example on how to enable some intents

const client = new Client({
    token: "bla bla",
    intents: [GatewayLayerIntent.GUILD_WEBHOOKS, GatewayLayerIntent.GUILDS]
});

Last updated