html terminal
Diffstat (limited to 'src/bot/bans.rs')
| -rw-r--r-- | src/bot/bans.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/bot/bans.rs b/src/bot/bans.rs index 96d101d..89266c6 100644 --- a/src/bot/bans.rs +++ b/src/bot/bans.rs @@ -2,7 +2,13 @@ use super::{Context, Result}; use crate::bot::player::{self, Players}; use crate::{return_next, send_ctx}; -#[poise::command(slash_command, category = "Control", rename = "ban")] +#[poise::command( + slash_command, + category = "Control", + rename = "ban", + required_permissions = "ADMINISTRATOR", + default_member_permissions = "ADMINISTRATOR" +)] /// ban a player by uuid and ip pub async fn add( ctx: Context<'_>, @@ -20,7 +26,13 @@ pub async fn add( return_next!(ctx) } -#[poise::command(slash_command, category = "Control", rename = "unban")] +#[poise::command( + slash_command, + category = "Control", + rename = "unban", + default_member_permissions = "ADMINISTRATOR", + required_permissions = "ADMINISTRATOR" +)] /// unban a player by uuid or ip pub async fn remove( ctx: Context<'_>, |