use crate::{Context, Error};
#[poise::command(
prefix_command,
slash_command,
subcommands("child1", "child2"),
subcommand_required
)]
pub async fn parent_subcommand_required(_: Context<'_>) -> Result<(), Error> {
Ok(())
}
#[poise::command(prefix_command, slash_command)]
pub async fn child1(ctx: Context<'_>) -> Result<(), Error> {
ctx.say("You invoked the first child command!").await?;
Ok(())
}
#[poise::command(prefix_command, slash_command)]
pub async fn child2(ctx: Context<'_>) -> Result<(), Error> {
ctx.say("You invoked the second child command!").await?;
Ok(())
}