dfx 0.124.1 → 0.125.0
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 +617 -471
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +31 -4
- package/DiscordREST/Generated.js.map +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js +1 -1
- package/DiscordREST.js.map +1 -1
- package/Helpers/permissions.d.ts +2 -2
- package/Helpers/permissions.d.ts.map +1 -1
- package/Interactions/definitions.d.ts +5 -5
- package/mjs/DiscordREST/Generated.mjs +30 -3
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/DiscordREST.mjs +1 -1
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +4 -4
- package/src/DiscordREST/Generated.ts +646 -533
- package/src/DiscordREST.ts +3 -1
- package/src/version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -12,10 +12,41 @@ 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;
|
|
15
36
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelPinsUpdate, Discord.GatewayChannelPinsUpdateDispatchData>, {
|
|
16
37
|
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;
|
|
17
44
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildAuditLogEntryCreate, Discord.GatewayGuildAuditLogEntryCreateDispatchData>, {
|
|
18
45
|
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;
|
|
19
50
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildCreate, Discord.GatewayGuildCreateDispatchData>, {
|
|
20
51
|
readonly t: K;
|
|
21
52
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildDelete, Discord.GatewayGuildDeleteDispatchData>, {
|
|
@@ -34,6 +65,10 @@ export declare const make: Effect.Effect<{
|
|
|
34
65
|
readonly t: K;
|
|
35
66
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildUpdate, Discord.GuildResponse>, {
|
|
36
67
|
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;
|
|
37
72
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleDelete, Discord.GatewayGuildRoleDeleteDispatchData>, {
|
|
38
73
|
readonly t: K;
|
|
39
74
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildScheduledEventCreate, Discord.ScheduledEventResponse>, {
|
|
@@ -104,7 +139,7 @@ export declare const make: Effect.Effect<{
|
|
|
104
139
|
burst: boolean;
|
|
105
140
|
burst_colors: Array<string>;
|
|
106
141
|
type: Discord.ReactionType;
|
|
107
|
-
}, "
|
|
142
|
+
}, "member" | "burst_colors" | "message_author_id">>, {
|
|
108
143
|
readonly t: K;
|
|
109
144
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.MessageReactionRemoveEmoji, Discord.GatewayMessageReactionRemoveEmojiDispatchData>, {
|
|
110
145
|
readonly t: K;
|
|
@@ -124,6 +159,12 @@ export declare const make: Effect.Effect<{
|
|
|
124
159
|
readonly t: K;
|
|
125
160
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.StageInstanceUpdate, Discord.StageInstanceResponse>, {
|
|
126
161
|
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;
|
|
127
168
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadCreate, Discord.GatewayThreadCreateDispatchData>, {
|
|
128
169
|
readonly t: K;
|
|
129
170
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadDelete, Discord.GatewayThreadDeleteDispatchData>, {
|
|
@@ -148,6 +189,23 @@ export declare const make: Effect.Effect<{
|
|
|
148
189
|
readonly t: K;
|
|
149
190
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.WebhooksUpdate, Discord.GatewayWebhooksUpdateDispatchData>, {
|
|
150
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;
|
|
151
209
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleCreate, Discord.GetAutoModerationRule200>, {
|
|
152
210
|
readonly t: K;
|
|
153
211
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.AutoModerationRuleDelete, Discord.GetAutoModerationRule200>, {
|
|
@@ -169,47 +227,20 @@ export declare const make: Effect.Effect<{
|
|
|
169
227
|
guild_id: Discord.Snowflake;
|
|
170
228
|
}>, {
|
|
171
229
|
readonly t: K;
|
|
230
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ChannelPinsUpdate, Discord.GatewayChannelPinsUpdateDispatchData>, {
|
|
231
|
+
readonly t: K;
|
|
172
232
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementCreate, Discord.EntitlementResponse>, {
|
|
173
233
|
readonly t: K;
|
|
174
234
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementDelete, Discord.EntitlementResponse>, {
|
|
175
235
|
readonly t: K;
|
|
176
236
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.EntitlementUpdate, Discord.EntitlementResponse>, {
|
|
177
237
|
readonly t: K;
|
|
238
|
+
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildAuditLogEntryCreate, Discord.GatewayGuildAuditLogEntryCreateDispatchData>, {
|
|
239
|
+
readonly t: K;
|
|
178
240
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanAdd, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
179
241
|
readonly t: K;
|
|
180
242
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildBanRemove, Discord.GatewayGuildBanModifyDispatchData>, {
|
|
181
243
|
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;
|
|
213
244
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildCreate, Discord.GatewayGuildCreateDispatchData>, {
|
|
214
245
|
readonly t: K;
|
|
215
246
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildDelete, Discord.GatewayGuildDeleteDispatchData>, {
|
|
@@ -228,6 +259,10 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
228
259
|
readonly t: K;
|
|
229
260
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildUpdate, Discord.GuildResponse>, {
|
|
230
261
|
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;
|
|
231
266
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildRoleDelete, Discord.GatewayGuildRoleDeleteDispatchData>, {
|
|
232
267
|
readonly t: K;
|
|
233
268
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.GuildScheduledEventCreate, Discord.ScheduledEventResponse>, {
|
|
@@ -298,7 +333,7 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
298
333
|
burst: boolean;
|
|
299
334
|
burst_colors: Array<string>;
|
|
300
335
|
type: Discord.ReactionType;
|
|
301
|
-
}, "
|
|
336
|
+
}, "member" | "burst_colors" | "message_author_id">>, {
|
|
302
337
|
readonly t: K;
|
|
303
338
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.MessageReactionRemoveEmoji, Discord.GatewayMessageReactionRemoveEmojiDispatchData>, {
|
|
304
339
|
readonly t: K;
|
|
@@ -318,6 +353,12 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
318
353
|
readonly t: K;
|
|
319
354
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.StageInstanceUpdate, Discord.StageInstanceResponse>, {
|
|
320
355
|
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;
|
|
321
362
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadCreate, Discord.GatewayThreadCreateDispatchData>, {
|
|
322
363
|
readonly t: K;
|
|
323
364
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.ThreadDelete, Discord.GatewayThreadDeleteDispatchData>, {
|
|
@@ -342,47 +383,6 @@ export declare const Messaging: import("effect/Context").Tag<Messsaging, {
|
|
|
342
383
|
readonly t: K;
|
|
343
384
|
}> | Extract<Discord._DataPayload<Discord.GatewayDispatchEvents.WebhooksUpdate, Discord.GatewayWebhooksUpdateDispatchData>, {
|
|
344
385
|
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, DiscordConfig |
|
|
11
|
+
}, never, DiscordConfig | import("dfx/DiscordGateway/Messaging").Messsaging | ShardStateStore | RateLimiter | DiscordWS>;
|
|
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/RateLimit").RateLimitStore | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec | ShardStateStore>;
|
|
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, import("@effect/platform/HttpClient").HttpClient |
|
|
13
|
+
export declare const SharderLive: Layer.Layer<Sharder, never, DiscordConfig | import("@effect/platform/HttpClient").HttpClient | ShardStore | import("dfx/RateLimit").RateLimitStore | import("./DiscordWS").DiscordWSCodec | import("./Shard/StateStore").ShardStateStore | import("@effect/platform/Socket").WebSocketConstructor>;
|
|
14
14
|
//# sourceMappingURL=Sharder.d.ts.map
|