prepareAttachment(source:)

Turn a file into a ChatAttachment for attaching to a ChatMessage

func prepareAttachment(source: AttachmentSource) async -> ChatAttachment?

Parameters

source

The AttachmentSource to use

Return Value

Promise resolving to a ChatAttachment or null