Warns Commands
📦 Warns Commands
Section titled “📦 Warns Commands”Keep your members in check with warnings; stop them getting out of control! If you’re looking for automated warnings, read about the blacklist module!
Admin Commands:
- /warn
: Warn a user. - /dwarn
: Warn a user by reply, and delete their message. - /swarn
: Silently warn a user, and delete your message. - /warns: See a user’s warnings.
- /rmwarn: Remove a user’s latest warning.
- /resetwarn: Reset all of a user’s warnings to 0.
- /resetallwarns: Delete all the warnings in a chat. All users return to 0 warns.
- /warnings: Get the chat’s warning settings.
- /setwarnmode <ban/kick/mute>: Set the chat’s warn mode.
- /setwarnlimit
: Set the number of warnings before users are punished.
Examples
- Warn a user.
->
/warn @user For disobeying the rules
Default Settings:
- Default warn limit: 3 warnings
- Default warn mode: mute
Available Warn Modes:
ban- Permanently ban the user from the chatkick- Kick the user (they can rejoin)mute- Mute the user (cannot send messages)
Silent and Delete Warnings:
/swarn- Delete your command and warn silently/dwarn- Delete the user’s message and warn them
Module Aliases
Section titled “Module Aliases”This module can be accessed using the following aliases:
warnwarningwarnings
Available Commands
Section titled “Available Commands”| Command | Description | Disableable |
|---|---|---|
/dwarn | Warn a user by reply, and delete their message. | ❌ |
/resetallwarns | Delete all the warnings in a chat. All users return to 0 warns. | ❌ |
/resetwarn | Reset all of a user’s warnings to 0. | ❌ |
/resetwarns | No description available | ❌ |
/rmwarn | Remove a user’s latest warning. | ❌ |
/setwarnlimit | Set the number of warnings before users are punished. | ❌ |
/setwarnmode | Set the chat’s warn mode. | ❌ |
/swarn | Silently warn a user, and delete your message. | ❌ |
/unwarn | No description available | ❌ |
/warn | Warn a user. | ❌ |
/warnings | Get the chat’s warning settings. | ❌ |
/warns | See a user’s warnings. | ✅ |
Usage Examples
Section titled “Usage Examples”Basic Usage
Section titled “Basic Usage”/dwarn/resetallwarns/resetwarnFor detailed command usage, refer to the commands table above.
Required Permissions
Section titled “Required Permissions”Permission Requirements:
/warn,/dwarn,/swarn: Bot admin + User admin with restrict/rmwarn,/unwarn: Bot admin + User admin/resetwarn,/resetwarns: Bot admin + User admin/resetallwarns: Chat owner only/setwarnmode,/setwarnlimit: Bot admin + User admin/warnings: Bot admin + User admin/warns: Any user (disableable)
Technical Notes
Section titled “Technical Notes”Notes:
- When a user reaches the warn limit, the configured action (ban/kick/mute) is applied automatically
- Warning reasons are stored and displayed when checking a user’s warns
- The
/warnscommand is the only command in this module that can be disabled by admins - Anonymous channel posts cannot be warned
- Admins cannot be warned