html terminal
Diffstat (limited to 'src/bot/mod.rs')
| -rw-r--r-- | src/bot/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 64c0486..3809c4e 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -186,7 +186,11 @@ async fn get_nextblock() -> String { .unwrap_or("._?".to_string()) } -#[poise::command(slash_command, category = "Control")] +#[poise::command( + slash_command, + category = "Control", + required_permissions = "ADMINISTRATOR" +)] /// say something as the server async fn say(ctx: Context<'_>, #[description = "Message"] message: String) -> Result<()> { ctx.data().stdin.send(format!("say {message}"))?; |