- useAttachment(message, options?): {
attachment: undefined | Attachment;
error: undefined | Error;
load: (() => void);
status: AttachmentStatus;
} Returns {
attachment: undefined | Attachment;
error: undefined | Error;
load: (() => void);
status: AttachmentStatus;
}
attachment: undefined | Attachment
error: undefined | Error
load: (() => void)
status: AttachmentStatus
This hook returns the attachment data of a cached message