dfx 0.121.1 → 0.122.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/DiscordWS.d.ts +1 -1
- package/DiscordGateway/Messaging.d.ts +74 -74
- package/DiscordGateway/Shard.d.ts +3 -3
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/Helpers/permissions.d.ts +2 -2
- package/Interactions/definitions.d.ts +5 -5
- package/mjs/version.mjs +1 -1
- package/package.json +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -31,7 +31,7 @@ export declare const DiscordWS: import("effect/Context").Tag<DiscordWS, {
|
|
|
31
31
|
readonly take: Effect.Effect<Discord.GatewayReceivePayload, Cause.NoSuchElementException, never>;
|
|
32
32
|
readonly setUrl: (url: string) => Effect.Effect<void, never, never>;
|
|
33
33
|
readonly write: (message: MessageSend) => Effect.Effect<void>;
|
|
34
|
-
}, never,
|
|
34
|
+
}, never, import("effect/Scope").Scope | Socket.WebSocketConstructor>;
|
|
35
35
|
}>;
|
|
36
36
|
export declare const DiscordWSLive: Layer.Layer<DiscordWS, never, DiscordWSCodec>;
|
|
37
37
|
//# sourceMappingURL=DiscordWS.d.ts.map
|
|
@@ -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;
|
|
@@ -7,8 +7,8 @@ import * as Layer from "effect/Layer";
|
|
|
7
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
|
-
}, never, import("
|
|
11
|
-
}, never, DiscordConfig |
|
|
10
|
+
}, never, import("effect/Scope").Scope | import("@effect/platform/Socket").WebSocketConstructor>;
|
|
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;
|
|
@@ -16,7 +16,7 @@ export interface Shard {
|
|
|
16
16
|
export declare const Shard: import("effect/Context").Tag<Shard, {
|
|
17
17
|
readonly connect: (shard: [id: number, count: number]) => Effect.Effect<{
|
|
18
18
|
readonly id: [id: number, count: number];
|
|
19
|
-
}, never, import("
|
|
19
|
+
}, never, import("effect/Scope").Scope | import("@effect/platform/Socket").WebSocketConstructor>;
|
|
20
20
|
}>;
|
|
21
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"]>> {
|
|
@@ -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
|
package/Helpers/permissions.d.ts
CHANGED
|
@@ -11,11 +11,11 @@ export declare const has: (flag: bigint | string) => (bits: bigint | string) =>
|
|
|
11
11
|
/**
|
|
12
12
|
* Convert a permissions bitfield to a list of flag names.
|
|
13
13
|
*/
|
|
14
|
-
export declare const toList: (bitfield: bigint) => ("
|
|
14
|
+
export declare const toList: (bitfield: bigint) => ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "SendMessages" | "SendTTSMessages" | "ManageMessages" | "EmbedLinks" | "AttachFiles" | "ReadMessageHistory" | "MentionEveryone" | "UseExternalEmojis" | "ViewGuildInsights" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "UseVAD" | "ChangeNickname" | "ManageNicknames" | "ManageRoles" | "ManageWebhooks" | "ManageEmojisAndStickers" | "ManageGuildExpressions" | "UseApplicationCommands" | "RequestToSpeak" | "ManageEvents" | "ManageThreads" | "CreatePublicThreads" | "CreatePrivateThreads" | "UseExternalStickers" | "SendMessagesInThreads" | "UseEmbeddedActivities" | "ModerateMembers" | "ViewCreatorMonetizationAnalytics" | "UseSoundboard" | "CreateGuildExpressions" | "CreateEvents" | "UseExternalSounds" | "SendVoiceMessages" | "SendPolls" | "UseExternalApps")[];
|
|
15
15
|
/**
|
|
16
16
|
* Convert a list of flag names to a bitfield.
|
|
17
17
|
*/
|
|
18
|
-
export declare const fromList: (list: ("
|
|
18
|
+
export declare const fromList: (list: ("CreateInstantInvite" | "KickMembers" | "BanMembers" | "Administrator" | "ManageChannels" | "ManageGuild" | "AddReactions" | "ViewAuditLog" | "PrioritySpeaker" | "Stream" | "ViewChannel" | "SendMessages" | "SendTTSMessages" | "ManageMessages" | "EmbedLinks" | "AttachFiles" | "ReadMessageHistory" | "MentionEveryone" | "UseExternalEmojis" | "ViewGuildInsights" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "UseVAD" | "ChangeNickname" | "ManageNicknames" | "ManageRoles" | "ManageWebhooks" | "ManageEmojisAndStickers" | "ManageGuildExpressions" | "UseApplicationCommands" | "RequestToSpeak" | "ManageEvents" | "ManageThreads" | "CreatePublicThreads" | "CreatePrivateThreads" | "UseExternalStickers" | "SendMessagesInThreads" | "UseEmbeddedActivities" | "ModerateMembers" | "ViewCreatorMonetizationAnalytics" | "UseSoundboard" | "CreateGuildExpressions" | "CreateEvents" | "UseExternalSounds" | "SendVoiceMessages" | "SendPolls" | "UseExternalApps")[]) => bigint;
|
|
19
19
|
/**
|
|
20
20
|
* Reduce a list of roles to a bitfield of all the permissions added together.
|
|
21
21
|
*/
|
|
@@ -10,35 +10,35 @@ export declare class GlobalApplicationCommand<R, E> {
|
|
|
10
10
|
readonly _tag = "GlobalApplicationCommand";
|
|
11
11
|
constructor(command: Discord.ApplicationCommandCreateRequest, handle: CommandHandler<R, E>);
|
|
12
12
|
}
|
|
13
|
-
export declare const global: <R, E, const A extends Discord.ApplicationCommandCreateRequest>(command: A, handle: CommandHandler<R, E, A>) => GlobalApplicationCommand<Exclude<R,
|
|
13
|
+
export declare const global: <R, E, const A extends Discord.ApplicationCommandCreateRequest>(command: A, handle: CommandHandler<R, E, A>) => GlobalApplicationCommand<Exclude<R, DiscordInteraction | DiscordApplicationCommand | Scope>, E>;
|
|
14
14
|
export declare class GuildApplicationCommand<R, E> {
|
|
15
15
|
readonly command: Discord.ApplicationCommandCreateRequest;
|
|
16
16
|
readonly handle: CommandHandler<R, E>;
|
|
17
17
|
readonly _tag = "GuildApplicationCommand";
|
|
18
18
|
constructor(command: Discord.ApplicationCommandCreateRequest, handle: CommandHandler<R, E>);
|
|
19
19
|
}
|
|
20
|
-
export declare const guild: <R, E, const A extends Discord.ApplicationCommandCreateRequest>(command: A, handle: CommandHandler<R, E, A>) => GuildApplicationCommand<Exclude<R,
|
|
20
|
+
export declare const guild: <R, E, const A extends Discord.ApplicationCommandCreateRequest>(command: A, handle: CommandHandler<R, E, A>) => GuildApplicationCommand<Exclude<R, DiscordInteraction | DiscordApplicationCommand | Scope>, E>;
|
|
21
21
|
export declare class MessageComponent<R, E> {
|
|
22
22
|
readonly predicate: (customId: string) => boolean;
|
|
23
23
|
readonly handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>;
|
|
24
24
|
readonly _tag = "MessageComponent";
|
|
25
25
|
constructor(predicate: (customId: string) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>);
|
|
26
26
|
}
|
|
27
|
-
export declare const messageComponent: <R, E>(pred: (customId: string) => boolean, handle: CommandHandler<R, E, Discord.CreateInteractionResponseRequest>) => MessageComponent<Exclude<R,
|
|
27
|
+
export declare const messageComponent: <R, E>(pred: (customId: string) => boolean, handle: CommandHandler<R, E, Discord.CreateInteractionResponseRequest>) => MessageComponent<Exclude<R, DiscordInteraction | Scope | DiscordMessageComponent>, E>;
|
|
28
28
|
export declare class ModalSubmit<R, E> {
|
|
29
29
|
readonly predicate: (customId: string) => boolean;
|
|
30
30
|
readonly handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>;
|
|
31
31
|
readonly _tag = "ModalSubmit";
|
|
32
32
|
constructor(predicate: (customId: string) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>);
|
|
33
33
|
}
|
|
34
|
-
export declare const modalSubmit: <R, E>(pred: (customId: string) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>) => ModalSubmit<Exclude<R,
|
|
34
|
+
export declare const modalSubmit: <R, E>(pred: (customId: string) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>) => ModalSubmit<Exclude<R, DiscordInteraction | Scope | DiscordModalSubmit>, E>;
|
|
35
35
|
export declare class Autocomplete<R, E> {
|
|
36
36
|
readonly predicate: (data: Discord.APIApplicationCommandInteraction["data"], focusedOption: Discord.APIApplicationCommandInteractionDataOption) => boolean;
|
|
37
37
|
readonly handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>;
|
|
38
38
|
readonly _tag = "Autocomplete";
|
|
39
39
|
constructor(predicate: (data: Discord.APIApplicationCommandInteraction["data"], focusedOption: Discord.APIApplicationCommandInteractionDataOption) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>);
|
|
40
40
|
}
|
|
41
|
-
export declare const autocomplete: <R, E>(pred: (data: Discord.APIApplicationCommandInteraction["data"], focusedOption: Discord.APIApplicationCommandInteractionDataOption) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>) => Autocomplete<Exclude<R,
|
|
41
|
+
export declare const autocomplete: <R, E>(pred: (data: Discord.APIApplicationCommandInteraction["data"], focusedOption: Discord.APIApplicationCommandInteractionDataOption) => boolean, handle: Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>) => Autocomplete<Exclude<R, DiscordInteraction | DiscordApplicationCommand | Scope | DiscordFocusedOption>, E>;
|
|
42
42
|
export type CommandHandler<R, E, A = any> = Effect.Effect<Discord.CreateInteractionResponseRequest, E, R> | CommandHandlerFn<R, E, A>;
|
|
43
43
|
export type CommandHandlerFn<R, E, A> = (i: CommandHelper<A>) => Effect.Effect<Discord.CreateInteractionResponseRequest, E, R>;
|
|
44
44
|
//# sourceMappingURL=definitions.d.ts.map
|
package/mjs/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.
|
|
1
|
+
export const LIB_VERSION = "0.122.0";
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.122.0",
|
|
4
4
|
"description": "Effect-TS discord library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"sideEffects": [],
|
|
36
36
|
"author": "Tim Smart <hello@timsmart.co>",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"discord-api-types": "^0.38.
|
|
38
|
+
"discord-api-types": "^0.38.13"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@effect/platform": "^0.
|
|
41
|
+
"@effect/platform": "^0.87",
|
|
42
42
|
"effect": "^3.16"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"discord-verify": "^1.2.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "572ddf8f2030c22052c43f4fec5cdb8920970f79",
|
|
48
48
|
"main": "./index.js"
|
|
49
49
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.
|
|
1
|
+
export const LIB_VERSION = "0.122.0";
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "0.
|
|
1
|
+
export declare const LIB_VERSION = "0.122.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED