The attachments property accepts File and Blob:
export type MessageAttachment = CustomFile | CustomFile[] | File | File[] | string | CustomFileData | CustomFileData[];
But it's not (properly) implemented, passing a File object will cause a TypeError: source.on is not a function at Function.DelayedStream.create, the same happens for Blob as mentioned in #254. Buffer works, so the type definition should be updated accordingly.
The attachments property accepts
FileandBlob:But it's not (properly) implemented, passing a
Fileobject will cause aTypeError: source.on is not a function at Function.DelayedStream.create, the same happens forBlobas mentioned in #254.Bufferworks, so the type definition should be updated accordingly.