html terminal
Diffstat (limited to 'src/bot/voting.rs')
| -rw-r--r-- | src/bot/voting.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bot/voting.rs b/src/bot/voting.rs index 1521284..0c55682 100644 --- a/src/bot/voting.rs +++ b/src/bot/voting.rs @@ -397,7 +397,13 @@ where } } -#[poise::command(slash_command, category = "Discord", rename = "create_vote")] +#[poise::command( + slash_command, + category = "Discord", + rename = "create_vote", + default_member_permissions = "ADMINISTRATOR", + required_permissions = "ADMINISTRATOR" +)] /// make a vote pub async fn create( ctx: Context<'_>, @@ -474,6 +480,7 @@ async fn fix(ctx: &Context<'_>, data: BufReader<std::fs::File>) -> Result<()> { #[poise::command( slash_command, category = "Discord", + default_member_permissions = "ADMINISTRATOR", required_permissions = "ADMINISTRATOR" )] pub async fn fixall(ctx: Context<'_>) -> Result<()> { |