feat(moderation): add ban command skeleton

Refs: #68
This commit is contained in:
nocode committed 2026-09-13 12:25:09 +02:00
1 parent 4cc475edef
commit 002380c03f
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')] });
}