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:
BlackAngelTV committed 2026-09-25 20:11:00 +02:00
1 parent b8be549fda
commit 9f8ac0d29e
8 files changed
+162 -2

No files matched your search

+2
View File
@@ -32,8 +32,10 @@ export const ACCESS_LABELS = Object.freeze({
export const MODERATION_ACTIONS = Object.freeze({
warn: { label: 'Avertissement', color: COLORS.warning, duration: false },
mute: { label: 'Exclusion temporaire', color: COLORS.moderation, duration: true },
unmute: { label: 'Levée d’exclusion temporaire', color: COLORS.success, duration: false },
kick: { label: 'Expulsion', color: COLORS.moderation, duration: false },
ban: { label: 'Bannissement', color: COLORS.error, duration: false },
unban: { label: 'Débannissement', color: COLORS.success, duration: false },
clear: { label: 'Suppression de messages', color: COLORS.warning, duration: false },
role: { label: 'Modification de rôle', color: COLORS.primary, duration: false },
});