diff --git a/state/state_events.go b/state/state_events.go index 49471d1..4b2cb87 100644 --- a/state/state_events.go +++ b/state/state_events.go @@ -327,7 +327,7 @@ func (s *State) onEvent(iface interface{}) { case *gateway.VoiceStateUpdateEvent: vs := &ev.VoiceState - if vs.ChannelID == 0 { + if !vs.ChannelID.IsValid() { if err := s.Cabinet.VoiceStateRemove(vs.GuildID, vs.UserID); err != nil { s.stateErr(err, "failed to remove voice state from state") }