|Docs

/serverlock

Overview

/serverlock marks the server as locked and, optionally, sets up a password gate: a dedicated channel where new members must type a password to be treated as let in.

Required Permissions

  • Administrator

Options

OptionRequiredDescription
actionYesEnable or Disable
passwordNoPassword for the gate channel (only used with enable)

Behavior

  • Enable without a password: marks the server as locked.
  • Enable with a password: creates (or reuses) a server-password channel, visible to everyone even while other channels are locked, where the password is posted for staff reference and new members are expected to enter it.
  • The password is stored in plain text in BetterAntiSpam's configuration. Anyone with access to /serverlock enable again can see it.
  • Disable: clears the lock, removes the password, and deletes the password channel if one was created.
  • Enabling or disabling logs a moderation-log entry and posts a public announcement in the channel where you ran the command.