2025-03-06 21:35:17 +00:00
|
|
|
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)),
|
|
|
|
)
|
2025-06-16 04:31:21 +01:00
|
|
|
.add_option(
|
|
|
|
CreateCommandOption::new(CommandOptionType::SubCommandGroup, "icon", "Committee commands for the server icon")
|
|
|
|
.add_sub_option(CreateCommandOption::new(CommandOptionType::SubCommand, "change", "Change the server icon.")),
|
|
|
|
)
|
2025-03-06 21:35:17 +00:00
|
|
|
}
|