Sfoglia il codice sorgente

Track voice-channel movements (#317)

Lukas 8 anni fa
parent
commit
edd6e169fa
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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()
 }