Skip to content

Gateway Intents

Arthur Neuman edited this page Jun 5, 2020 · 1 revision

Intents

Intents are a way to subscribe to Discord events such as a message being created or deleted.

Cyclone automatically calculates some intents based on enabled features

However, if you need an intent that isn't automatically calculated by Cyclone, such as TYPING_START, you can supply custom intents that are added onto the calculated intents by supplying an array to the Agent.

const agent = new Agent({
  Eris,
  options: {
    intents: ['TYPING_START']
  }
})

Components


tui.jsdoc-template (Fork)

Clone this wiki locally