aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/record.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 01:08:08 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 01:08:08 +0100
commit8e6fced543735aa4c68e70221518a37c36780d59 (patch)
tree7b7e6be03c3091caf2ae7bed12b40b6d6f1e71e5 /src/commands/record.rs
parentutilities: sanitize filenames and isolate temp operations (diff)
downloadsenator-sperma-8e6fced543735aa4c68e70221518a37c36780d59.tar.gz
senator-sperma-8e6fced543735aa4c68e70221518a37c36780d59.zip
commands: gate admin, trigger, cron and recording behind permissions
Diffstat (limited to 'src/commands/record.rs')
-rw-r--r--src/commands/record.rs2
1 files changed, 1 insertions, 1 deletions
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>;
12/// connected to a voice channel, if `RECORDING_ENABLED=true`. This command is a 12/// connected to a voice channel, if `RECORDING_ENABLED=true`. This command is a
13/// read-only snapshot — the buffer keeps recording afterwards. Only callable by 13/// read-only snapshot — the buffer keeps recording afterwards. Only callable by
14/// someone in the same voice channel as the bot. 14/// someone in the same voice channel as the bot.
15#[poise::command(slash_command)] 15#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")]
16pub async fn record(ctx: Context<'_>) -> Result<()> { 16pub async fn record(ctx: Context<'_>) -> Result<()> {
17 ctx.defer().await?; 17 ctx.defer().await?;
18 let data = ctx.data(); 18 let data = ctx.data();