@alemonjs/discord 2.1.0-alpha.2 → 2.1.0-alpha.4

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.
@@ -1,5 +0,0 @@
1
- declare const AvailableIntentsEventsEnum: string[]
2
- type DCIntentsEnum = (typeof AvailableIntentsEventsEnum)[number]
3
-
4
- export { AvailableIntentsEventsEnum }
5
- export type { DCIntentsEnum }
package/lib/sdk/wss.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import { DCAPI } from './api.js'
2
- import { DISOCRDOptions } from './wss.types.js'
3
- import { DCEventMap } from './message.js'
4
-
5
- declare class DCClient extends DCAPI {
6
- #private
7
- /**
8
- * 设置配置
9
- * @param opstion
10
- */
11
- constructor(opstion: DISOCRDOptions)
12
- /**
13
- * 注册事件处理程序
14
- * @param key 事件名称
15
- * @param val 事件处理函数
16
- */
17
- on<T extends keyof DCEventMap>(key: T, val: (event: DCEventMap[T]) => any): this
18
- /**
19
- * 创建ws监听
20
- * @param conversation
21
- * @param shard
22
- * @returns
23
- */
24
- connect(gatewayURL?: string): Promise<void>
25
- }
26
-
27
- export { DCClient }
@@ -1,30 +0,0 @@
1
- import { DCIntentsEnum } from './types.js'
2
-
3
- /**
4
- * ****
5
- * discord
6
- * ***
7
- */
8
- interface DISOCRDOptions {
9
- /**
10
- * 网关地址
11
- */
12
- gatewayURL?: string
13
- /**
14
- * 钥匙
15
- */
16
- token: string
17
- /**
18
- * 订阅(有默认值)
19
- * ******
20
- */
21
- intent?: DCIntentsEnum[]
22
- /**
23
- * 分片(有默认值)
24
- * ******
25
- * [0, 1]
26
- */
27
- shard?: number[]
28
- }
29
-
30
- export type { DISOCRDOptions }