Moderation
Understand all the various commands for moderating users.
SajuukBot will be ceasing operations on March 31st 2024, due to a variety of factors. For more information, please refer to the announcement provided on the SajuukBot discord server and your options for migrating to a new bot.
This page will detail the various basic moderation commands available to moderators.
These commands work primarily on the levels system, but you can optionally allow (or disallow!) access to specific users and roles on a per-command basis. To do this, simply add a key after the "level" definition of a command called "overrides", like this example shows:
Each value of the four given keys under overrides are lists, which can be given in traditional Python list formatting (with each value being an integer and NOT a string!) or you can use YAML's native list syntax involving hyphens for each value.
Configuration
This section of configuration is a root key, which means it should not be indented and in line with the basic settings like levels, prefix and the like. Please see the full basic configuration for more details on how it should be formatted.
Commands
Due to space constraints, the required syntax of commands, and an example of how they work, are given provided after the list of commands and explanations.
Every command follows the exact same formatting:
A key called
enabled
determining if the command is enabled or not.A key called
level
, determining the minimum level required to use the command
At the root of the moderation key is an enabled
key, which globally controls the commands assigned to this module. If the root key is false, then no command will operate, regardless of whether an individual command is enabled.
Command | Description |
---|---|
| Bans a user from the server. If the user argument does not represent an actual member, this is a forceban. Using the alias The bot must have Ban Members to use this command. |
| Warns a member of the server. This does nothing except add a note based infraction that can be used for member tracking. Reasons are required. |
| Kicks a member from the server. The target must be a member or it will not function. The bot must have Kick Members to use this command. |
| Bans multiple users from the server. The list of users given must represent valid people or it will stop parsing members. If the user is not a member of the server, it will be a forceban. The bot must have Ban Members to use this command. |
| Kicks multiple members from the server. The list of members given must represent valid people or it will stop parsing the list. Members who don't exist in your server are discarded automatically. The bot must have Kick Members to use this command. |
| Permanently mutes multiple members of the server. The list of members given must represent valid people or it will stop parsing the list. Members who don't exist in your server are discarded automatically. The bot must have Manage Roles to use this command. Additionally, the role must be below the bots' highest role in order to add it. |
| Warns multiple members of the server. The list of members given must represent valid people or it will stop parsing the list. Members who don't exist in your server are discarded automatically. |
| Permanently mutes a member from the server. This basically adds the configured This command has an alias: if you format it like a tempmute, then it will redirect to the tempmute command automatically. The bot must have Manage Roles to use this command. Additionally, the role must be below the bots' highest role in order to add it. |
| Bans members matching a specific username. This command can be useful in situations with raids involving bots with the exact same name. This command requires that you have the ability to use !mban. The bot must have Ban Members to use this command. |
| Softbans a member of the server. A softban effectively performs a ban with the cleanup of 24 hours of messages, then revokes the ban. The bot must have Ban Members to use this command. |
| Temporarily bans a member of the server. These are full bans, but the expiration of them is handled by the bot automatically. The The bot must have Ban Members to use this command. |
| Temporarily mutes a member of the server. This basically adds the configured The bot must have Manage Roles to use this command. Additionally, the role must be below the bots' highest role in order to add it. |
| Unbans a user from the server. This will allow them to rejoin the server if the given ID represents a user. The bot must have Ban Members to use this command. |
| Unmutes a member from the server. This removes the configured Mute Role and grants the ability to post on the server again. The bot must have Manage Roles to use this command. Additionally, the role must be below the bots' highest role in order to remove it. |
| Disconnects / voice kicks a member from the server. For obvious reasons, this must represent a member who is actually connected to a voice channel. The bot must have Move Members to use this command. |
Syntax and Examples
Below are the syntax requirements of the above commands, along with an example to show how it works.
Syntax | Examples |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Last updated