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')] }); +}