Moderation

Spaces have their own moderation tools: bans, removals, mutes, timeouts, warnings and nicknames, a log of everything moderators did, and chat commands that do the same from the message bar. The Lounge has them too.

Every step is checked on the server (lib/moderation.php): the permission, the role order, and the arguments. The app only shows what you may do; it can't do more than the server allows.

Who can do what

PermissionLets someone
Ban membersBan people and lift bans (/ban, /unban).
Kick membersRemove people from the space; they can come back with an invite (/kick).
Timeout membersLock people out of the space for a while (/timeout, /untimeout).
Mute membersStop people writing and speaking (/mute, /unmute).
Warn membersWarn people, and see and clear their warnings (/warn, /warnings, /clearwarnings).
Manage nicknamesChange what people are called in the space (/nick).
Manage rolesGive and take roles below their own highest role (/role).
Manage messagesDelete messages, purge and set slowmode (/purge, /slowmode).
Manage rooms and channelsLock, unlock and nuke channels (/lock, /unlock, /nuke).
Move and disconnect membersMove people between rooms and take them out of voice (/move, /disconnect).
View moderation logRead the Space log and members' records (/userinfo).
Manage moderation settingsOpen Safety setup, AutoMod and Access, and lock the space down.

Moderators can only act on members whose highest role is below their own, and nobody can act on the space's owner. When these permissions were split up (update 14), every role kept everything it could do before.

What each step does

  • Ban: removes the member and stops them coming back, even with an invite, until the ban is lifted.
  • Remove (kick): removes the member. They can come back with an invite.
  • Mute: they can still read and listen, but can't send messages or speak in rooms. Their mic is switched off on the server, and everyone else's app keeps them silent too. A mute can last up to 28 days, or until someone unmutes them.
  • Timeout: they stay a member but can't open the space at all until the time is up (up to 28 days). They see a lock screen with the time left.
  • Warn: saves a warning with a reason on their record in this space.
  • Nickname: what they're called in this space only.

Mutes and timeouts stay in place if someone leaves the space and comes back.

The moderation pages

Space settings has a Moderation group. You see the pages your permissions open:

  • Member actions: search by name, username or user ID, then warn, mute, time out, rename, remove or ban. The eye button opens someone's record: user ID, join date, roles, current mute or timeout, warnings and history.
  • Bans (Ban members): everyone banned, why and by whom, with a button to lift each ban. You can also ban by user ID or @username, for someone who isn't in the space.
  • Space log (View moderation log): every moderation step, from these pages or from the chat: who did it, to whom, the reason and how long. What AutoMod did is there too.
  • Safety setup (Manage moderation settings): a channel where every moderation step is also posted, for your moderators. Lookups (/warnings, /userinfo) stay out of it.
  • AutoMod (Manage moderation settings): stops messages before anyone sees them, for blocked words, links and spam. Each rule blocks the message, and can also warn, mute or time out who sent it. Moderators and the roles you choose are left alone.
  • Reports: messages and people that members reported.
  • Raid defence: see below.

Access, under People (Manage moderation settings), sets what new members need before they can talk: an account of a certain age, a wait after joining, or two-factor sign-in. Moderators, and people a moderator gave a role, can always talk.

Commands

Type / in a space channel to see the commands you're allowed to use; after a command's name, a hint shows what to type next. Durations look like 30s, 10m, 1h, 1d, 2w or 1h30m (a plain number is minutes; for slowmode, seconds).

CommandWhat it does
/ban @user [reason]Ban a member.
/unban <user ID>Lift a ban (a user ID or @username).
/kick @user [reason]Remove a member.
/mute @user [duration] [reason]Mute, for a while or until someone unmutes them.
/unmute @userEnd a mute.
/timeout @user <duration> [reason]Lock someone out of the space for a while.
/untimeout @userEnd a timeout early.
/warn @user <reason>Add a warning.
/warnings @userShow someone's warnings (only you see the answer).
/clearwarnings @userClear someone's warnings.
/nick @user <name>Set a nickname; /nick @user reset puts their own name back.
/userinfo @userID, join date, roles and moderation history (only you see the answer).
/role add @user <role>, /role remove @user <role>Give or take a role.
/purge <amount> [@user]Delete the last messages here (up to 100), or only one member's.
/slowmode <duration>, /slowmode offHow often members can send a message here (up to 6 hours).
/lock, /unlockStop or allow members writing here. Moderators can still write.
/nukeRecreate the channel empty, with the same name, place and settings. Asks first.
/move @user <room>Move someone to another room.
/disconnect @userTake someone out of voice.

When a command works, the result is posted in the channel by [System] space name, with the space's icon: for example "@bob has been timed out for 1 hour. Reason: spam." When it doesn't (a missing permission, someone who isn't in the space, a duration that isn't one), only you see the reason, and the command goes back in the message bar to fix.

Raid defence

Space settings → Raid defence stops a raid in two steps. Lock down the space: stop its chat, its new joins or both (Manage moderation settings). During a chat lockdown only moderators and bots can write, edit or join rooms; holding a role isn't enough. Then act on who came in: the page lists everyone who joined in the last 10 minutes, and a selection of up to 50 can be banned, removed or timed out for a day at once, each person going through the same checks as on their own. Their messages from the last hour can go with them (Manage messages).

A space also protects itself: too many joins in a minute stop joins for 30 minutes, on the server, with nobody online. The owners get a pop-up the next time they open The Hub and the space log gets a line. The limit is on the Access page (20 joins by default, or Never).

Every moderation step, from a command or from these pages, is saved in the Space log.

For developers

Bots can use the same tools with mod_command and mod_action, within the permissions their roles give them: see the API reference.