Responses
bindThemeMakes a function run in the theme of the call that binds it, wherever it is called from later.
respondThe response state of an interaction, through which its replies, edits, follow-ups and errors go.
ResponseCallOne answer call an interaction got, as
getResponsefrommeocord/testingreports it: made throughrespond(), or with discord.js directly on a mock interaction.ResponseEditFlagsThe flags an edit through
respond()can ask for.ResponseEditPayloadAn edit made with
edit(): text, or edit options with the flags an edit can take.ResponseErrorOptionsOptions for
ResponseState.error.ResponseFlagsThe flags a message sent through
respond()can ask for.ResponseLockOptionsOptions for
ResponseState.lock.ResponsePayloadA message sent with
send()orfollowUp(): text, or reply options with the flags it can take.ResponsePhaseWhere an interaction's answer stands.
ResponseSendOptionsOptions for one message sent with
send(),edit()orfollowUp().ResponseStateHow one interaction is answered: the single place its replies, edits and follow-ups go through.
ThemeDeprecatedFive of the theme's colours as static properties: primary, success, info, danger and warning.
useThemeThe theme of the running call, with every role present.
Errors
CommandNotFoundErrorThe error raised for an interaction no handler matches, such as a button whose customId fits no pattern.
CooldownErrorThrown when a
@Cooldownblocks a call, so the handler does not run.CooldownStoreErrorThrown when the cooldown store fails and
@MeoCord({ cooldownStoreFailure })is'deny', its default.GuardDeniedErrorThrown by a guard to deny a call and tell the user why.
MessageUsageErrorThe error raised when a message names a command but does not fit its pattern, which the user is told.
UserErrorA mistake the user can fix, such as too few coins, rather than a fault in the bot.
ValidationErrorThrown when a handler's input fails its
@Validateschema, so the handler does not run.
Presenters
MessageResponseContextWhat a presenter knows about the message command it renders an error reply for, in
ResponsePresenter.messageError.PresentedErrorAn error a presenter styles: the words a filter chose, and the error itself.
ResponseContextWhat a presenter knows about the interaction it renders for.
ResponseFileA file a
ResponseViewcarries: a discord.jsAttachmentBuilder, or the file's name and its bytes.ResponsePresenterStyles MeoCord's own answers: the loading view
@Defershows, the error viewrespond().error()shows, and, withmessageError, the error replies and direct messages the built-in fallback sends a message command's author.ResponseViewWhat a presenter renders for a loading view or an error.