Discord Chat Relay
A downloadable mod
Discord Chat Relay
Bring your Rust server's chat into Discord. Forward in-game Global messages straight to one or more Discord channels via webhook — no bots, no extra setup.
Stay Connected, Even Off-Server
Watch your community's Global chat live in Discord. Perfect for admins keeping an eye on activity, or for players who want to stay in the loop while away from the game.
Features
|
๐ฃ
Global Chat ForwardingEvery message sent in Global chat is relayed to your Discord channel in real time, with the player's display name attached. |
๐
Multiple WebhooksConfigure as many webhook URLs as you need. Mirror chat into a public log channel, an admin-only channel, and an archive at the same time. |
|
๐ก๏ธ
Mention Protection
Mentions like |
๐ซ
Smart FilteringEmpty messages, muted players, and banned users are skipped automatically. Team, Local, Clan, and Cards channels are never relayed. |
|
โก
Lightweight & AsyncWebhook requests run asynchronously with a 10 second timeout. Discord outages will not stall your server tick. |
๐
Plain Text, No EmbedsMessages arrive as clean text using the player's name as the webhook username. Long messages are safely truncated to fit Discord's 2000 character limit. |
How It Works
| โ A player sends a message in the Global chat channel. |
| โ The plugin checks that chat is enabled, the message is not empty, and the player is not muted or banned. |
| โ Mentions in both the message body and the player's display name are sanitized to prevent unintended Discord pings. |
| โ The message is posted to every configured webhook URL with the player's name as the displayed sender. |
| โ The original chat message continues to display in-game exactly as before — nothing is blocked or modified for players. |
Configuration
A configuration file is automatically generated at
oxide/config/DiscordChatRelay.json
on first load.
{
"Global chat webhook URLs": [
"https://discord.com/api/webhooks/xxxxx/xxxxx",
"https://discord.com/api/webhooks/bbbbb/bbbbb"
]
}
| Option | Default | Description |
|---|---|---|
Global chat webhook URLs
|
[]
|
List of Discord webhook URLs that will receive Global chat messages. Add as many entries as you like — every URL receives the same message. |
Where to Get a Webhook URL
| โ Open your Discord server settings and pick the channel where chat should appear. |
| โ Go to Integrations โ Webhooks and create a new webhook. |
โ
Copy the webhook URL and paste it into Global chat webhook URLs.
|
Installation
|
1
Copy the plugin file Place DiscordChatRelay.cs
into your server's oxide/plugins/
directory.
|
|
2
Start or restart your server The config file will be generated automatically at oxide/config/DiscordChatRelay.json.
|
|
3
Add your webhook URLs Open the config file and add one or more Discord webhook URLs to Global chat webhook URLs.
|
|
4
Reload the plugin Run oxide.reload DiscordChatRelay
in the server console to apply changes.
|
Relayed Channels
Only the Global channel is forwarded. Private channels stay private — team conversations and clan chat never leave the game.
| Channel | Relayed? |
|---|---|
| Global | โ Yes |
| Team | โ No |
| Local | โ No |
| Clan | โ No |
| Cards | โ No |
Important Notes
Messages flow from Rust to Discord only. Posts made in your Discord channel are not sent back into the game.
Treat your webhook URLs like passwords. Anyone with the URL can post to that Discord channel.
Keep DiscordChatRelay.json
out of public repositories and shared backups.
Each Discord webhook is limited to roughly 30 posts per minute by Discord itself. On very busy servers, large bursts of chat may briefly exceed this limit and Discord may drop or delay messages until the rate limit resets.
Discord enforces a 2000 character limit per message. Anything longer is truncated with an ellipsis before being sent.
Discord Chat Relay — An Oxide plugin for Rust dedicated servers.
Made by little method
Download
Click download now to get access to the following files:

Leave a comment
Log in with itch.io to leave a comment.