feat(moderation): add clear command skeleton

Refs: #69
This commit is contained in:
nocode committed 2026-09-13 12:25:09 +02:00
1 parent 002380c03f
commit dc4958fa26
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
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('clear')
.setDescription('Supprimer des messages')
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
.addIntegerOption((option) =>
option
.setName('amount')
.setDescription('Nombre de messages')
.setRequired(true)
.setMinValue(1)
.setMaxValue(100),
);
// TODO(M8-T05): channel.bulkDelete(amount, true) and log the action.
export async function execute(interaction) {
await interaction.reply({ embeds: [notImplementedEmbed('/clear')] });
}