basic subcommand handling

This commit is contained in:
Baipyrus 2024-02-07 17:35:30 +01:00
parent c8e3fc2f2c
commit a0eb75e4ee

View File

@ -28,5 +28,13 @@ export const data = new SlashCommandBuilder()
);
export async function execute(interaction) {
const { options } = interaction;
// const id = options.getString('id');
switch (options.getSubcommand()) {
case 'create':
const name = options.getString('name');
break;
case 'register':
const id = options.getString('id');
break;
}
}