diff --git a/src/commands.rs b/src/commands.rs index 0098dc2..f960ac9 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -282,11 +282,15 @@ pub async fn set_volume(ctx: &mut Context, command: &ApplicationCommandInteracti let current_track = data.get::().unwrap(); if let Some(track) = current_track { - if track.set_volume(new_volume).is_ok() { - return format!("Setting volume to {}%.", volume); + if track.set_volume(new_volume).is_err() { + return format!( + "Setting volume to {}%, but it didn't work for the current track for some reason.", + volume + ); } } - "Nothing's currently playing and for some reason, something needs to be playing to set the volume.".to_string() + + format!("Setting volume to {}%.", volume) } pub async fn set_loop(ctx: &mut Context, command: &ApplicationCommandInteraction) -> String {