shimmer

Types

pub type ClientOptions {
  ClientOptions(intents: Int)
}

Constructors

  • ClientOptions(intents: Int)

Functions

pub fn connect(client: Client) -> Result(Bool, ShimmerError)

Opens a websocket connection to the Discord Gateway. Passes this off to an actor to listen to messages.

pub fn new(token: String, handler_builder: HandlersBuilder) -> Client

Create a new client with the defualt setup, reccomended for most users

pub fn new_with_opts(token: String, handler_builder: HandlersBuilder, opts: ClientOptions) -> Client

Create a new Shimmer Client with more control over the options

Search Document