@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface LoadMediaOptions

    Options of loadMediaOf.

    interface LoadMediaOptions {
        maxBytes?: number;
        throwOnError?: boolean;
    }
    Index
    maxBytes?: number

    Refuse media larger than this many bytes with a MediaTooLargeError: checked against the size the provider declared (before downloading anything) and while reading the download, which is cut as soon as it goes over. Default: no cap.

    throwOnError?: boolean

    Reject with the download error instead of resolving undefined. Default false.