Export State.OnInterface (#417)

This commit is contained in:
Jonas is my name 2017-08-14 04:52:05 +02:00 committed by Chris Rhodes
parent 55d995899e
commit 3f2c1311d5
2 changed files with 2 additions and 2 deletions

View file

@ -224,7 +224,7 @@ func (s *Session) onInterface(i interface{}) {
case *VoiceStateUpdate: case *VoiceStateUpdate:
go s.onVoiceStateUpdate(t) go s.onVoiceStateUpdate(t)
} }
err := s.State.onInterface(s, i) err := s.State.OnInterface(s, i)
if err != nil { if err != nil {
s.log(LogDebug, "error dispatching internal event, %s", err) s.log(LogDebug, "error dispatching internal event, %s", err)
} }

View file

@ -783,7 +783,7 @@ func (s *State) onReady(se *Session, r *Ready) (err error) {
} }
// onInterface handles all events related to states. // onInterface handles all events related to states.
func (s *State) onInterface(se *Session, i interface{}) (err error) { func (s *State) OnInterface(se *Session, i interface{}) (err error) {
if s == nil { if s == nil {
return ErrNilState return ErrNilState
} }