@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 CHANGED
@@ -162,8 +162,6 @@ var index = () => {
162
162
  }
163
163
  client.interactionsCallback(event.id, event.token, MessageText);
164
164
  });
165
- // 发送错误时
166
- client.on('ERROR', console.error);
167
165
  const api = {
168
166
  active: {
169
167
  send: {
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<axios.AxiosResponse<any, any>>;
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<axios.AxiosResponse<any, any>>;
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
  * 消息-图片接口