From 4cc475edeff94481de88aec1342981c90364f5f4 Mon Sep 17 00:00:00 2001 From: nocode Date: Sun, 13 Sep 2026 12:19:13 +0200 Subject: [PATCH] feat(moderation): add kick command skeleton Refs: #67 --- src/commands/moderation/kick.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/commands/moderation/kick.js diff --git a/src/commands/moderation/kick.js b/src/commands/moderation/kick.js new file mode 100644 index 0000000..9fe345c --- /dev/null +++ b/src/commands/moderation/kick.js @@ -0,0 +1,17 @@ +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('kick') + .setDescription('Expulser un membre du serveur') + .setDefaultMemberPermissions(PermissionFlagsBits.KickMembers) + .addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true)) + .addStringOption((option) => option.setName('reason').setDescription('Raison').setMaxLength(500)); + +// TODO(M8-T03): kick after canActOn() check and log the action. +export async function execute(interaction) { + await interaction.reply({ embeds: [notImplementedEmbed('/kick')] }); +}