• A function to use when a code error occurs in a command for example.

    Parameters

    • ctx: CommandContext

      The command context where the error come from.

    • error: Error

      The native error.

    Returns Promise<Message<boolean>>

    • The error message sent.

    Remarks

    If the message author is an owner, it sends the error stack.
    Do not use for sending string as errors.

Generated using TypeDoc