refactor(ui): give every message one friendly, ungendered voice
Members read all replies as one voice, so the wording now lives in one place:
the shared titles, the list marker and the "what to do next" hint come from
src/ui/embeds.js, and every module follows them.
An error explains the cause, recalls the rule and offers the way out instead of
blaming; a success says what happens next. Nothing agrees on the gender of a
person ("utilisateur", "cher/chère", "ravie"), which also keeps the sentences
shorter. Two tests lock the shared titles and reject gendered descriptions.
This commit is contained in:
31 files changed
+469
-201
No files matched your search
@@ -19,12 +19,12 @@ export const data = new SlashCommandBuilder()
|
||||
.addIntegerOption((option) =>
|
||||
option
|
||||
.setName('minutes')
|
||||
.setDescription('Durée en minutes')
|
||||
.setDescription('Durée de la sanction, en minutes')
|
||||
.setRequired(true)
|
||||
.setMinValue(1)
|
||||
.setMaxValue(40_320),
|
||||
)
|
||||
.addStringOption((option) => option.setName('reason').setDescription('Raison').setMaxLength(500));
|
||||
.addStringOption((option) => option.setName('reason').setDescription('Motif').setMaxLength(500));
|
||||
|
||||
/** Applies a Discord timeout after the hierarchy checks (M8-T02 / M8-T07). */
|
||||
export async function execute(interaction) {
|
||||
@@ -53,7 +53,9 @@ export async function execute(interaction) {
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
successEmbed(`**${target.user.tag}** est réduit au silence pendant **${formatDuration(durationMs)}**.`),
|
||||
successEmbed(
|
||||
`C’est fait : **${target.user.tag}** est en exclusion temporaire pour **${formatDuration(durationMs)}**, la personne ne peut plus écrire pendant ce temps.`,
|
||||
),
|
||||
],
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user