mirror of
https://github.com/dsec-hub/dsec-discord-bot.git
synced 2026-09-22 07:44:26 +00:00
2 subcommands
This commit is contained in:
parent
7ff93e9d25
commit
72937ed5b9
1 changed files with 13 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue