Merge pull request #207 from Harmon758/ChangeChannel-fix
Update ChannelID in ChangeChannel
This commit is contained in:
commit
45a6c0d70d
1 changed files with 6 additions and 0 deletions
6
voice.go
6
voice.go
|
@ -112,6 +112,12 @@ func (v *VoiceConnection) ChangeChannel(channelID string, mute, deaf bool) (err
|
|||
v.wsMutex.Lock()
|
||||
err = v.session.wsConn.WriteJSON(data)
|
||||
v.wsMutex.Unlock()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
v.ChannelID = channelID
|
||||
v.deaf = deaf
|
||||
v.mute = mute
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue