@koishijs/plugin-adapter-discord 2.0.3 → 2.0.6
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/bot.d.ts +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +2 -2
- package/lib/types/emoji.d.ts +1 -1
- package/lib/types/internal.d.ts +1 -1
- package/lib/ws.d.ts +1 -1
- package/package.json +7 -7
package/lib/types/emoji.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare namespace Emoji {
|
|
|
37
37
|
interface ModifyParams {
|
|
38
38
|
/** name of the emoji */
|
|
39
39
|
name?: string;
|
|
40
|
-
/** array of snowflakes
|
|
40
|
+
/** array of snowflakes roles allowed to use this emoji */
|
|
41
41
|
roles?: snowflake[];
|
|
42
42
|
}
|
|
43
43
|
}
|
package/lib/types/internal.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Dict, Quester } from 'koishi';
|
|
|
2
2
|
declare type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
3
3
|
export declare class Internal {
|
|
4
4
|
private http;
|
|
5
|
-
static define(routes: Dict<Partial<Record<Method, string | string[]>>>): void;
|
|
6
5
|
constructor(http: Quester);
|
|
6
|
+
static define(routes: Dict<Partial<Record<Method, string | string[]>>>): void;
|
|
7
7
|
}
|
|
8
8
|
export {};
|
package/lib/ws.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AdapterConfig } from './utils';
|
|
|
3
3
|
import { BotConfig, DiscordBot } from './bot';
|
|
4
4
|
import WebSocket from 'ws';
|
|
5
5
|
export default class WebSocketClient extends Adapter.WebSocketClient<BotConfig, AdapterConfig> {
|
|
6
|
-
static schema: import("schemastery")<unknown, any>;
|
|
6
|
+
static schema: import("schemastery").default<unknown, any>;
|
|
7
7
|
prepare(bot: DiscordBot): WebSocket;
|
|
8
8
|
heartbeat(bot: DiscordBot): void;
|
|
9
9
|
accept(bot: DiscordBot): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koishijs/plugin-adapter-discord",
|
|
3
|
-
"description": "Discord
|
|
4
|
-
"version": "2.0.
|
|
3
|
+
"description": "Discord Adapter for Koishi",
|
|
4
|
+
"version": "2.0.6",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"impl:adapter"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"koishi": "^4.
|
|
32
|
+
"koishi": "^4.5.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@koishijs/plugin-mock": "^1.0.
|
|
35
|
+
"@koishijs/plugin-mock": "^1.0.3",
|
|
36
36
|
"@types/es-aggregate-error": "^1.0.2",
|
|
37
|
-
"@types/ws": "^8.
|
|
37
|
+
"@types/ws": "^8.5.3",
|
|
38
38
|
"axios": "^0.24.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"es-aggregate-error": "^1.0.7",
|
|
42
42
|
"file-type": "^16.5.3",
|
|
43
43
|
"form-data": "^4.0.0",
|
|
44
|
-
"ws": "^8.
|
|
44
|
+
"ws": "^8.5.0"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|