forked from pothtonswer/discordmuffin
parent
b71136ac14
commit
c6ee0d2dd5
1 changed files with 3 additions and 3 deletions
6
wsapi.go
6
wsapi.go
|
@ -522,13 +522,13 @@ func (s *Session) onVoiceStateUpdate(se *Session, st *VoiceStateUpdate) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// We only care about events that are about us
|
// We only care about events that are about us.
|
||||||
if se.State.Ready.User.ID != st.UserID {
|
if se.State.User.ID != st.UserID {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the SessionID for later use.
|
// Store the SessionID for later use.
|
||||||
voice.UserID = st.UserID // TODO: Review
|
voice.UserID = st.UserID
|
||||||
voice.sessionID = st.SessionID
|
voice.sessionID = st.SessionID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue