From 72937ed5b90dd261c4e5a7f4ee7474695a99adea Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Sun, 23 Nov 2025 21:06:15 +1100 Subject: [PATCH] 2 subcommands --- src/commands/verification.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/commands/verification.rs b/src/commands/verification.rs index abeb4e4..1f4a770 100644 --- a/src/commands/verification.rs +++ b/src/commands/verification.rs @@ -26,8 +26,20 @@ struct VerificationModal { student_id: String, } +#[poise::command(slash_command, subcommands("embed", "myself"))] +pub async fn verify(_: ApplicationContext<'_>) -> Result<(), Error> { + Ok(()) +} + #[poise::command(slash_command)] -pub async fn verify(ctx: ApplicationContext<'_>) -> Result<(), Error> { +pub async fn myself(ctx: ApplicationContext<'_>) -> Result<(), Error> { + verify_member(ctx).await?; + + Ok(()) +} + +#[poise::command(slash_command)] +pub async fn embed(ctx: ApplicationContext<'_>) -> Result<(), Error> { let reply: CreateReply = { let embed: CreateEmbed = CreateEmbed::new() .title("Verify your DSEC membership")