Skip to content

createAttachment

createAttachment(file, name?): object

Defined in: packages/platform-discord/src/components/attachment.ts:8

Creates an upload descriptor and the attachment:// URL that refers to it.

AttachmentData

string

object

data: object

data: AttachmentData = file

name: string = fileName

url: string