fix(moderation): tell a mute apart from a kick in the logs
A timeout was filed as "Exclusion temporaire" right next to "Expulsion", so a sanction could not be read back from the log channel, the direct message or `/mod logs`. Each action now carries its own emoji and wording behind a single label, used by every surface.
This commit is contained in:
9 files changed
+73
-27
No files matched your search
@@ -33,11 +33,13 @@ const DURATIONS = [
|
||||
{ value: String(7 * 24 * 60 * 60_000), label: '7 jours' },
|
||||
];
|
||||
|
||||
// Mirrors MODERATION_ACTIONS in `src/config/constants.js`, emoji included: the
|
||||
// panel must not be the one place where a mute reads like a kick.
|
||||
const MODERATION_ACTIONS = [
|
||||
{ value: 'warn', label: 'Avertissement' },
|
||||
{ value: 'mute', label: 'Exclusion temporaire' },
|
||||
{ value: 'kick', label: 'Expulsion' },
|
||||
{ value: 'ban', label: 'Bannissement' },
|
||||
{ value: 'warn', label: '⚠️ Avertissement' },
|
||||
{ value: 'mute', label: '🔇 Mise en sourdine' },
|
||||
{ value: 'kick', label: '👢 Expulsion' },
|
||||
{ value: 'ban', label: '🔨 Bannissement' },
|
||||
];
|
||||
|
||||
async function moderate(member, reload) {
|
||||
|
||||
Reference in new issue
Block a user