feat(moderation): add warn command skeleton

Refs: #65
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-13 12:19:13 +02:00
1 parent ed19105080
commit 9bcf18323c
1 file changed
+19
+19
View File
@@ -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')] });
}