distype - v3.0.1
    Preparing search index...

    Interface RestOptions

    Rest options.

    interface RestOptions {
        bucketSweepInterval?: number | false;
        code500retries?: number;
        disableRatelimits?: boolean;
        ratelimitGlobal?: number;
        ratelimitPause?: number;
    }
    Index

    Properties

    bucketSweepInterval?: number | false

    An interval in milliseconds in which to sweep inactive buckets. False disables sweeping buckets automatically.

    300000
    
    code500retries?: number

    The amount of times to retry a request if it returns code 500.

    3
    
    disableRatelimits?: boolean

    If true, internal rate limits are disabled. Only disable rate limits if you are using a separate application to manage rate limits (customBaseURL can be used to do so), or know exactly what you are doing.

    false
    
    ratelimitGlobal?: number

    The amount of requests to allow to be sent per second.

    50
    
    ratelimitPause?: number

    The amount of time in milliseconds to wait between rate limited requests in the same bucket.

    10