feat(roles): add role command skeleton

Refs: #63
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:14 +02:00
1 parent 2084935a22
commit a08a8d98e6
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
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('role')
.setDescription('Gestion des rôles')
.setDefaultMemberPermissions(PermissionFlagsBits.ManageRoles)
.addSubcommand((sub) =>
sub
.setName('set')
.setDescription('Attribuer ou retirer un rôle')
.addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true))
.addRoleOption((option) => option.setName('role').setDescription('Rôle').setRequired(true))
.addStringOption((option) =>
option
.setName('action')
.setDescription('Action')
.setRequired(true)
.addChoices({ name: 'Ajouter', value: 'add' }, { name: 'Retirer', value: 'remove' }),
),
);
// TODO(M7-T05 / M7-T06): enforce role hierarchy (M3-T05) and log the change.
export async function execute(interaction) {
await interaction.reply({ embeds: [notImplementedEmbed('/role set')] });
}