Field note
Discord API & RPC Notes
Authorized integration experiments
Summary
Small experiments across official Discord bot APIs and local Rich Presence surfaces, in Rust and Node. The work explores authorized interaction, Gateway, and local IPC behavior.
Role and scope
I built and maintained small bot/API and Rich Presence experiments. What follows stays on the boundary between an authorized application and official bot/API or local RPC behavior; none of it was a client delivery or a production service.
Surfaces and libraries
Three surfaces, each with its own set of libraries. On the Rust side that set is Twilight, a group of independent crates rather than one framework, so you pick the pieces the bot actually needs.
| Surface | Rust | Node / TypeScript |
|---|---|---|
| Gateway | twilight-gateway, twilight-cache-inmemory, twilight-standby | discord.js, @discordjs/ws |
| HTTP API | twilight-http, twilight-model, twilight-validate | discord.js, @discordjs/rest |
| Local IPC | discord-rich-presence, discord-presence | discord-rpc, @xhayper/discord-rpc |
The client-side work stands apart from all three. That work is Vencord plugins, written in TypeScript, running inside a modified desktop client rather than against an official API. It appears here because it belongs to the same body of work, not to the same integration boundary.
Discord API and RPC notes
Authorized integration surfaces, kept deliberately narrow
Outcome
Built experiments across official bot APIs and Rich Presence.
What I would improve
I would consolidate the experiments into one focused integration with documentation, tests, and clear operational ownership.
Need an official API integration with a focused technical owner? Discuss your project.