diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-06 16:32:35 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-06 16:32:35 -0400 |
| commit | 501ba27e1cd52741988113ef47ee0fad7d0a5799 (patch) | |
| tree | cfe5985b6896b8cd440638716d9c032735af46bf /src/commands/sound_levels.rs | |
| parent | 011fcf828ebd1325dbd4dfa21c4952f1be38a29f (diff) | |
fixup unknown command, document commands
Diffstat (limited to 'src/commands/sound_levels.rs')
| -rw-r--r-- | src/commands/sound_levels.rs | 9 |
1 files changed, 4 insertions, 5 deletions
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?; |
