Discord.https - v3.0.16
    Preparing search index...

    Interface MessageCreateOptions

    Represents a message to be sent to the API.

    Sending attachments is not supported at the moment.

    WARNING ⚠️ This class is poorly coded and was rushed; it might need to be rewritten in the future.

    This is only for building an interaction message payload. Using it to send actual messages may result in unexpected behavior.

    interface MessageCreateOptions {
        allowedMentions?: MessageMentionOptions;
        components?: readonly (
            | APIMessageTopLevelComponent
            | JSONEncodable<APIMessageTopLevelComponent>
            | TopLevelComponentData
            | ActionRowData<
                (MessageActionRowComponentData | MessageActionRowComponentBuilder),
            >
        )[];
        content?: string;
        embeds?: readonly (APIEmbed | JSONEncodable<APIEmbed>)[];
        enforceNonce?: boolean;
        files?: readonly AttachmentBuilder[];
        flags?: BitFieldResolvable<
            "SuppressEmbeds"
            | "SuppressNotifications"
            | "IsComponentsV2",
            SuppressEmbeds | SuppressNotifications | IsComponentsV2,
        >;
        forward?: ForwardOptions;
        nonce?: string | number;
        poll?: PollData;
        reply?: ReplyOptions;
        stickers?: readonly StickerResolvable[];
        tts?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    allowedMentions?: MessageMentionOptions
    components?: readonly (
        | APIMessageTopLevelComponent
        | JSONEncodable<APIMessageTopLevelComponent>
        | TopLevelComponentData
        | ActionRowData<
            (MessageActionRowComponentData | MessageActionRowComponentBuilder),
        >
    )[]
    content?: string
    embeds?: readonly (APIEmbed | JSONEncodable<APIEmbed>)[]
    enforceNonce?: boolean
    files?: readonly AttachmentBuilder[]
    flags?: BitFieldResolvable<
        "SuppressEmbeds"
        | "SuppressNotifications"
        | "IsComponentsV2",
        SuppressEmbeds | SuppressNotifications | IsComponentsV2,
    >
    forward?: ForwardOptions
    nonce?: string | number
    poll?: PollData
    reply?: ReplyOptions
    stickers?: readonly StickerResolvable[]
    tts?: boolean