From 1bcc3d382d69c528e7aca8f426ce8868a7daeae3 Mon Sep 17 00:00:00 2001 From: nocode Date: Sun, 13 Sep 2026 12:19:13 +0200 Subject: [PATCH] feat(moderation): add warn command skeleton Refs: #65 --- src/commands/moderation/warn.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/commands/moderation/warn.js diff --git a/src/commands/moderation/warn.js b/src/commands/moderation/warn.js new file mode 100644 index 0000000..de144a4 --- /dev/null +++ b/src/commands/moderation/warn.js @@ -0,0 +1,19 @@ +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('warn') + .setDescription('Avertir un membre') + .setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers) + .addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true)) + .addStringOption((option) => + option.setName('reason').setDescription('Raison').setRequired(true).setMaxLength(500), + ); + +// TODO(M8-T01): record in moderation_actions and log (M8-T06). +export async function execute(interaction) { + await interaction.reply({ embeds: [notImplementedEmbed('/warn')] }); +}