Voice connection will now disconnect again after playback
This commit is contained in:
@@ -364,6 +364,7 @@ func playSound(play *Play, vc *discordgo.VoiceConnection) (err error) {
|
|||||||
time.Sleep(time.Millisecond * time.Duration(play.Sound.PartDelay))
|
time.Sleep(time.Millisecond * time.Duration(play.Sound.PartDelay))
|
||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
delete(queues, play.GuildID)
|
delete(queues, play.GuildID)
|
||||||
|
vc.Disconnect()
|
||||||
mutex.Unlock()
|
mutex.Unlock()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user