Update ChannelID in ChangeChannel

This commit is contained in:
Harmon758 2016-05-25 10:04:38 -05:00
parent ee608e6e3e
commit 78113398e5

View file

@ -112,6 +112,10 @@ 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
return
}