summaryrefslogtreecommitdiff
path: root/dist/types/IAttachmentBuilderData.d.ts
blob: 5ab88ee19ad0070f663e0d748208657505395016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// <reference types="node" />
import { IMimeType } from "./IMimeType";
/**
 * Data used by an {@link AttachmentBuilder} to create
 * an {@link Attachment} from an arbitrary Buffer
 */
export interface IAttachmentBuilderData {
    /**
     * The {@link Buffer} to create the Attachment from
     */
    data: Buffer;
    /**
     * Optionally, the file type of the {@link Attachment}
     *
     * If this is unset, it will be sent as binary
     * data (application/octet-stream)
     */
    type?: IMimeType;
    /**
     * An optional file name for the attachment
     */
    fileName?: string;
}