Expand description
Discord messaging bridge โ Gateway WebSocket + REST send.
Lifecycle:
DiscordBridge::init_global(config, http)โ call once at startup.- The gateway loop runs in a background tokio task (auto-reconnects).
DiscordBridge::get()returns the singleton for HTTP handler use.bridge.send(msg)enqueues a message for the REST client.bridge.health()returns the current connection status.
Modulesยง
- gateway ๐
- Discord Gateway WebSocket client.
- rest
- Discord REST API client โ message send only.
- types
- Discord Gateway and REST API wire types.
Structsยง
Staticsยง
- GLOBAL_
BRIDGE ๐