diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:08:08 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:08:08 +0100 |
| commit | 8e6fced543735aa4c68e70221518a37c36780d59 (patch) | |
| tree | 7b7e6be03c3091caf2ae7bed12b40b6d6f1e71e5 /src/commands/record.rs | |
| parent | utilities: sanitize filenames and isolate temp operations (diff) | |
| download | senator-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.rs | 2 |
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")] |
| 16 | pub async fn record(ctx: Context<'_>) -> Result<()> { | 16 | pub async fn record(ctx: Context<'_>) -> Result<()> { |
| 17 | ctx.defer().await?; | 17 | ctx.defer().await?; |
| 18 | let data = ctx.data(); | 18 | let data = ctx.data(); |
