State: Fixed VoiceStateSet

This commit is contained in:
diamondburned (Forefront) 2020-04-21 15:38:31 -07:00
parent 5acfe9c981
commit 536018b5f8
1 changed files with 1 additions and 4 deletions

View File

@ -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 {