Skip to main content

Users and Security

Add control panel accounts with the right panel role and server access, and protect your own sign-in with an authenticator app or a passkey.

Why Use Panel Roles?

  1. Gives moderators only the access they need, so a Viewer can check settings without changing them.
  2. Limits an account to chosen Discord servers, so a helper sees only the servers they look after.
  3. Adds a second sign-in step, so a stolen password alone doesn't open the control panel.

Panel Roles

RoleWhat it can do
OwnerEverything, on every server. There is exactly one, made at setup, and nobody can change it on the Users page
AdministratorEverything, including adding, changing, and removing users
OperatorChange features, the Bot Token, the invite page, and notifications, and start, stop, and restart the bot
ViewerSee the bot's status, the features, the invite page, and the logs without changing anything. The Notifications page is hidden from them

Every role can change its own password and username, set up its own authenticator app and passkeys, and create its own access tokens.

Only the Owner and Administrators can open Backup to export or import configuration. Operators and Viewers don't see the page.

Server Access

Each account sees either All servers or Only these servers. The panel refuses requests for any other server with "That Discord server isn't available."

  • All servers — Includes servers the bot joins later, and only someone who sees every server can give it.
  • Only these servers — Limits the account to the servers you tick. Someone with chosen servers can only give the servers they can open themselves.
  • Managing others — An Administrator with chosen servers can only change users whose servers are all inside their own.

Add a User

The Owner and Administrators add accounts on the Users page. On a wide screen it is under Settings in the sidebar; on a phone, open it from the Settings sheet.

  1. Select Add user.
  2. Enter a Username of 3 to 64 letters, digits, periods, underscores, or hyphens, starting with a letter or digit.
  3. Enter a Password of at least 12 characters, and share it with them privately. The bar under the field rates it from Weak to Strong, and any password of 12 to 1,024 characters is accepted.
  4. Choose a Role: Administrator, Operator, or Viewer.
  5. Choose All servers, or Only these servers and tick the servers.
  6. Select Add user.
Add user dialog with the username taylor, a password rated Strong, the Operator role, and Only these servers with Stonker Lounge ticked
Adding a user

Usernames are unique without regard to letter case, so a taken name shows "That username is already in use." The new user can change their password and add an authenticator app or a passkey on their Sign-in and security page.

Change or Remove a User

Each row on the Users page shows the username, when they last signed in, their server access, whether two-factor sign-in is on, and their role, with Edit and Delete buttons. 2FA with a check means they have an authenticator app or a passkey, and pointing at it names which.

The Servers, 2FA, and Role menus above the list narrow it to the users who match, and the count beside them shows how many are left.

Edit changes the role and the server access. Its Account section has the options below, and Save applies everything at once. Turn off two-factor appears only for users with an authenticator app or a passkey.

Delete asks you to confirm, then removes the account, its sessions, its access tokens, and its sign-in methods.

The Owner, your own account, and users with servers you can't open have no Edit or Delete buttons. Change your own account in Sign-in and security.

Edit avery dialog with the Administrator role, All servers, and the Account section with Set a new password ticked above a New password field, then Turn off two-factor and Suspended
Editing a user

Your Password and Username

Open Sign-in and security from the account menu on a wide screen or a phone.

  • Password — Enter the Current password, then a New password of at least 12 characters twice, and select Change password. The bar under New password rates it from Weak to Strong. Your other devices are signed out, while this one stays signed in.
  • Username — Enter the New username and Your password, then select Change username. The new name applies at once, including to sessions that are already signed in.

Authenticator App and Recovery Codes

  1. Under Authenticator app, select Set up. A dialog walks through three steps.
  2. Enter your password and select Continue.
  3. Scan the QR code with your authenticator app, or type the Setup key into the app. Copy puts the key on the clipboard.
  4. Enter the 6-digit code in Code and select Turn on.
  5. Save the 10 recovery codes with Copy all or Download .txt, check I saved these codes, and select Done.
Set up authenticator dialog at step 2 of 3, with a QR code, the setup key in blocks of four, a 6-digit code in Code, and the Cancel and Turn on buttons
Scanning the QR code

The panel stores only a hash of each recovery code, so it can't show them again.

Passkeys

  1. Under Passkeys, enter a Passkey name of up to 80 characters, such as the device it's on.
  2. Enter Your password and select Add passkey.
  3. Confirm with your device, such as Face ID, Touch ID, Windows Hello, or a security key.

Password Checks

Changing how you sign in asks for your current password first: setting up or turning off the authenticator app, making new recovery codes, adding or removing a passkey, and changing your username. A wrong one shows "That password is incorrect."

Wrong password checks count toward the same limit as failed sign-ins, 10 per address in 15 minutes, and then the page shows "Too many attempts. Try again in 15 minutes."

Sessions and Sign Out

If You're Locked Out

warning

Nobody can reset the Owner's password or two-factor sign-in in the control panel. It is recommended to keep the Owner's recovery codes somewhere other than the phone with the authenticator app, and to add a passkey.

If the Owner loses all three anyway, delete the installation key with sudo docker exec discord-stonker-bot rm /config/keys/installation.key and sudo docker restart discord-stonker-bot, or with Compose, docker compose exec app rm /config/keys/installation.key and docker compose restart app. Every authenticator app is then turned off, not just the Owner's, and the Bot Token, every feature secret, and the secret fields of every notification destination are removed too, as described in If the Key File Is Missing.