From a0eb75e4ee0ea8b77a498b8433790c22b11d5c1f Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 7 Feb 2024 17:35:30 +0100 Subject: [PATCH] basic subcommand handling --- commands/admin/custom_vc/slash.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/commands/admin/custom_vc/slash.js b/commands/admin/custom_vc/slash.js index 648c1a8..33d4a59 100644 --- a/commands/admin/custom_vc/slash.js +++ b/commands/admin/custom_vc/slash.js @@ -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; + } }