Check for errors :)

This commit is contained in:
Bruce Marriner 2016-12-11 12:55:06 -06:00
parent cc272d6f14
commit 97d4489481

View file

@ -217,7 +217,10 @@ func (s *Session) onInterface(i interface{}) {
case *VoiceStateUpdate: case *VoiceStateUpdate:
go s.onVoiceStateUpdate(t) go s.onVoiceStateUpdate(t)
} }
s.State.onInterface(s, i) err := s.State.onInterface(s, i)
if err != nil {
s.log(LogError, err)
}
} }
// onReady handles the ready event. // onReady handles the ready event.