pub fn generate_option<'a>(
    obj: &'a mut CreateApplicationCommandOption,
    option: &'a str,
) -> &'a mut CreateApplicationCommandOption {
    match option {
        _ if option == OPTION_NAME[0] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate channels for projects and/or small groups."),
        _ if option == OPTION_NAME[1] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate roles for projects and/or small groups."),
        _ if option == OPTION_NAME[2] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate categories for projects and/or small groups."),
        _ if option == OPTION_NAME[3] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate all for projects and/or small groups."),
        _ => obj,
    }
}
// Build the option for the /generate command.
Build the option for the /generate command.
Build the option for the / generate command .
pub fn generate_option<'a>(
    obj: &'a mut CreateApplicationCommandOption,
    option: &'a str,
) -> &'a mut CreateApplicationCommandOption {
    match option {
        _ if option == OPTION_NAME[0] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate channels for projects and/or small groups."),
        _ if option == OPTION_NAME[1] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate roles for projects and/or small groups."),
        _ if option == OPTION_NAME[2] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate categories for projects and/or small groups."),
        _ if option == OPTION_NAME[3] => obj
            .name(option)
            .kind(ApplicationCommandOptionType::SubCommand)
            .description("generate all for projects and/or small groups."),
        _ => obj,
    }
}
pub fn generate_option < ' a > ( obj : & ' a mut CreateApplicationCommandOption , option : & ' a str , ) -> & ' a mut CreateApplicationCommandOption { match option { _ if option == OPTION_NAME [ 0 ] => obj . name ( option ) . kind ( ApplicationCommandOptionType :: SubCommand ) . description ( " " ) , _ if option == OPTION_NAME [ 1 ] => obj . name ( option ) . kind ( ApplicationCommandOptionType :: SubCommand ) . description ( " " ) , _ if option == OPTION_NAME [ 2 ] => obj . name ( option ) . kind ( ApplicationCommandOptionType :: SubCommand ) . description ( " " ) , _ if option == OPTION_NAME [ 3 ] => obj . name ( option ) . kind ( ApplicationCommandOptionType :: SubCommand ) . description ( " " ) , _ => obj , } }
Build the option for the /generate command.
Build the option for the / generate command .
obj
&'a mut CreateApplicationCommandOption
option
&'a str
obj
&'a mut CreateApplicationCommandOption
option
&'a str