From 002380c03f8e56852e575cb0c7a3548c67f57d35 Mon Sep 17 00:00:00 2001 From: nocode Date: Sun, 13 Sep 2026 12:19:13 +0200 Subject: [PATCH] feat(moderation): add ban command skeleton Refs: #68 --- src/commands/moderation/ban.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/commands/moderation/ban.js diff --git a/src/commands/moderation/ban.js b/src/commands/moderation/ban.js new file mode 100644 index 0000000..d910948 --- /dev/null +++ b/src/commands/moderation/ban.js @@ -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')] }); +}