From 501ba27e1cd52741988113ef47ee0fad7d0a5799 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Tue, 6 Aug 2024 16:32:35 -0400 Subject: fixup unknown command, document commands --- src/commands/sound_levels.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/commands/sound_levels.rs') diff --git a/src/commands/sound_levels.rs b/src/commands/sound_levels.rs index 9a6cfc6..4946f47 100644 --- a/src/commands/sound_levels.rs +++ b/src/commands/sound_levels.rs @@ -3,10 +3,8 @@ use crate::{ PoiseContext, }; -pub const DEFAULT_VOLUME: f32 = 0.20; -const MAX_VOLUME: f32 = 5.0; - -#[poise::command(slash_command, prefix_command, guild_only)] +/// Mute audio (don't pause). +#[poise::command(prefix_command, guild_only)] pub async fn mute(ctx: PoiseContext<'_>) -> anyhow::Result<()> { let (_sb, call) = songbird(ctx).await?; @@ -16,7 +14,8 @@ pub async fn mute(ctx: PoiseContext<'_>) -> anyhow::Result<()> { Ok(()) } -#[poise::command(slash_command, prefix_command, guild_only)] +/// Unmute audio. +#[poise::command(prefix_command, guild_only)] pub async fn unmute(ctx: PoiseContext<'_>) -> anyhow::Result<()> { let (_sb, call) = songbird(ctx).await?; -- cgit v1.3.1