Construct a type with the properties of T except for those in type K.

interface WebhookMessageCreateOptions {
    allowedMentions?: MessageMentionOptions;
    appliedTags?: readonly string[];
    avatarURL?: string;
    components?: readonly (
        | APIMessageTopLevelComponent
        | TopLevelComponentData
        | JSONEncodable<APIMessageTopLevelComponent>
        | ActionRowData<
            (MessageActionRowComponentBuilder | MessageActionRowComponentData),
        >
    )[];
    content?: string;
    embeds?: readonly (APIEmbed | JSONEncodable<APIEmbed>)[];
    enforceNonce?: boolean;
    files?: readonly (
        | Stream
        | Attachment
        | BufferResolvable
        | AttachmentBuilder
        | AttachmentPayload
        | JSONEncodable<APIAttachment>
    )[];
    flags?: BitFieldResolvable<
        "SuppressEmbeds"
        | "SuppressNotifications"
        | "IsComponentsV2",
        SuppressEmbeds | SuppressNotifications | IsComponentsV2,
    >;
    poll?: PollData;
    threadId?: string;
    threadName?: string;
    tts?: boolean;
    username?: string;
    withComponents?: boolean;
}

Hierarchy (View Summary)

Properties

allowedMentions?: MessageMentionOptions
appliedTags?: readonly string[]
avatarURL?: string
components?: readonly (
    | APIMessageTopLevelComponent
    | TopLevelComponentData
    | JSONEncodable<APIMessageTopLevelComponent>
    | ActionRowData<
        (MessageActionRowComponentBuilder | MessageActionRowComponentData),
    >
)[]
content?: string
embeds?: readonly (APIEmbed | JSONEncodable<APIEmbed>)[]
enforceNonce?: boolean
files?: readonly (
    | Stream
    | Attachment
    | BufferResolvable
    | AttachmentBuilder
    | AttachmentPayload
    | JSONEncodable<APIAttachment>
)[]
flags?: BitFieldResolvable<
    "SuppressEmbeds"
    | "SuppressNotifications"
    | "IsComponentsV2",
    SuppressEmbeds | SuppressNotifications | IsComponentsV2,
>
poll?: PollData
threadId?: string
threadName?: string
tts?: boolean
username?: string
withComponents?: boolean