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.
Parameters
Section titled “Parameters”AttachmentData
string
Returns
Section titled “Returns”object
data:
object
data.data
Section titled “data.data”data:
AttachmentData=file
data.name
Section titled “data.name”name:
string=fileName
url:
string