Decorators
App
MeoCordDeclares the application class: its controllers, services, client options and what applies to every handler.
ServiceMarks a class as a service, which controllers and other services inject by its type.
Controllers
ControllerMarks a class as a controller, whose methods handle commands, components, messages, reactions or events.
UseThemeSets part of the theme for a controller's handlers, or for one handler.
Handlers
AutocompleteSuggests values for an option of a chat input command as the user types.
CommandRoutes a command, a component or a modal submission to the method it decorates.
CommandBuilderMarks a class as a command's builder, which describes the command MeoCord registers with Discord.
MessageHandlerRuns the method it decorates for every message a user sends, whatever it says.
OnHandles a discord.js client event every time it is emitted, on a controller or a service.
OnceHandles a discord.js client event the first time it is emitted only, on a controller or a service.
ReactionHandlerRuns the method it decorates when a reaction with an emoji is added to or removed from a message.
Params
InjectInjects what a token provides into a constructor parameter.
Pipeline stages
CatchMarks a class as an exception filter for the given error types.
CooldownLimits how often a handler runs, counted per user, server, channel or for everyone.
DeferAcknowledges an interaction for its handler, then locks a component's message while the handler runs.
GuardMarks a class as a guard, which decides whether a handler runs.
InterceptorMarks a class as an interceptor, which wraps a handler to act before and after it.
ObserverMarks a class as a dispatch observer, told about every call once it has settled, for metrics and audit logs.
PipeMarks a class as a pipe, which turns one input value into what the handler works with.
UseFilterApplies exception filters to a handler, or to every handler of a controller.
UseGuardRuns guards before a handler, or before every handler of a controller.
UseInterceptorRuns interceptors around a handler, or around every handler of a controller.
UsePipeRuns pipes on one value of a handler's input, to turn it into what the handler works with.
ValidateValidates a handler's input with a Standard Schema before it runs.