Discord integration
Install the bot
OAuth install flow for the user-facing Discord integration.
Installing routes Rust Pulse events to channels on your Discord server.
Steps
- Open the dashboard's Setup → Discord tab.
- Click Add to Discord.
- A Discord OAuth window asks which server (guild) to install into and which scopes to grant. The defaults are correct — don't strip any scope or the bot won't be able to post to channels you choose later.
- Confirm. You'll be redirected back to the dashboard, which now shows your guild name and the channel-picker UI.
What's stored
The API stores one row in DiscordIntegration:
guildId,guildName,installedAt.- Channel IDs for each event family.
- Per-family enabled flags.
The bot's OAuth token isn't stored — we use the bot's own token to post messages. The user-side OAuth is only used to confirm install consent.
Permissions the bot needs
- Read Messages / View Channels — on every channel you want to use.
- Send Messages — on those channels.
- Embed Links — so event posts can include the rich Rust Pulse embed.
- Attach Files — optional, for image-attached posts (camera frames, map screenshots).
If a channel is missing a permission, the dashboard's Setup tab shows a warning badge.