Skip to main content

Moderation

The Moderation module provides a complete set of tools for managing users: banning, kicking, muting, warnings, clearing messages, changing nicknames, and managing roles.

Enabling the Module

  1. Dashboard → Your server → toggle Moderation
  2. Click Edit and add moderation roles
  3. Save changes
Important

Without configuring moderation_roles, no moderation command will work — this applies to all users, including Discord administrators. At least one role must be added to the list, and the user must have one of these roles for the commands to work.

Configuration

OptionTypeDefaultDescription
moderation_rolesrole ID list[]Roles with access to moderation commands
warning_thresholdnumber (1–10)3Warning threshold — sends a notification to logs when reached
dm_on_actionbooleantrueWhether to send a DM to the user about the moderation action
auto_delete_warnings_daysnumber0Auto-delete old warnings (0 = disabled)

Dashboard configuration

The Moderation module edit panel contains:

  • Moderation Roles — multi-select with server roles
  • Warning Threshold — slider 1–10
  • DM on Action — checkbox
  • Auto-delete Warnings — number field (days, 0 = off)

Commands

/ban

Bans a user from the server.

ParameterRequiredDescription
targetUser to ban
reasonReason (max 512 characters)

/kick

Kicks a user from the server.

ParameterRequiredDescription
targetUser to kick
reasonReason (max 512 characters)

/mute

Mutes a user (Discord timeout).

ParameterRequiredDescription
targetUser to mute
durationTime in minutes (1–40320, default 10)
reasonReason (max 512 characters)
info

40320 minutes = 28 days (maximum Discord timeout limit).

/unmute

Removes the mute (timeout) from a user.

ParameterRequiredDescription
targetUser to unmute
reasonReason (max 512 characters)

/warn

Issues a warning to a user (saved in the database).

ParameterRequiredDescription
targetUser to warn
reasonReason (max 512 characters)

After issuing a warning:

  • The warning is saved in the warnings table
  • The user receives a DM (if dm_on_action is enabled)
  • The bot checks if the warning_threshold has been reached
  • If so — sends a notification to the moderation log channel

/warnings

Displays a user's warning history (last 10).

ParameterRequiredDescription
targetUser to check

/clear

Deletes messages from the current channel.

ParameterRequiredDescription
amountNumber of messages (1–100)

/setnick

Changes a user's nickname.

ParameterRequiredDescription
targetUser
nicknameNew nickname (empty = reset to username)
info

Discord limits nicknames to 1–32 characters.

/role add

Assigns a role to a user.

ParameterRequiredDescription
targetUser
roleRole to assign

/role remove

Removes a role from a user.

ParameterRequiredDescription
targetUser
roleRole to remove

Role Hierarchy

All commands respect the Discord role hierarchy:

  • A moderator cannot perform an action on a user with a higher role
  • The bot cannot manage roles higher than its own

If the hierarchy doesn't allow the action, the bot returns a "hierarchy_error".

DM to User

When dm_on_action is enabled, the bot sends an embed to the user before performing the action:

  • Information about the action type (banned from / kicked from / muted in / warned in)
  • Server name
  • Duration (for mute)
  • Reason (if provided)
tip

The DM is sent "best effort" — if the user has DMs disabled or has blocked the bot, the action will still execute.

Auto-delete Warnings

If auto_delete_warnings_days > 0, every 6 hours the bot automatically deletes warnings older than the specified number of days. Useful for maintaining current history and automatically "expiring" old warnings.

Logging

Every moderation action is logged by the Logs module under the moderation category. Logs contain:

  • Action type (ban, kick, mute, warn, clear, setnick, role_add, role_remove)
  • Target (target user)
  • Moderator (who performed it)
  • Reason

Tips

Best practices
  • Set warning_threshold to 3–5 to receive notifications about problematic users
  • Enable dm_on_action so users know why they were punished
  • Use /warnings before taking more serious actions (ban/kick)
  • Configure moderation logs to have a full audit trail