fix: limit the count committee to committee members and above
This commit is contained in:
parent
7d7afcd00c
commit
a11ba15f4a
1 changed files with 4 additions and 3 deletions
|
@ -71,8 +71,9 @@ pub mod committee {
|
|||
|
||||
pub fn register() -> CreateCommand {
|
||||
CreateCommand::new("count")
|
||||
.description("Commands related to teh committees")
|
||||
//.default_member_permissions(serenity::model::Permissions::MANAGE_GUILD)
|
||||
.description("Count Committee Members")
|
||||
// All committee members have teh Manage Role permission
|
||||
.default_member_permissions(serenity::model::Permissions::MANAGE_ROLES)
|
||||
.add_option(
|
||||
CreateCommandOption::new(CommandOptionType::SubCommand, "committee", "List out the Committee Roles Numbers")
|
||||
.add_sub_option(CreateCommandOption::new(CommandOptionType::Boolean, "all", "List out all the Committee Roles Numbers").required(false)),
|
||||
|
@ -149,7 +150,7 @@ pub mod servers {
|
|||
|
||||
pub fn register() -> CreateCommand {
|
||||
CreateCommand::new("count")
|
||||
.description("Commands related to all servers")
|
||||
.description("Count the servers")
|
||||
.default_member_permissions(serenity::model::Permissions::MANAGE_GUILD)
|
||||
.add_option(CreateCommandOption::new(CommandOptionType::SubCommand, "servers", "List out all servers using the skynet bot"))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue