discord_gleam/types/bot

Types

pub type Bot {
  Bot(
    token: String,
    client_id: Snowflake,
    intents: intents.Intents,
    cache: Cache,
  )
}

Constructors

  • Bot(
      token: String,
      client_id: Snowflake,
      intents: intents.Intents,
      cache: Cache,
    )
pub type Cache {
  Cache(
    messages: option.Option(
      uset.USet(#(Snowflake, MessagePacketData)),
    ),
  )
}

Constructors

  • Cache(
      messages: option.Option(
        uset.USet(#(Snowflake, MessagePacketData)),
      ),
    )
Search Document