gaato/discord/gateway does not have a README file
pub(open) trait GatewayTransport {
async fn recv(Self) -> GatewayFrame
async fn send(Self, String) -> Unit
async fn close(Self, code~ : Int) -> Unit
}pub(open) trait Inflater {
fn push(Self, Bytes) -> String? raise
}pub(all) suberror InflateError {
Malformed(message~ : String)
InvalidUtf8
TooLarge(limit~ : Int)
} derive(Debug)pub struct CommandLimiter {
// private fields
}fn CommandLimiter::CommandLimiter(limit? : Int, window_ms? : Int, clock? : &Clock) -> CommandLimiterpub struct Shard {
// private fields
}fn[X] Shard::start(group : TaskGroup[X], token~ : String, intents~ : Intents, capabilities? : GatewayCapabilities, gateway_url? : String, shard_id? : Int, shard_count? : Int, identify_queue? : &IdentifyQueue, event_filter? : (EventKind) -> Bool, connector? : async (String) -> &GatewayTransport, compress? : Bool, inflater_factory? : () -> &Inflater raise, max_message_bytes? : Int, queue_capacity? : Int, telemetry? : (TelemetryEvent) -> Unit, clock? : &Clock, rand? : Rand, resume? : Session, presence? : UpdatePresence) -> Shardlet DEFAULT_MAX_MESSAGE_BYTES : IntInstall
Download zipAn experimental Discord library for MoonBit: native/JS/Wasm REST, interactions, and gateway bots. Voice is in gaato/discord_voice.
Dependencies