feat(moderation): add the unmute and unban commands
A sanction could be applied but never lifted from Discord, so undoing a mistake meant leaving the bot for the server settings. Both lifts are recorded next to the sanctions they lift, which means widening the moderation history CHECK constraint through a table rebuild. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
8 files changed
+162
-2
No files matched your search
@@ -289,6 +289,8 @@ Every command checks the FWS level **and** the matching Discord permission. The
|
||||
| ---------------- | ----------------------------------------- | ------------------ | ----- | ------------------------------------------------------------------ |
|
||||
| `/warn` | `user`, `reason` (required) | Moderate Members | ✅ | Warns, notifies the member by DM and records the action |
|
||||
| `/mute` | `user`, `minutes` (1–40320), `reason` | Moderate Members | ✅ | Temporary timeout (28 days max) + DM notification |
|
||||
| `/unmute` | `user`, `reason` | Moderate Members | ✅ | Lifts the timeout early (clear message when nobody is muted) |
|
||||
| `/unban` | `user`, `reason` | Ban Members | ✅ | Lifts the ban, even if the member already left, and DMs them |
|
||||
| `/kick` | `user`, `reason` | Kick Members | ✅ | Kicks from the server and logs the action |
|
||||
| `/ban` | `user`, `reason`, `delete_days` (0–7) | Ban Members | ✅ | Bans (even if the member already left), optional message purge |
|
||||
| `/clear` | `amount` (1–100) | Manage Messages | ✅ | Deletes the last N messages (those older than 14 days are skipped) |
|
||||
|
||||
Reference in new issue
Block a user