🎒
TouchGuild Guide
Get back Home
  • TouchGuild's Docs
  • Introduction
  • Privacy Policy
  • 📝Installation & Preparation
  • âš’ī¸Setting up an application
  • 🤖Creating your application
  • Intents
  • Application Commands
    • Registering
    • Command Interactions
    • Components
  • đŸ“ŦManaging messages
    • â„šī¸Tips
    • Original Message concept & how it works
    • Creating embeds
  • Permissions & Roles
  • 😰Reactions
  • Data & Analytics
  • Managing members
    • đŸ’¯Award experience to server members
    • đŸĻĩBan, unban & kick server members
Powered by GitBook
On this page
  • Available intents
  • Example on how to enable some intents

Was this helpful?

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]
});
PreviousCreating your applicationNextApplication Commands

Last updated 7 months ago

Was this helpful?