dfx 0.124.0 → 0.124.1
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/DiscordGateway/Messaging.d.ts +74 -74
- package/DiscordGateway/Shard.d.ts +2 -2
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordREST/Generated.d.ts +114 -147
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +11 -9
- package/DiscordREST/Generated.js.map +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js.map +1 -1
- package/Helpers/permissions.d.ts +2 -2
- package/Interactions/definitions.d.ts +5 -5
- package/mjs/DiscordREST/Generated.mjs +10 -8
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +3 -3
- package/src/DiscordREST/Generated.ts +129 -212
- package/src/DiscordREST.ts +3 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -12,41 +12,10 @@ export declare const make: Effect.Effect<{
|
|
|
12
12
|
readonly t: K;
|
|
13
13
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationActionExecution, Discord.GatewayAutoModerationActionExecutionDispatchData>, {
|
|
14
14
|
readonly t: K;
|
|
15
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleCreate, Discord.GetAutoModerationRule200>, {
|
|
16
|
-
readonly t: K;
|
|
17
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleDelete, Discord.GetAutoModerationRule200>, {
|
|
18
|
-
readonly t: K;
|
|
19
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleUpdate, Discord.GetAutoModerationRule200>, {
|
|
20
|
-
readonly t: K;
|
|
21
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelCreate, Discord.GuildChannelResponse & {
|
|
22
|
-
type: Exclude<Discord.GuildChannelType, Discord.ThreadChannelType>;
|
|
23
|
-
guild_id: Discord.Snowflake;
|
|
24
|
-
}>, {
|
|
25
|
-
readonly t: K;
|
|
26
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelDelete, Discord.GuildChannelResponse & {
|
|
27
|
-
type: Exclude<Discord.GuildChannelType, Discord.ThreadChannelType>;
|
|
28
|
-
guild_id: Discord.Snowflake;
|
|
29
|
-
}>, {
|
|
30
|
-
readonly t: K;
|
|
31
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelUpdate, Discord.GuildChannelResponse & {
|
|
32
|
-
type: Exclude<Discord.GuildChannelType, Discord.ThreadChannelType>;
|
|
33
|
-
guild_id: Discord.Snowflake;
|
|
34
|
-
}>, {
|
|
35
|
-
readonly t: K;
|
|
36
15
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelPinsUpdate, Discord.GatewayChannelPinsUpdateDispatchData>, {
|
|
37
16
|
readonly t: K;
|
|
38
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementCreate, Discord.EntitlementResponse>, {
|
|
39
|
-
readonly t: K;
|
|
40
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementDelete, Discord.EntitlementResponse>, {
|
|
41
|
-
readonly t: K;
|
|
42
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementUpdate, Discord.EntitlementResponse>, {
|
|
43
|
-
readonly t: K;
|
|
44
17
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildAuditLogEntryCreate, Discord.GatewayGuildAuditLogEntryCreateDispatchData>, {
|
|
45
18
|
readonly t: K;
|
|
46
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanAdd, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
47
|
-
readonly t: K;
|
|
48
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanRemove, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
49
|
-
readonly t: K;
|
|
50
19
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildCreate, Discord.GatewayGuildCreateDispatchData>, {
|
|
51
20
|
readonly t: K;
|
|
52
21
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildDelete, Discord.GatewayGuildDeleteDispatchData>, {
|
|
@@ -65,10 +34,6 @@ export declare const make: Effect.Effect<{
|
|
|
65
34
|
readonly t: K;
|
|
66
35
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildUpdate, Discord.GuildResponse>, {
|
|
67
36
|
readonly t: K;
|
|
68
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleCreate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
69
|
-
readonly t: K;
|
|
70
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleUpdate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
71
|
-
readonly t: K;
|
|
72
37
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleDelete, Discord.GatewayGuildRoleDeleteDispatchData>, {
|
|
73
38
|
readonly t: K;
|
|
74
39
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildScheduledEventCreate, Discord.ScheduledEventResponse>, {
|
|
@@ -139,7 +104,7 @@ export declare const make: Effect.Effect<{
|
|
|
139
104
|
burst: boolean;
|
|
140
105
|
burst_colors: Array<string>;
|
|
141
106
|
type: Discord.ReactionType;
|
|
142
|
-
}, "
|
|
107
|
+
}, "burst_colors" | "member" | "message_author_id">>, {
|
|
143
108
|
readonly t: K;
|
|
144
109
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.MessageReactionRemoveEmoji, Discord.GatewayMessageReactionRemoveEmojiDispatchData>, {
|
|
145
110
|
readonly t: K;
|
|
@@ -159,12 +124,6 @@ export declare const make: Effect.Effect<{
|
|
|
159
124
|
readonly t: K;
|
|
160
125
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.StageInstanceUpdate, Discord.StageInstanceResponse>, {
|
|
161
126
|
readonly t: K;
|
|
162
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionCreate, Discord.APISubscription>, {
|
|
163
|
-
readonly t: K;
|
|
164
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionDelete, Discord.APISubscription>, {
|
|
165
|
-
readonly t: K;
|
|
166
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionUpdate, Discord.APISubscription>, {
|
|
167
|
-
readonly t: K;
|
|
168
127
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadCreate, Discord.GatewayThreadCreateDispatchData>, {
|
|
169
128
|
readonly t: K;
|
|
170
129
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadDelete, Discord.GatewayThreadDeleteDispatchData>, {
|
|
@@ -189,23 +148,6 @@ export declare const make: Effect.Effect<{
|
|
|
189
148
|
readonly t: K;
|
|
190
149
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.WebhooksUpdate, Discord.GatewayWebhooksUpdateDispatchData>, {
|
|
191
150
|
readonly t: K;
|
|
192
|
-
}>)["d"], never, never>;
|
|
193
|
-
readonly handleDispatch: <K extends `${Discord.GatewayDispatchEvents}`, R, E, A>(event: K, handle: (event: Extract<Discord.GatewayDispatchPayload, {
|
|
194
|
-
readonly t: K;
|
|
195
|
-
}>["d"]) => Effect.Effect<A, E, R>) => Effect.Effect<never, E, R>;
|
|
196
|
-
readonly send: (payload: Discord.GatewaySendPayload) => Effect.Effect<boolean, never, never>;
|
|
197
|
-
}, never, import("effect/Scope").Scope>;
|
|
198
|
-
export interface Messsaging {
|
|
199
|
-
readonly _: unique symbol;
|
|
200
|
-
}
|
|
201
|
-
export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
202
|
-
readonly hub: PubSub.PubSub<Discord.GatewayReceivePayload>;
|
|
203
|
-
readonly sendMailbox: Mailbox.Mailbox<Discord.GatewaySendPayload, never>;
|
|
204
|
-
readonly dispatch: Stream.Stream<Discord.GatewayReceivePayload, never, never>;
|
|
205
|
-
readonly fromDispatch: <K extends `${Discord.GatewayDispatchEvents}`>(event: K) => Stream.Stream<(Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ApplicationCommandPermissionsUpdate, Discord.GatewayApplicationCommandPermissionsUpdateDispatchData>, {
|
|
206
|
-
readonly t: K;
|
|
207
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationActionExecution, Discord.GatewayAutoModerationActionExecutionDispatchData>, {
|
|
208
|
-
readonly t: K;
|
|
209
151
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleCreate, Discord.GetAutoModerationRule200>, {
|
|
210
152
|
readonly t: K;
|
|
211
153
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleDelete, Discord.GetAutoModerationRule200>, {
|
|
@@ -227,20 +169,47 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
227
169
|
guild_id: Discord.Snowflake;
|
|
228
170
|
}>, {
|
|
229
171
|
readonly t: K;
|
|
230
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelPinsUpdate, Discord.GatewayChannelPinsUpdateDispatchData>, {
|
|
231
|
-
readonly t: K;
|
|
232
172
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementCreate, Discord.EntitlementResponse>, {
|
|
233
173
|
readonly t: K;
|
|
234
174
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementDelete, Discord.EntitlementResponse>, {
|
|
235
175
|
readonly t: K;
|
|
236
176
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementUpdate, Discord.EntitlementResponse>, {
|
|
237
177
|
readonly t: K;
|
|
238
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildAuditLogEntryCreate, Discord.GatewayGuildAuditLogEntryCreateDispatchData>, {
|
|
239
|
-
readonly t: K;
|
|
240
178
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanAdd, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
241
179
|
readonly t: K;
|
|
242
180
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanRemove, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
243
181
|
readonly t: K;
|
|
182
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleCreate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
183
|
+
readonly t: K;
|
|
184
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleUpdate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
185
|
+
readonly t: K;
|
|
186
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionCreate, Discord.APISubscription>, {
|
|
187
|
+
readonly t: K;
|
|
188
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionDelete, Discord.APISubscription>, {
|
|
189
|
+
readonly t: K;
|
|
190
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionUpdate, Discord.APISubscription>, {
|
|
191
|
+
readonly t: K;
|
|
192
|
+
}>)["d"], never, never>;
|
|
193
|
+
readonly handleDispatch: <K extends `${Discord.GatewayDispatchEvents}`, R, E, A>(event: K, handle: (event: Extract<Discord.GatewayDispatchPayload, {
|
|
194
|
+
readonly t: K;
|
|
195
|
+
}>["d"]) => Effect.Effect<A, E, R>) => Effect.Effect<never, E, R>;
|
|
196
|
+
readonly send: (payload: Discord.GatewaySendPayload) => Effect.Effect<boolean, never, never>;
|
|
197
|
+
}, never, import("effect/Scope").Scope>;
|
|
198
|
+
export interface Messsaging {
|
|
199
|
+
readonly _: unique symbol;
|
|
200
|
+
}
|
|
201
|
+
export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
202
|
+
readonly hub: PubSub.PubSub<Discord.GatewayReceivePayload>;
|
|
203
|
+
readonly sendMailbox: Mailbox.Mailbox<Discord.GatewaySendPayload, never>;
|
|
204
|
+
readonly dispatch: Stream.Stream<Discord.GatewayReceivePayload, never, never>;
|
|
205
|
+
readonly fromDispatch: <K extends `${Discord.GatewayDispatchEvents}`>(event: K) => Stream.Stream<(Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ApplicationCommandPermissionsUpdate, Discord.GatewayApplicationCommandPermissionsUpdateDispatchData>, {
|
|
206
|
+
readonly t: K;
|
|
207
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationActionExecution, Discord.GatewayAutoModerationActionExecutionDispatchData>, {
|
|
208
|
+
readonly t: K;
|
|
209
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelPinsUpdate, Discord.GatewayChannelPinsUpdateDispatchData>, {
|
|
210
|
+
readonly t: K;
|
|
211
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildAuditLogEntryCreate, Discord.GatewayGuildAuditLogEntryCreateDispatchData>, {
|
|
212
|
+
readonly t: K;
|
|
244
213
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildCreate, Discord.GatewayGuildCreateDispatchData>, {
|
|
245
214
|
readonly t: K;
|
|
246
215
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildDelete, Discord.GatewayGuildDeleteDispatchData>, {
|
|
@@ -259,10 +228,6 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
259
228
|
readonly t: K;
|
|
260
229
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildUpdate, Discord.GuildResponse>, {
|
|
261
230
|
readonly t: K;
|
|
262
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleCreate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
263
|
-
readonly t: K;
|
|
264
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleUpdate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
265
|
-
readonly t: K;
|
|
266
231
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleDelete, Discord.GatewayGuildRoleDeleteDispatchData>, {
|
|
267
232
|
readonly t: K;
|
|
268
233
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildScheduledEventCreate, Discord.ScheduledEventResponse>, {
|
|
@@ -333,7 +298,7 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
333
298
|
burst: boolean;
|
|
334
299
|
burst_colors: Array<string>;
|
|
335
300
|
type: Discord.ReactionType;
|
|
336
|
-
}, "
|
|
301
|
+
}, "burst_colors" | "member" | "message_author_id">>, {
|
|
337
302
|
readonly t: K;
|
|
338
303
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.MessageReactionRemoveEmoji, Discord.GatewayMessageReactionRemoveEmojiDispatchData>, {
|
|
339
304
|
readonly t: K;
|
|
@@ -353,12 +318,6 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
353
318
|
readonly t: K;
|
|
354
319
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.StageInstanceUpdate, Discord.StageInstanceResponse>, {
|
|
355
320
|
readonly t: K;
|
|
356
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionCreate, Discord.APISubscription>, {
|
|
357
|
-
readonly t: K;
|
|
358
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionDelete, Discord.APISubscription>, {
|
|
359
|
-
readonly t: K;
|
|
360
|
-
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionUpdate, Discord.APISubscription>, {
|
|
361
|
-
readonly t: K;
|
|
362
321
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadCreate, Discord.GatewayThreadCreateDispatchData>, {
|
|
363
322
|
readonly t: K;
|
|
364
323
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadDelete, Discord.GatewayThreadDeleteDispatchData>, {
|
|
@@ -383,6 +342,47 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
383
342
|
readonly t: K;
|
|
384
343
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.WebhooksUpdate, Discord.GatewayWebhooksUpdateDispatchData>, {
|
|
385
344
|
readonly t: K;
|
|
345
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleCreate, Discord.GetAutoModerationRule200>, {
|
|
346
|
+
readonly t: K;
|
|
347
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleDelete, Discord.GetAutoModerationRule200>, {
|
|
348
|
+
readonly t: K;
|
|
349
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleUpdate, Discord.GetAutoModerationRule200>, {
|
|
350
|
+
readonly t: K;
|
|
351
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelCreate, Discord.GuildChannelResponse & {
|
|
352
|
+
type: Exclude<Discord.GuildChannelType, Discord.ThreadChannelType>;
|
|
353
|
+
guild_id: Discord.Snowflake;
|
|
354
|
+
}>, {
|
|
355
|
+
readonly t: K;
|
|
356
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelDelete, Discord.GuildChannelResponse & {
|
|
357
|
+
type: Exclude<Discord.GuildChannelType, Discord.ThreadChannelType>;
|
|
358
|
+
guild_id: Discord.Snowflake;
|
|
359
|
+
}>, {
|
|
360
|
+
readonly t: K;
|
|
361
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelUpdate, Discord.GuildChannelResponse & {
|
|
362
|
+
type: Exclude<Discord.GuildChannelType, Discord.ThreadChannelType>;
|
|
363
|
+
guild_id: Discord.Snowflake;
|
|
364
|
+
}>, {
|
|
365
|
+
readonly t: K;
|
|
366
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementCreate, Discord.EntitlementResponse>, {
|
|
367
|
+
readonly t: K;
|
|
368
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementDelete, Discord.EntitlementResponse>, {
|
|
369
|
+
readonly t: K;
|
|
370
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementUpdate, Discord.EntitlementResponse>, {
|
|
371
|
+
readonly t: K;
|
|
372
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanAdd, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
373
|
+
readonly t: K;
|
|
374
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanRemove, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
375
|
+
readonly t: K;
|
|
376
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleCreate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
377
|
+
readonly t: K;
|
|
378
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleUpdate, Discord.GatewayGuildRoleModifyDispatchData>, {
|
|
379
|
+
readonly t: K;
|
|
380
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionCreate, Discord.APISubscription>, {
|
|
381
|
+
readonly t: K;
|
|
382
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionDelete, Discord.APISubscription>, {
|
|
383
|
+
readonly t: K;
|
|
384
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.SubscriptionUpdate, Discord.APISubscription>, {
|
|
385
|
+
readonly t: K;
|
|
386
386
|
}>)["d"], never, never>;
|
|
387
387
|
readonly handleDispatch: <K extends `${Discord.GatewayDispatchEvents}`, R, E, A>(event: K, handle: (event: Extract<Discord.GatewayDispatchPayload, {
|
|
388
388
|
readonly t: K;
|
|
@@ -8,7 +8,7 @@ export declare const make: Effect.Effect<{
|
|
|
8
8
|
readonly connect: (shard: [id: number, count: number]) => Effect.Effect<{
|
|
9
9
|
readonly id: [id: number, count: number];
|
|
10
10
|
}, never, import("effect/Scope").Scope | import("@effect/platform/Socket").WebSocketConstructor>;
|
|
11
|
-
}, never, import("dfx/DiscordGateway/Messaging").Messsaging |
|
|
11
|
+
}, never, DiscordConfig | DiscordWS | import("dfx/DiscordGateway/Messaging").Messsaging | ShardStateStore | RateLimiter>;
|
|
12
12
|
type ShardService = Effect.Effect.Success<typeof make>;
|
|
13
13
|
export interface Shard {
|
|
14
14
|
readonly _: unique symbol;
|
|
@@ -18,7 +18,7 @@ export declare const Shard: import("effect/Context").Tag<Shard, {
|
|
|
18
18
|
readonly id: [id: number, count: number];
|
|
19
19
|
}, never, import("effect/Scope").Scope | import("@effect/platform/Socket").WebSocketConstructor>;
|
|
20
20
|
}>;
|
|
21
|
-
export declare const ShardLive: Layer.Layer<Shard, never, DiscordConfig | import("dfx/
|
|
21
|
+
export declare const ShardLive: Layer.Layer<Shard, never, DiscordConfig | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec | ShardStateStore | import("dfx/RateLimit").RateLimitStore>;
|
|
22
22
|
export interface RunningShard extends Effect.Effect.Success<ReturnType<ShardService["connect"]>> {
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -10,5 +10,5 @@ export interface Sharder {
|
|
|
10
10
|
export declare const Sharder: import("effect/Context").Tag<Sharder, {
|
|
11
11
|
readonly shards: Effect.Effect<HashSet.HashSet<RunningShard>, never, never>;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const SharderLive: Layer.Layer<Sharder, never,
|
|
13
|
+
export declare const SharderLive: Layer.Layer<Sharder, never, import("@effect/platform/HttpClient").HttpClient | DiscordConfig | import("./DiscordWS").DiscordWSCodec | import("@effect/platform/Socket").WebSocketConstructor | import("./Shard/StateStore").ShardStateStore | import("dfx/RateLimit").RateLimitStore | ShardStore>;
|
|
14
14
|
//# sourceMappingURL=Sharder.d.ts.map
|