fix: limit the count committee to committee members and above
Some checks failed
On_Push / lint_fmt (push) Successful in 10s
On_Push / lint_clippy (push) Failing after 30s
On_Push / build (push) Has been skipped
On_Push / deploy (push) Has been skipped

This commit is contained in:
silver 2025-02-27 23:58:35 +00:00
parent 7d7afcd00c
commit a11ba15f4a
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -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"))
}