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 {
|
pub fn register() -> CreateCommand {
|
||||||
CreateCommand::new("count")
|
CreateCommand::new("count")
|
||||||
.description("Commands related to teh committees")
|
.description("Count Committee Members")
|
||||||
//.default_member_permissions(serenity::model::Permissions::MANAGE_GUILD)
|
// All committee members have teh Manage Role permission
|
||||||
|
.default_member_permissions(serenity::model::Permissions::MANAGE_ROLES)
|
||||||
.add_option(
|
.add_option(
|
||||||
CreateCommandOption::new(CommandOptionType::SubCommand, "committee", "List out the Committee Roles Numbers")
|
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)),
|
.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 {
|
pub fn register() -> CreateCommand {
|
||||||
CreateCommand::new("count")
|
CreateCommand::new("count")
|
||||||
.description("Commands related to all servers")
|
.description("Count the servers")
|
||||||
.default_member_permissions(serenity::model::Permissions::MANAGE_GUILD)
|
.default_member_permissions(serenity::model::Permissions::MANAGE_GUILD)
|
||||||
.add_option(CreateCommandOption::new(CommandOptionType::SubCommand, "servers", "List out all servers using the skynet bot"))
|
.add_option(CreateCommandOption::new(CommandOptionType::SubCommand, "servers", "List out all servers using the skynet bot"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue