discord_gleam/ws/event_loop

Types

pub type Msg {
  Close
  TimeUpdated(String)
}

Constructors

  • Close
  • TimeUpdated(String)
pub type State {
  State(has_received_hello: Bool, s: Int)
}

Constructors

  • State(has_received_hello: Bool, s: Int)

Functions

pub fn main(
  bot: Bot,
  event_handlers: List(fn(Bot, Packet) -> Nil),
) -> Nil
Search Document