interface RESTOptions {
    api: string;
    globalRequestsPerMinute: number;
    headers: Record<string, string>;
    version: string;
}

Properties

api: string

The base api path, without version

'https://api.discloud.app'

globalRequestsPerMinute: number

How many requests to allow sending per second (Infinity for unlimited, 60 for the standard global limit used by Discloud)

60

headers: Record<string, string>

Additional headers to send for all API requests

{}

version: string

The version of the API to use

{APIVersion}