feat(moderation): add mute command skeleton

Refs: #66
This commit is contained in:
nocode committed 2026-09-13 12:25:09 +02:00
1 parent 1bcc3d382d
commit 373c7e6455
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
import { PermissionFlagsBits, SlashCommandBuilder } from 'discord.js';
import { ACCESS_LEVELS } from '../../config/constants.js';
import { notImplementedEmbed } from '../../ui/embeds.js';
export const access = ACCESS_LEVELS.STAFF;
export const data = new SlashCommandBuilder()
.setName('mute')
.setDescription('Restreindre temporairement un membre')
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers)
.addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true))
.addIntegerOption((option) =>
option
.setName('minutes')
.setDescription('Durée en minutes')
.setRequired(true)
.setMinValue(1)
.setMaxValue(40_320),
)
.addStringOption((option) => option.setName('reason').setDescription('Raison').setMaxLength(500));
// TODO(M8-T02 / M8-T07): use member.timeout() after canActOn() check.
export async function execute(interaction) {
await interaction.reply({ embeds: [notImplementedEmbed('/mute')] });
}