Skip to content
GitHub

Responses

  • bindTheme

    Makes a function run in the theme of the call that binds it, wherever it is called from later.

  • respond

    The response state of an interaction, through which its replies, edits, follow-ups and errors go.

  • ResponseCall

    One answer call an interaction got, as getResponse from meocord/testing reports it: made through respond(), or with discord.js directly on a mock interaction.

  • ResponseEditFlags

    The flags an edit through respond() can ask for.

  • ResponseEditPayload

    An edit made with edit(): text, or edit options with the flags an edit can take.

  • ResponseErrorOptions

    Options for ResponseState.error.

  • ResponseFlags

    The flags a message sent through respond() can ask for.

  • ResponseLockOptions

    Options for ResponseState.lock.

  • ResponsePayload

    A message sent with send() or followUp(): text, or reply options with the flags it can take.

  • ResponsePhase

    Where an interaction's answer stands.

  • ResponseSendOptions

    Options for one message sent with send(), edit() or followUp().

  • ResponseState

    How one interaction is answered: the single place its replies, edits and follow-ups go through.

  • Theme Deprecated

    Five of the theme's colours as static properties: primary, success, info, danger and warning.

  • useTheme

    The theme of the running call, with every role present.

Errors

  • CommandNotFoundError

    The error raised for an interaction no handler matches, such as a button whose customId fits no pattern.

  • CooldownError

    Thrown when a @Cooldown blocks a call, so the handler does not run.

  • CooldownStoreError

    Thrown when the cooldown store fails and @MeoCord({ cooldownStoreFailure }) is 'deny', its default.

  • GuardDeniedError

    Thrown by a guard to deny a call and tell the user why.

  • MessageUsageError

    The error raised when a message names a command but does not fit its pattern, which the user is told.

  • UserError

    A mistake the user can fix, such as too few coins, rather than a fault in the bot.

  • ValidationError

    Thrown when a handler's input fails its @Validate schema, so the handler does not run.

Presenters

  • MessageResponseContext

    What a presenter knows about the message command it renders an error reply for, in ResponsePresenter.messageError.

  • PresentedError

    An error a presenter styles: the words a filter chose, and the error itself.

  • ResponseContext

    What a presenter knows about the interaction it renders for.

  • ResponseFile

    A file a ResponseView carries: a discord.js AttachmentBuilder, or the file's name and its bytes.

  • ResponsePresenter

    Styles MeoCord's own answers: the loading view @Defer shows, the error view respond().error() shows, and, with messageError, the error replies and direct messages the built-in fallback sends a message command's author.

  • ResponseView

    What a presenter renders for a loading view or an error.