1 file changed
+23
@@ -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')] });
|
||||||
|
}
|
||||||
Reference in new issue
Block a user