Fix pause being ignored on skip

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/26/head
trivernis 3 years ago
parent 060f5dfb64
commit 32ba3d8bf0
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -122,6 +122,9 @@ impl MusicPlayer {
/// Plays the next song in the queue
pub async fn play_next(&mut self) -> BotResult<()> {
while !self.try_play_next().await? {}
if self.paused {
self.client.pause(self.guild_id).await?;
}
Ok(())
}

Loading…
Cancel
Save