-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
typings.ts
26 lines (26 loc) · 797 Bytes
/
typings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export type RestOptions = {
/**
* How many times to retry a request that's been ratelimited before failing
*/
maxRatelimitRetryLimit?: number;
/**
* The base url of the API you want to send requests to. By default, this will send it to guilded's rest API. This is meant for big bot developers who want to use a proxy rest system.
*/
proxyURL?: string;
/**
* How long to delay each request by.
*/
restOffset?: number;
/**
* The bot token to be used for making requests.
*/
token: string;
/**
* The version of the API to be used for making requests. By default, this will use the latest version that the library supports.
*/
version?: 1;
/**
* The additional headers that will be added to each request done by RestManager.
*/
headers?: Record<string, string>;
};