feat(moderation): add ban command skeleton

Refs: #68
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-13 12:19:13 +02:00
1 parent 830c5bc035
commit de97a6a4a2
1 file changed
+24
+24
View File
@@ -0,0 +1,24 @@
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('ban')
.setDescription('Bannir un membre')
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
.addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true))
.addStringOption((option) => option.setName('reason').setDescription('Raison').setMaxLength(500))
.addIntegerOption((option) =>
option
.setName('delete_days')
.setDescription('Supprimer les messages des N derniers jours')
.setMinValue(0)
.setMaxValue(7),
);
// TODO(M8-T04): ban after canActOn() check and log the sensitive action (M8-T09).
export async function execute(interaction) {
await interaction.reply({ embeds: [notImplementedEmbed('/ban')] });
}