Build/project structure #142

Merged
BlackAngelTV merged 80 commits from build/project-structure into main 2026-09-23 14:31:21 +02:00
Showing only changes of commit 002380c03f - Show all commits
+24
View File
@@ -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')] });
}