dfx 0.124.2 → 0.125.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 +1 -1
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordREST/Generated.d.ts +11 -0
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +2 -1
- package/DiscordREST/Generated.js.map +1 -1
- package/DiscordREST.d.ts +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js +3 -3
- 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 +2 -1
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/DiscordREST.mjs +3 -3
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +4 -4
- package/src/DiscordREST/Generated.ts +12 -0
- package/src/DiscordREST.ts +30 -26
- package/src/version.ts +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;
|
|
@@ -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 | import("dfx/RateLimit").RateLimitStore | import("@effect/platform/Socket").WebSocketConstructor | ShardStore | import("./Shard/StateStore").ShardStateStore | import("./DiscordWS").DiscordWSCodec>;
|
|
14
14
|
//# sourceMappingURL=Sharder.d.ts.map
|
|
@@ -3035,11 +3035,17 @@ export declare const AfkTimeouts: {
|
|
|
3035
3035
|
readonly ONE_HOUR: 3600;
|
|
3036
3036
|
};
|
|
3037
3037
|
export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts];
|
|
3038
|
+
export interface GuildTemplateRoleColorsResponse {
|
|
3039
|
+
readonly primary_color: number;
|
|
3040
|
+
readonly secondary_color?: number | null | undefined;
|
|
3041
|
+
readonly tertiary_color?: number | null | undefined;
|
|
3042
|
+
}
|
|
3038
3043
|
export interface GuildTemplateRoleResponse {
|
|
3039
3044
|
readonly id: number;
|
|
3040
3045
|
readonly name: string;
|
|
3041
3046
|
readonly permissions: string;
|
|
3042
3047
|
readonly color: number;
|
|
3048
|
+
readonly colors?: GuildTemplateRoleColorsResponse | null | undefined;
|
|
3043
3049
|
readonly hoist: boolean;
|
|
3044
3050
|
readonly mentionable: boolean;
|
|
3045
3051
|
readonly icon?: string | null | undefined;
|
|
@@ -3950,6 +3956,7 @@ export interface PrivateGuildMemberResponse {
|
|
|
3950
3956
|
readonly user: UserResponse;
|
|
3951
3957
|
readonly mute: boolean;
|
|
3952
3958
|
readonly deaf: boolean;
|
|
3959
|
+
readonly permissions?: string | undefined;
|
|
3953
3960
|
}
|
|
3954
3961
|
export interface SearchGuildMembersParams {
|
|
3955
3962
|
readonly limit?: number | undefined;
|
|
@@ -4617,6 +4624,7 @@ export interface LobbyResponse {
|
|
|
4617
4624
|
readonly members: ReadonlyArray<LobbyMemberResponse>;
|
|
4618
4625
|
readonly linked_channel?: GuildChannelResponse | undefined;
|
|
4619
4626
|
readonly flags: UInt32Type;
|
|
4627
|
+
readonly override_event_webhooks_url?: string | null | undefined;
|
|
4620
4628
|
}
|
|
4621
4629
|
export type LobbyMemberRequestFlagsEnum = 1;
|
|
4622
4630
|
export interface LobbyMemberRequest {
|
|
@@ -4630,6 +4638,7 @@ export interface CreateLobbyRequest {
|
|
|
4630
4638
|
readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined;
|
|
4631
4639
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
4632
4640
|
readonly flags?: CreateLobbyRequestFlagsEnum | null | undefined;
|
|
4641
|
+
readonly override_event_webhooks_url?: string | null | undefined;
|
|
4633
4642
|
}
|
|
4634
4643
|
export type EditLobbyRequestFlagsEnum = 1;
|
|
4635
4644
|
export interface EditLobbyRequest {
|
|
@@ -4637,6 +4646,7 @@ export interface EditLobbyRequest {
|
|
|
4637
4646
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
4638
4647
|
readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined;
|
|
4639
4648
|
readonly flags?: EditLobbyRequestFlagsEnum | null | undefined;
|
|
4649
|
+
readonly override_event_webhooks_url?: string | null | undefined;
|
|
4640
4650
|
}
|
|
4641
4651
|
export interface EditLobbyChannelLinkRequest {
|
|
4642
4652
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
@@ -4721,6 +4731,7 @@ export declare const ApplicationIdentityProviderAuthType: {
|
|
|
4721
4731
|
readonly EPIC_ONLINE_SERVICES_ID_TOKEN: "EPIC_ONLINE_SERVICES_ID_TOKEN";
|
|
4722
4732
|
readonly STEAM_SESSION_TICKET: "STEAM_SESSION_TICKET";
|
|
4723
4733
|
readonly UNITY_SERVICES_ID_TOKEN: "UNITY_SERVICES_ID_TOKEN";
|
|
4734
|
+
readonly DISCORD_BOT_ISSUED_ACCESS_TOKEN: "DISCORD_BOT_ISSUED_ACCESS_TOKEN";
|
|
4724
4735
|
};
|
|
4725
4736
|
export type ApplicationIdentityProviderAuthType = (typeof ApplicationIdentityProviderAuthType)[keyof typeof ApplicationIdentityProviderAuthType];
|
|
4726
4737
|
export interface PartnerSdkUnmergeProvisionalAccountRequest {
|