Cleanup voice connection on close
This commit is contained in:
parent
5dc0b9f2a1
commit
cf222be2f8
1 changed files with 2 additions and 0 deletions
2
voice.go
2
voice.go
|
@ -643,6 +643,8 @@ func (v *VoiceConnection) Close() {
|
|||
}
|
||||
v.wsConn = nil
|
||||
}
|
||||
|
||||
delete(v.session.VoiceConnections, v.GuildID)
|
||||
}
|
||||
|
||||
// Request to change channels
|
||||
|
|
Loading…
Reference in a new issue