• Generate a message with the specified type (error, success, or warning).

    Parameters

    • type: "error" | "success" | "warning"

      The type of the message: 'error', 'success', or 'warning'.

    • embedInfo: APIEmbed

      The information to build our embed with.

    • components: ActionRowBuilder<ButtonBuilder>[] = []

      The components for our message.

    • ephemeral: boolean = false

      Whether our message should be ephemeral or not.

    • supportServer: undefined | string = undefined

      Whether or not to add the support server link as a component (for error messages only).

    Returns GeneratedMessage

    The generated message.