Skip to content
Docs

Connect Discord

Add the FiveStaff bot to your Discord server to post staff logs to your channels, give staff seats from their Discord roles and use slash commands.

On this page

Connecting your Discord server gives you three things:

  • Logs in your channels. Reports, staff actions, appeals and more are posted where your team already looks.
  • Role sync. Your Discord roles decide who is on your FiveStaff team.
  • Slash commands. Staff can look players up, warn, kick and ban from Discord. See the Discord bot.

Add the bot#

  1. Go to Settings → Discord and press Add FiveStaff to Discord.
  2. Discord asks which server to add it to. Choose yours.
  3. Discord shows the permissions the bot asks for. Press Authorise.
  4. You come back to the panel, which now says Connected.

The bot asks only for what it needs: to read and post in channels, to manage roles so it can give a member of staff their Discord role when you sign off their trial, and to manage webhooks so your game logs post quickly. It never asks to be an administrator.

The Discord settings, connected, with a channel chosen for each kind of log
Once connected, choose where each kind of log goes

Choose your log channels#

Under Log channels, pick a channel for each kind of event, then press Save channels. Leave one unset and that kind is not posted at all.

Kind What is posted
Actions Every warning, kick, ban, note and commendation
Reports New reports, with buttons to claim and view them
Watch sessions When staff start and stop watching a player
Calls Calls between staff and players
Trust flags Players who join with a low trust score
Join queue Players waiting at the gate for a decision
Appeals New appeals and decisions
Player logs Alerts from your alert rules

Game logs#

Under Game logs you can also send everything that happens in your server to Discord as it happens. These need player logging turned on, and only post the kinds of event it is collecting.

Kind What is posted
Deaths Every death and kill: who, how, the weapon, the damage, where the hit landed and from how far. Falls, fires, drownings and being hit by a vehicle are named too. Revives and jail are posted here as well
Combat Explosions, fires, and weapons handed to or taken from another player
Joins and leaves Every player joining and leaving
Money Payments, transfers, wages and bills
Items Items gained, lost, used, given, dropped and crafted
Vehicles Vehicles taken out, stored, bought, sold and driven
Jobs Job changes and going on or off duty
Property Houses and apartments bought, sold and entered
Server events Restarts, resources started and stopped, and admin commands from your framework
Your scripts Anything your own scripts record

FiveStaff posts game logs through a webhook it makes in each channel the first time it posts there, called FiveStaff logs. This keeps busy log channels fast and stops them slowing down the bot's commands. It needs the Manage Webhooks permission in those channels. If you added the bot before it asked for that, give its role Manage Webhooks, or the logs post as the bot, which is slower when your server is busy.

A busy channel is grouped into a few messages at a time. If a channel ever gets more logs than Discord lets it post, the least important are left out first (wages before deaths), and the next message says how many. Every one of them is still in the player log.

A picture with each death

Turn on Add a picture of the game to each death and each post in your deaths channel shows what the player saw when they died. The picture goes straight to your Discord channel and FiveStaff never keeps a copy. It is taken once, small and in the background, so the player's game does not slow down, and no more than once a minute for the same player.

Set up role sync#

Under Role sync, each of your FiveStaff roles has a Granted by list. Choose the Discord role that should give it and press Add.

Role sync, with a Discord role mapped to each FiveStaff role
Each FiveStaff role can be granted by one or more Discord roles
  • Several Discord roles can grant the same FiveStaff role, such as a Senior Moderator and a Moderator role.
  • Someone holding roles that grant different FiveStaff roles gets the one that grants the most.
  • Take the Discord role away, or remove the mapping, and they lose their seat and are signed out.
  • Role sync only removes seats it gave. People you invited with a link are left alone.

A new member of staff gets their seat the first time they sign in to the panel with Discord. Ask them to open panel.fivestaff.gg once.

Next step#

Run through the setup checklist.