aboutsummaryrefslogtreecommitdiff
path: root/src/commands/sound_levels.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/sound_levels.rs')
-rw-r--r--src/commands/sound_levels.rs9
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?;