aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/record.rs
diff options
context:
space:
mode:
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();