Parcourir la source

Track voice-channel movements (#317)

Lukas il y a 8 ans
Parent
commit
edd6e169fa
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      wsapi.go

+ 1 - 0
wsapi.go

@@ -540,6 +540,7 @@ func (s *Session) onVoiceStateUpdate(st *VoiceStateUpdate) {
 	voice.Lock()
 	voice.UserID = st.UserID
 	voice.sessionID = st.SessionID
+	voice.ChannelID = st.ChannelID
 	voice.Unlock()
 }