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 struct CommandLimiter {
// private fields
}pub struct Shard {
// private fields
}fn[X] Shard::start(group : TaskGroup[X], token~ : String, intents~ : Intents, 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, queue_capacity? : Int, telemetry? : (TelemetryEvent) -> Unit, sleeper? : async (Int) -> Unit, rand? : Rand) -> ShardInstall
Download zipAn experimental Discord library for MoonBit: typed APIs, a native gateway with voice (DAVE E2EE), and JS/serverless HTTP interactions.
Dependencies