Check for errors :)
This commit is contained in:
parent
cc272d6f14
commit
97d4489481
1 changed files with 4 additions and 1 deletions
5
event.go
5
event.go
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue