discord-api-types 0.37.9 → 0.37.10-next.32f5a7b.1663190126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-api-types",
3
- "version": "0.37.9",
3
+ "version": "0.37.10-next.32f5a7b.1663190126",
4
4
  "description": "Discord API typings that are kept up to date for use in bot library creation.",
5
5
  "homepage": "https://discord-api-types.dev",
6
6
  "exports": {
@@ -68,4 +68,21 @@ export interface RESTErrorGroupWrapper {
68
68
  export declare type RESTErrorData = RESTErrorGroupWrapper | RESTErrorFieldInformation | {
69
69
  [k: string]: RESTErrorData;
70
70
  } | string;
71
+ /**
72
+ * https://discord.com/developers/docs/topics/rate-limits#exceeding-a-rate-limit-rate-limit-response-structure
73
+ */
74
+ export interface RESTRateLimit {
75
+ /**
76
+ * A value indicating if you are being globally rate limited or not
77
+ */
78
+ global: boolean;
79
+ /**
80
+ * A message saying you are being rate limited.
81
+ */
82
+ message: string;
83
+ /**
84
+ * The number of seconds to wait before submitting another request.
85
+ */
86
+ retry_after: number;
87
+ }
71
88
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAQX,oBAAY,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,oBAAY,aAAa,GAAG,qBAAqB,GAAG,yBAAyB,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAQX,oBAAY,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,oBAAY,aAAa,GAAG,qBAAqB,GAAG,yBAAyB,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,GAAG,MAAM,CAAC;AAExH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB"}
@@ -114,7 +114,7 @@ export interface APIGuild extends APIPartialGuild {
114
114
  */
115
115
  afk_channel_id: Snowflake | null;
116
116
  /**
117
- * afk timeout in seconds
117
+ * afk timeout in seconds, can be set to: `60`, `300`, `900`, `1800`, `3600`
118
118
  */
119
119
  afk_timeout: number;
120
120
  /**
@@ -114,7 +114,7 @@ export interface APIGuild extends APIPartialGuild {
114
114
  */
115
115
  afk_channel_id: Snowflake | null;
116
116
  /**
117
- * afk timeout in seconds
117
+ * afk timeout in seconds, can be set to: `60`, `300`, `900`, `1800`, `3600`
118
118
  */
119
119
  afk_timeout: number;
120
120
  /**
@@ -84,7 +84,7 @@ export declare type RESTPostAPIGuildsJSONBody = AddUndefinedToPossiblyUndefinedP
84
84
  */
85
85
  afk_channel_id?: number | Snowflake | null;
86
86
  /**
87
- * AFK timeout in seconds
87
+ * afk timeout in seconds, can be set to: `60`, `300`, `900`, `1800`, `3600`
88
88
  */
89
89
  afk_timeout?: number;
90
90
  /**
@@ -177,7 +177,7 @@ export declare type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedP
177
177
  */
178
178
  afk_channel_id?: Snowflake | null;
179
179
  /**
180
- * AFK timeout in seconds
180
+ * afk timeout in seconds, can be set to: `60`, `300`, `900`, `1800`, `3600`
181
181
  */
182
182
  afk_timeout?: number;
183
183
  /**
@@ -84,7 +84,7 @@ export declare type RESTPostAPIGuildsJSONBody = AddUndefinedToPossiblyUndefinedP
84
84
  */
85
85
  afk_channel_id?: number | Snowflake | null;
86
86
  /**
87
- * AFK timeout in seconds
87
+ * afk timeout in seconds, can be set to: `60`, `300`, `900`, `1800`, `3600`
88
88
  */
89
89
  afk_timeout?: number;
90
90
  /**
@@ -177,7 +177,7 @@ export declare type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedP
177
177
  */
178
178
  afk_channel_id?: Snowflake | null;
179
179
  /**
180
- * AFK timeout in seconds
180
+ * afk timeout in seconds, can be set to: `60`, `300`, `900`, `1800`, `3600`
181
181
  */
182
182
  afk_timeout?: number;
183
183
  /**