@satorijs/adapter-discord 3.3.2 → 3.3.3
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/lib/index.js +2 -1
- package/lib/index.js.map +2 -2
- package/lib/types/gateway.d.ts +1 -1
- package/lib/types/index.d.ts +4 -4
- package/package.json +3 -3
package/lib/types/gateway.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface GatewayPayloadStructure<O extends GatewayOpcode, T extends keyo
|
|
|
10
10
|
/** sequence number, used for resuming sessions and heartbeats */
|
|
11
11
|
s?: number;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type GatewayPayload = {
|
|
14
14
|
[O in GatewayOpcode]: O extends GatewayOpcode.DISPATCH ? {
|
|
15
15
|
[T in keyof GatewayEvents]: GatewayPayloadStructure<GatewayOpcode.DISPATCH, T, GatewayEvents[T]>;
|
|
16
16
|
}[keyof GatewayEvents] : GatewayPayloadStructure<O, never, O extends keyof GatewayParams ? GatewayParams[O] : never>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export * from './thread';
|
|
|
27
27
|
export * from './user';
|
|
28
28
|
export * from './voice';
|
|
29
29
|
export * from './webhook';
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
30
|
+
export type integer = number;
|
|
31
|
+
export type snowflake = string;
|
|
32
|
+
export type timestamp = string;
|
|
33
33
|
/** @see https://discord.com/developers/docs/reference#locales */
|
|
34
|
-
export
|
|
34
|
+
export type Locale = 'da' | 'de' | 'en-GB' | 'en-US' | 'es-ES' | 'fr' | 'hr' | 'it' | 'lt' | 'hu' | 'nl' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'fi' | 'sv-SE' | 'vi' | 'tr' | 'cs' | 'el' | 'bg' | 'ru' | 'uk' | 'hi' | 'th' | 'zh-CN' | 'ja' | 'zh-TW' | 'ko';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@satorijs/adapter-discord",
|
|
3
3
|
"description": "Discord Adapter for Satorijs",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.3",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib"
|
|
9
9
|
],
|
|
10
10
|
"author": "LittleC <i@ltlec.cn>",
|
|
11
|
-
"
|
|
11
|
+
"contributors": [
|
|
12
12
|
"Shigma <shigma10826@gmail.com>",
|
|
13
13
|
"LittleC <i@ltlec.cn>"
|
|
14
14
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"satori"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@satorijs/satori": "^1.
|
|
32
|
+
"@satorijs/satori": "^1.5.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"file-type": "^16.5.4",
|