@alemonjs/discord 2.1.0-alpha.13 → 2.1.0-alpha.14
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 +0 -2
- package/lib/sdk/api.d.ts +11 -4
- package/lib/sdk/api.js +165 -128
- package/lib/sdk/wss.js +138 -107
- package/lib/send.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/sdk/api.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as axios from 'axios';
|
|
2
|
-
import { AxiosRequestConfig } from 'axios';
|
|
3
1
|
import FormData from 'form-data';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
4
3
|
import { Readable } from 'stream';
|
|
5
4
|
import { MessageData } from './typings.js';
|
|
6
5
|
|
|
@@ -13,13 +12,13 @@ declare class DCAPI {
|
|
|
13
12
|
* @param opstion
|
|
14
13
|
* @returns
|
|
15
14
|
*/
|
|
16
|
-
request(options: AxiosRequestConfig): Promise<
|
|
15
|
+
request(options: AxiosRequestConfig): Promise<any>;
|
|
17
16
|
/**
|
|
18
17
|
* cdn基础请求
|
|
19
18
|
* @param options
|
|
20
19
|
* @returns
|
|
21
20
|
*/
|
|
22
|
-
requestCDN(options: AxiosRequestConfig): Promise<
|
|
21
|
+
requestCDN(options: AxiosRequestConfig): Promise<any>;
|
|
23
22
|
/**
|
|
24
23
|
* 创建用户url地址
|
|
25
24
|
* @param user_id
|
|
@@ -42,6 +41,14 @@ declare class DCAPI {
|
|
|
42
41
|
* @returns
|
|
43
42
|
*/
|
|
44
43
|
channelsMessagesForm(channel_id: string, param?: MessageData, img?: string | Buffer | Readable): Promise<any>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param channel_id
|
|
47
|
+
* @param data
|
|
48
|
+
* @param headers
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
channelsMessages(channel_id: string, data?: MessageData): Promise<any>;
|
|
45
52
|
/**
|
|
46
53
|
* ************
|
|
47
54
|
* 消息-图片接口
|