Snapshot Your Discord Server Into Git
Discord has no undo. An hourly script that writes roles, channels and permissions to sorted YAML in a git repository gives you history, blame and a rebuild plan.
Guide collection
Bots, Activities and server administration for communities that run on Discord
6 guides in this collection
Discord has no undo. An hourly script that writes roles, channels and permissions to sorted YAML in a git repository gives you history, blame and a rebuild plan.
Any rule of the form "when a message appears, post a message" can trigger itself. Skip the bot's own events by default, and make including them a visible choice.
Nobody should have to remember a register-commands step. Build each server's command list from one function, hash it, and sync when the hash changes.
A bot that answers in a public server will be asked to do things it should not. Identity comes from the platform, guests give no orders, and code decides what is public.
An Activity runs in an iframe, and the server and channel ids it reports are claims. Decide access from your own member and voice-state lookup, on every call.
A listing is public only while the server has opted in, an operator has approved it, and its data is fresh. Put all three in the query, so a lapse hides the listing.