Browse Source

Rectify description of OnTyping

master
Jason Chu 6 years ago
parent
commit
118ed4ee72
  1. 2
      listen.go

2
listen.go

@ -108,7 +108,7 @@ func (s *Session) OnError(handler func(err error)) {
s.l.onError = handler
}
// OnTyping sets the handler when someone starts typing.
// OnTyping sets the handler when someone starts or stops typing.
func (s *Session) OnTyping(handler func(thread Thread, userID string, typing bool)) {
s.l.onTyping = handler
}

Loading…
Cancel
Save