2 subcommands

This commit is contained in:
liyunze 2025-11-23 21:06:15 +11:00
parent 7ff93e9d25
commit 72937ed5b9

View file

@ -26,8 +26,20 @@ struct VerificationModal {
student_id: String, student_id: String,
} }
#[poise::command(slash_command, subcommands("embed", "myself"))]
pub async fn verify(_: ApplicationContext<'_>) -> Result<(), Error> {
Ok(())
}
#[poise::command(slash_command)] #[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 reply: CreateReply = {
let embed: CreateEmbed = CreateEmbed::new() let embed: CreateEmbed = CreateEmbed::new()
.title("Verify your DSEC membership") .title("Verify your DSEC membership")