Skip to content
White / YV

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.

SurfaceRustNode / TypeScript
Gatewaytwilight-gateway, twilight-cache-inmemory, twilight-standbydiscord.js, @discordjs/ws
HTTP APItwilight-http, twilight-model, twilight-validatediscord.js, @discordjs/rest
Local IPCdiscord-rich-presence, discord-presencediscord-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.

Diagram Conceptual note. User accounts, credentials, metrics, server details, and private automation are excluded.

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.