discord_gleam/discord/intents

Types

pub type Intents {
  Intents(
    guild_messages: Bool,
    message_content: Bool,
    direct_messages: Bool,
  )
}

Constructors

  • Intents(
      guild_messages: Bool,
      message_content: Bool,
      direct_messages: Bool,
    )

Values

pub fn all() -> Intents

Enable all the intents, use this if you want to receive all supported events.

pub fn default() -> Intents

Enable a set of default intents, which are usally used by most bots.

pub fn intents_to_bitfield(intents: Intents) -> Int

Calculate a bitfield from a set of intents.

pub fn none() -> Intents

Disable all the intents, use this if you want to receive no events.

Search Document