State: Fixed VoiceStateSet
This commit is contained in:
parent
5acfe9c981
commit
536018b5f8
|
@ -703,10 +703,7 @@ func (s *DefaultStore) VoiceStateSet(guildID discord.Snowflake, voiceState *disc
|
|||
s.mut.Lock()
|
||||
defer s.mut.Unlock()
|
||||
|
||||
states, ok := s.voiceStates[guildID]
|
||||
if !ok {
|
||||
return ErrStoreNotFound
|
||||
}
|
||||
states := s.voiceStates[guildID]
|
||||
|
||||
for i, vs := range states {
|
||||
if vs.UserID == voiceState.UserID {
|
||||
|
|
Loading…
Reference in New Issue