From 8e6fced543735aa4c68e70221518a37c36780d59 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:08:08 +0100 Subject: commands: gate admin, trigger, cron and recording behind permissions --- src/commands/record.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/record.rs') diff --git a/src/commands/record.rs b/src/commands/record.rs index 6f2cfcd..48cbc59 100644 --- a/src/commands/record.rs +++ b/src/commands/record.rs @@ -12,7 +12,7 @@ type Context<'a> = poise::Context<'a, crate::Data, crate::error::Error>; /// connected to a voice channel, if `RECORDING_ENABLED=true`. This command is a /// read-only snapshot — the buffer keeps recording afterwards. Only callable by /// someone in the same voice channel as the bot. -#[poise::command(slash_command)] +#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] pub async fn record(ctx: Context<'_>) -> Result<()> { ctx.defer().await?; let data = ctx.data(); -- cgit v1.2.3