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

interface WebhookMessageEditOptions {
    allowedMentions?: MessageMentionOptions;
    attachments?: readonly (Attachment | MessageEditAttachmentData)[];
    components?: readonly (
        | APIMessageTopLevelComponent
        | TopLevelComponentData
        | JSONEncodable<APIMessageTopLevelComponent>
        | ActionRowData<
            (MessageActionRowComponentBuilder | MessageActionRowComponentData),
        >
    )[];
    content?: null | string;
    embeds?: readonly (APIEmbed | JSONEncodable<APIEmbed>)[];
    files?: readonly (
        | Stream
        | Attachment
        | BufferResolvable
        | AttachmentBuilder
        | AttachmentPayload
        | JSONEncodable<APIAttachment>
    )[];
    flags?: BitFieldResolvable<
        "SuppressEmbeds"
        | "IsComponentsV2",
        SuppressEmbeds | IsComponentsV2,
    >;
    threadId?: string;
    withComponents?: boolean;
}

Hierarchy (View Summary)

Properties

allowedMentions?: MessageMentionOptions
attachments?: readonly (Attachment | MessageEditAttachmentData)[]
components?: readonly (
    | APIMessageTopLevelComponent
    | TopLevelComponentData
    | JSONEncodable<APIMessageTopLevelComponent>
    | ActionRowData<
        (MessageActionRowComponentBuilder | MessageActionRowComponentData),
    >
)[]
content?: null | string
embeds?: readonly (APIEmbed | JSONEncodable<APIEmbed>)[]
files?: readonly (
    | Stream
    | Attachment
    | BufferResolvable
    | AttachmentBuilder
    | AttachmentPayload
    | JSONEncodable<APIAttachment>
)[]
flags?: BitFieldResolvable<
    "SuppressEmbeds"
    | "IsComponentsV2",
    SuppressEmbeds | IsComponentsV2,
>
threadId?: string
withComponents?: boolean