VX Admin Coming Soon...
Scripts

Discord reports

Turn every report into a forum post in your staff Discord.

Every report becomes a post in a Discord forum channel, and the player's messages, claims and closing are added to it as they happen. The quickest way needs only a webhook: no bot, and no token to look after.

With a webhook

  1. Create a forum channel that only staff can see.
  2. Open its settings → Integrations → Webhooks → New Webhook → Copy Webhook URL.
  3. Paste it into Config.Discord.webhook and restart vx-admin.
config.lua
Config.Discord = {
    enabled = true,
    webhook = 'https://discord.com/api/webhooks/...',
    ...
}

A webhook can only post into that one channel. It can't read anything or act on your server, so even if someone got hold of the URL, the most they could do is post in that channel (delete the webhook and make a new one if that ever happens). Staff answer reports in game or in the web panel.

Two-way, with a bot (optional)

To also answer from Discord, use a bot instead. Staff replies in the thread reach the player in game, and !claim, !close, !warn reason and !kick reason work there.

  1. Create a bot at discord.com/developers and invite it to your Discord server with no permissions.
  2. On the staff forum channel only, allow the bot Send Messages, Create Posts, Send Messages in Threads and Read Message History. That's all it can ever touch.
  3. Right-click the forum channel → Copy Channel ID, and put it in Config.Discord.forumChannel.
  4. Add the token to your server config:
server.cfg
set vxadmin_discord_token "your-bot-token"

A set value stays on your server: it's never sent to players (unlike setr and sets). To keep tokens out of the file you share or edit most, put them in their own file next to it, such as secrets.cfg, and add exec secrets.cfg to server.cfg. If a token ever leaks, press Reset Token in the Developer Portal and the old one stops working.