24 lines
1.6 KiB
Rust
24 lines
1.6 KiB
Rust
|
use serenity::all::{CommandOptionType, CreateCommand, CreateCommandOption};
|
||
|
|
||
|
pub fn register() -> CreateCommand {
|
||
|
CreateCommand::new("committee")
|
||
|
.description("Commands related to what committees can do")
|
||
|
.default_member_permissions(serenity::model::Permissions::MANAGE_GUILD)
|
||
|
.add_option(
|
||
|
CreateCommandOption::new(CommandOptionType::SubCommand, "add", "Enable the bot for this discord")
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::String, "api_key", "UL Wolves API Key").required(true))
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::Role, "role_current", "Role for Current members").required(true))
|
||
|
.add_sub_option(
|
||
|
CreateCommandOption::new(CommandOptionType::Channel, "bot_channel", "Safe space for folks to use the bot commands.").required(true),
|
||
|
)
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::Role, "role_past", "Role for Past members").required(false)),
|
||
|
)
|
||
|
.add_option(
|
||
|
CreateCommandOption::new(CommandOptionType::SubCommand, "roles_adder", "Combine roles together to an new one")
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::Role, "role_a", "A role you want to add to Role B").required(true))
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::Role, "role_b", "A role you want to add to Role A").required(true))
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::Role, "role_c", "Sum of A and B").required(true))
|
||
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::Boolean, "delete", "Delete this entry.").required(false)),
|
||
|
)
|
||
|
}
|