Function useAttachment

This hook returns the attachment data of a cached message

  • Parameters

    Returns {
        attachment: undefined | Attachment;
        error: undefined | Error;
        load: (() => void);
        status: AttachmentStatus;
    }

    • attachment: undefined | Attachment
    • error: undefined | Error
    • load: (() => void)
        • (): void
        • Returns void

    • status: AttachmentStatus