feat(roles): add role command skeleton
Refs: #63 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+29
@@ -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')] });
|
||||
}
|
||||
Reference in new issue
Block a user