Skip to content
GitHub

HandlerKind

type alias in meocord/core Since 4.1.0

type HandlerKind =
  | 'command'
  | 'component'
  | 'modal'
  | 'autocomplete'
  | 'message'
  | 'reaction'
  | 'event'

The kind of handler a HandlerEntry describes, such as 'command' or 'message'.

Pass one to HandlerRegistry.list to list only that kind; the entries it returns are narrowed to it.

See also