From 6e30995fe667af77fba28267317be0bb54be3848 Mon Sep 17 00:00:00 2001 From: Christopher F Date: Fri, 24 Aug 2018 17:17:58 -0400 Subject: [PATCH] fix: set pause state to false when playing new track lavalink will internally force a play regardless of the prior pause state, so the player's detached pause state must reflect this --- player.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/player.go b/player.go index ce97c84..ad57881 100644 --- a/player.go +++ b/player.go @@ -27,6 +27,8 @@ func (player *Player) Play(track string) error { // // Setting a time to 0 will omit it. func (player *Player) PlayAt(track string, startTime int, endTime int) error { + player.paused = false + start := strconv.Itoa(startTime) end := strconv.Itoa(endTime) @@ -62,6 +64,7 @@ func (player *Player) Stop() error { // Pause will pause or resume the player, depending on the pause parameter func (player *Player) Pause(pause bool) error { player.paused = pause + msg := message{ Op: opPause, GuildID: player.guildID,