1 file changed
+24
@@ -0,0 +1,24 @@
|
|||||||
|
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('ban')
|
||||||
|
.setDescription('Bannir un membre')
|
||||||
|
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
|
||||||
|
.addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true))
|
||||||
|
.addStringOption((option) => option.setName('reason').setDescription('Raison').setMaxLength(500))
|
||||||
|
.addIntegerOption((option) =>
|
||||||
|
option
|
||||||
|
.setName('delete_days')
|
||||||
|
.setDescription('Supprimer les messages des N derniers jours')
|
||||||
|
.setMinValue(0)
|
||||||
|
.setMaxValue(7),
|
||||||
|
);
|
||||||
|
|
||||||
|
// TODO(M8-T04): ban after canActOn() check and log the sensitive action (M8-T09).
|
||||||
|
export async function execute(interaction) {
|
||||||
|
await interaction.reply({ embeds: [notImplementedEmbed('/ban')] });
|
||||||
|
}
|
||||||
Reference in new issue
Block a user