dfx 1.0.11 → 1.0.12

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.
Files changed (77) hide show
  1. package/dist/DiscordConfig.d.ts +2 -2
  2. package/dist/DiscordConfig.d.ts.map +1 -1
  3. package/dist/DiscordConfig.js +2 -2
  4. package/dist/DiscordConfig.js.map +1 -1
  5. package/dist/DiscordGateway/DiscordWS.d.ts +3 -3
  6. package/dist/DiscordGateway/DiscordWS.d.ts.map +1 -1
  7. package/dist/DiscordGateway/DiscordWS.js +3 -3
  8. package/dist/DiscordGateway/DiscordWS.js.map +1 -1
  9. package/dist/DiscordGateway/Messaging.d.ts +2 -2
  10. package/dist/DiscordGateway/Messaging.d.ts.map +1 -1
  11. package/dist/DiscordGateway/Messaging.js +2 -2
  12. package/dist/DiscordGateway/Messaging.js.map +1 -1
  13. package/dist/DiscordGateway/Shard/StateStore.d.ts +2 -2
  14. package/dist/DiscordGateway/Shard/StateStore.d.ts.map +1 -1
  15. package/dist/DiscordGateway/Shard/StateStore.js +2 -2
  16. package/dist/DiscordGateway/Shard/StateStore.js.map +1 -1
  17. package/dist/DiscordGateway/Shard.d.ts +2 -2
  18. package/dist/DiscordGateway/Shard.d.ts.map +1 -1
  19. package/dist/DiscordGateway/Shard.js +2 -2
  20. package/dist/DiscordGateway/Shard.js.map +1 -1
  21. package/dist/DiscordGateway/ShardStore.d.ts +2 -2
  22. package/dist/DiscordGateway/ShardStore.d.ts.map +1 -1
  23. package/dist/DiscordGateway/ShardStore.js +2 -2
  24. package/dist/DiscordGateway/ShardStore.js.map +1 -1
  25. package/dist/DiscordGateway/Sharder.d.ts +2 -2
  26. package/dist/DiscordGateway/Sharder.d.ts.map +1 -1
  27. package/dist/DiscordGateway/Sharder.js +2 -2
  28. package/dist/DiscordGateway/Sharder.js.map +1 -1
  29. package/dist/DiscordGateway.d.ts +2 -2
  30. package/dist/DiscordGateway.d.ts.map +1 -1
  31. package/dist/DiscordGateway.js +2 -2
  32. package/dist/DiscordGateway.js.map +1 -1
  33. package/dist/DiscordREST/Generated.d.ts +544 -58
  34. package/dist/DiscordREST/Generated.d.ts.map +1 -1
  35. package/dist/DiscordREST/Generated.js +377 -0
  36. package/dist/DiscordREST/Generated.js.map +1 -1
  37. package/dist/DiscordREST.d.ts +3 -3
  38. package/dist/DiscordREST.d.ts.map +1 -1
  39. package/dist/DiscordREST.js +4 -4
  40. package/dist/DiscordREST.js.map +1 -1
  41. package/dist/Interactions/context.d.ts +7 -7
  42. package/dist/Interactions/context.d.ts.map +1 -1
  43. package/dist/Interactions/context.js +7 -7
  44. package/dist/Interactions/context.js.map +1 -1
  45. package/dist/Interactions/gateway.d.ts +3 -3
  46. package/dist/Interactions/gateway.d.ts.map +1 -1
  47. package/dist/Interactions/gateway.js +3 -3
  48. package/dist/Interactions/gateway.js.map +1 -1
  49. package/dist/Interactions/webhook.d.ts +2 -2
  50. package/dist/Interactions/webhook.d.ts.map +1 -1
  51. package/dist/Interactions/webhook.js +2 -2
  52. package/dist/Interactions/webhook.js.map +1 -1
  53. package/dist/RateLimit.d.ts +3 -3
  54. package/dist/RateLimit.d.ts.map +1 -1
  55. package/dist/RateLimit.js +3 -3
  56. package/dist/RateLimit.js.map +1 -1
  57. package/dist/utils/Effect.js +1 -1
  58. package/dist/utils/Effect.js.map +1 -1
  59. package/dist/version.d.ts +1 -1
  60. package/dist/version.js +1 -1
  61. package/package.json +5 -5
  62. package/src/DiscordConfig.ts +2 -2
  63. package/src/DiscordGateway/DiscordWS.ts +3 -3
  64. package/src/DiscordGateway/Messaging.ts +2 -2
  65. package/src/DiscordGateway/Shard/StateStore.ts +2 -2
  66. package/src/DiscordGateway/Shard.ts +2 -2
  67. package/src/DiscordGateway/ShardStore.ts +2 -2
  68. package/src/DiscordGateway/Sharder.ts +2 -2
  69. package/src/DiscordGateway.ts +2 -2
  70. package/src/DiscordREST/Generated.ts +650 -62
  71. package/src/DiscordREST.ts +4 -4
  72. package/src/Interactions/context.ts +7 -7
  73. package/src/Interactions/gateway.ts +3 -3
  74. package/src/Interactions/webhook.ts +2 -2
  75. package/src/RateLimit.ts +3 -3
  76. package/src/utils/Effect.ts +1 -1
  77. package/src/version.ts +1 -1
@@ -185,6 +185,277 @@ export interface ApplicationOAuth2InstallParamsResponse {
185
185
  readonly scopes: ReadonlyArray<"applications.commands" | "bot">;
186
186
  readonly permissions: string;
187
187
  }
188
+ export declare const ApplicationEventWebhooksStatus: {
189
+ /**
190
+ * Webhook events are disabled by developer
191
+ */
192
+ readonly DISABLED: 1;
193
+ /**
194
+ * Webhook events are enabled by developer
195
+ */
196
+ readonly ENABLED: 2;
197
+ /**
198
+ * Webhook events are disabled by Discord, usually due to inactivity
199
+ */
200
+ readonly DISABLED_BY_DISCORD: 3;
201
+ };
202
+ export type ApplicationEventWebhooksStatus = (typeof ApplicationEventWebhooksStatus)[keyof typeof ApplicationEventWebhooksStatus];
203
+ export declare const ActionTypes: {
204
+ /**
205
+ * User started typing in a channel
206
+ */
207
+ readonly TYPING_START: "TYPING_START";
208
+ /**
209
+ * Invite to a channel was created
210
+ */
211
+ readonly INVITE_CREATE: "INVITE_CREATE";
212
+ /**
213
+ * Invite to a channel was deleted
214
+ */
215
+ readonly INVITE_DELETE: "INVITE_DELETE";
216
+ /**
217
+ * Guild channel webhook was created, updated, or deleted
218
+ */
219
+ readonly WEBHOOKS_UPDATE: "WEBHOOKS_UPDATE";
220
+ /**
221
+ * New guild channel created
222
+ */
223
+ readonly CHANNEL_CREATE: "CHANNEL_CREATE";
224
+ /**
225
+ * Voice channel status was updated
226
+ */
227
+ readonly VOICE_CHANNEL_STATUS_UPDATE: "VOICE_CHANNEL_STATUS_UPDATE";
228
+ /**
229
+ * Channel was updated
230
+ */
231
+ readonly CHANNEL_UPDATE: "CHANNEL_UPDATE";
232
+ /**
233
+ * Channel was deleted
234
+ */
235
+ readonly CHANNEL_DELETE: "CHANNEL_DELETE";
236
+ /**
237
+ * Message was pinned or unpinned
238
+ */
239
+ readonly CHANNEL_PINS_UPDATE: "CHANNEL_PINS_UPDATE";
240
+ /**
241
+ * Thread created, also sent when being added to a private thread
242
+ */
243
+ readonly THREAD_CREATE: "THREAD_CREATE";
244
+ /**
245
+ * Thread was updated
246
+ */
247
+ readonly THREAD_UPDATE: "THREAD_UPDATE";
248
+ /**
249
+ * Thread was deleted
250
+ */
251
+ readonly THREAD_DELETE: "THREAD_DELETE";
252
+ /**
253
+ * Sent when gaining access to a channel, contains all active threads in that channel
254
+ */
255
+ readonly THREAD_LIST_SYNC: "THREAD_LIST_SYNC";
256
+ /**
257
+ * Thread member for the current user was updated
258
+ */
259
+ readonly THREAD_MEMBER_UPDATE: "THREAD_MEMBER_UPDATE";
260
+ /**
261
+ * Some user(s) were added to or removed from a thread
262
+ */
263
+ readonly THREAD_MEMBERS_UPDATE: "THREAD_MEMBERS_UPDATE";
264
+ /**
265
+ * Lazy-load for unavailable guild, guild became available, or user joined a new guild
266
+ */
267
+ readonly GUILD_CREATE: "GUILD_CREATE";
268
+ /**
269
+ * Guild was updated
270
+ */
271
+ readonly GUILD_UPDATE: "GUILD_UPDATE";
272
+ /**
273
+ * Guild became unavailable, or user left/was removed from a guild
274
+ */
275
+ readonly GUILD_DELETE: "GUILD_DELETE";
276
+ /**
277
+ * Guild emojis were updated
278
+ */
279
+ readonly GUILD_EMOJIS_UPDATE: "GUILD_EMOJIS_UPDATE";
280
+ /**
281
+ * Guild stickers were updated
282
+ */
283
+ readonly GUILD_STICKERS_UPDATE: "GUILD_STICKERS_UPDATE";
284
+ /**
285
+ * Guild integration was updated
286
+ */
287
+ readonly GUILD_INTEGRATIONS_UPDATE: "GUILD_INTEGRATIONS_UPDATE";
288
+ /**
289
+ * New user joined a guild
290
+ */
291
+ readonly GUILD_MEMBER_ADD: "GUILD_MEMBER_ADD";
292
+ /**
293
+ * Guild member was updated
294
+ */
295
+ readonly GUILD_MEMBER_UPDATE: "GUILD_MEMBER_UPDATE";
296
+ /**
297
+ * User was removed from a guild
298
+ */
299
+ readonly GUILD_MEMBER_REMOVE: "GUILD_MEMBER_REMOVE";
300
+ /**
301
+ * User was banned from a guild
302
+ */
303
+ readonly GUILD_BAN_ADD: "GUILD_BAN_ADD";
304
+ /**
305
+ * User was unbanned from a guild
306
+ */
307
+ readonly GUILD_BAN_REMOVE: "GUILD_BAN_REMOVE";
308
+ /**
309
+ * Guild role was created
310
+ */
311
+ readonly GUILD_ROLE_CREATE: "GUILD_ROLE_CREATE";
312
+ /**
313
+ * Guild role was updated
314
+ */
315
+ readonly GUILD_ROLE_UPDATE: "GUILD_ROLE_UPDATE";
316
+ /**
317
+ * Guild role was deleted
318
+ */
319
+ readonly GUILD_ROLE_DELETE: "GUILD_ROLE_DELETE";
320
+ /**
321
+ * Response to Request Guild Members
322
+ */
323
+ readonly GUILD_MEMBERS_CHUNK: "GUILD_MEMBERS_CHUNK";
324
+ /**
325
+ * Message was created
326
+ */
327
+ readonly MESSAGE_CREATE: "MESSAGE_CREATE";
328
+ /**
329
+ * Message was edited
330
+ */
331
+ readonly MESSAGE_UPDATE: "MESSAGE_UPDATE";
332
+ /**
333
+ * Message was deleted
334
+ */
335
+ readonly MESSAGE_DELETE: "MESSAGE_DELETE";
336
+ /**
337
+ * Multiple messages were deleted at once
338
+ */
339
+ readonly MESSAGE_DELETE_BULK: "MESSAGE_DELETE_BULK";
340
+ /**
341
+ * User reacted to a message
342
+ */
343
+ readonly MESSAGE_REACTION_ADD: "MESSAGE_REACTION_ADD";
344
+ /**
345
+ * User removed a reaction from a message
346
+ */
347
+ readonly MESSAGE_REACTION_REMOVE: "MESSAGE_REACTION_REMOVE";
348
+ /**
349
+ * All reactions were explicitly removed from a message
350
+ */
351
+ readonly MESSAGE_REACTION_REMOVE_ALL: "MESSAGE_REACTION_REMOVE_ALL";
352
+ /**
353
+ * All reactions for a given emoji were explicitly removed from a message
354
+ */
355
+ readonly MESSAGE_REACTION_REMOVE_EMOJI: "MESSAGE_REACTION_REMOVE_EMOJI";
356
+ /**
357
+ * Properties about the user changed
358
+ */
359
+ readonly USER_UPDATE: "USER_UPDATE";
360
+ /**
361
+ * Contains the initial state information
362
+ */
363
+ readonly READY: "READY";
364
+ /**
365
+ * Response to Resume
366
+ */
367
+ readonly RESUMED: "RESUMED";
368
+ /**
369
+ * User was updated
370
+ */
371
+ readonly PRESENCE_UPDATE: "PRESENCE_UPDATE";
372
+ /**
373
+ * Someone joined, left, or moved a voice channel
374
+ */
375
+ readonly VOICE_STATE_UPDATE: "VOICE_STATE_UPDATE";
376
+ /**
377
+ * Guild's voice server was updated
378
+ */
379
+ readonly VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE";
380
+ /**
381
+ * User used an interaction, such as an Application Command
382
+ */
383
+ readonly INTERACTION_CREATE: "INTERACTION_CREATE";
384
+ /**
385
+ * Guild integration was created
386
+ */
387
+ readonly INTEGRATION_CREATE: "INTEGRATION_CREATE";
388
+ /**
389
+ * Guild integration was updated
390
+ */
391
+ readonly INTEGRATION_UPDATE: "INTEGRATION_UPDATE";
392
+ /**
393
+ * Guild integration was deleted
394
+ */
395
+ readonly INTEGRATION_DELETE: "INTEGRATION_DELETE";
396
+ /**
397
+ * Application command permission was updated
398
+ */
399
+ readonly APPLICATION_COMMAND_PERMISSIONS_UPDATE: "APPLICATION_COMMAND_PERMISSIONS_UPDATE";
400
+ /**
401
+ * Stage instance was created
402
+ */
403
+ readonly STAGE_INSTANCE_CREATE: "STAGE_INSTANCE_CREATE";
404
+ /**
405
+ * Stage instance was updated
406
+ */
407
+ readonly STAGE_INSTANCE_UPDATE: "STAGE_INSTANCE_UPDATE";
408
+ /**
409
+ * Stage instance was deleted or closed
410
+ */
411
+ readonly STAGE_INSTANCE_DELETE: "STAGE_INSTANCE_DELETE";
412
+ /**
413
+ * A guild audit log entry was created
414
+ */
415
+ readonly GUILD_AUDIT_LOG_ENTRY_CREATE: "GUILD_AUDIT_LOG_ENTRY_CREATE";
416
+ /**
417
+ * Guild scheduled event was created
418
+ */
419
+ readonly GUILD_SCHEDULED_EVENT_CREATE: "GUILD_SCHEDULED_EVENT_CREATE";
420
+ /**
421
+ * Guild scheduled event was updated
422
+ */
423
+ readonly GUILD_SCHEDULED_EVENT_UPDATE: "GUILD_SCHEDULED_EVENT_UPDATE";
424
+ /**
425
+ * Guild scheduled event was deleted
426
+ */
427
+ readonly GUILD_SCHEDULED_EVENT_DELETE: "GUILD_SCHEDULED_EVENT_DELETE";
428
+ /**
429
+ * User subscribed to a guild scheduled event
430
+ */
431
+ readonly GUILD_SCHEDULED_EVENT_USER_ADD: "GUILD_SCHEDULED_EVENT_USER_ADD";
432
+ /**
433
+ * User unsubscribed from a guild scheduled event
434
+ */
435
+ readonly GUILD_SCHEDULED_EVENT_USER_REMOVE: "GUILD_SCHEDULED_EVENT_USER_REMOVE";
436
+ /**
437
+ * Auto Moderation rule was created
438
+ */
439
+ readonly AUTO_MODERATION_RULE_CREATE: "AUTO_MODERATION_RULE_CREATE";
440
+ /**
441
+ * Auto Moderation rule was updated
442
+ */
443
+ readonly AUTO_MODERATION_RULE_UPDATE: "AUTO_MODERATION_RULE_UPDATE";
444
+ /**
445
+ * Auto Moderation rule was deleted
446
+ */
447
+ readonly AUTO_MODERATION_RULE_DELETE: "AUTO_MODERATION_RULE_DELETE";
448
+ /**
449
+ * Auto Moderation rule was triggered and an action was executed (.e.g. a message was blocked)
450
+ */
451
+ readonly AUTO_MODERATION_ACTION_EXECUTION: "AUTO_MODERATION_ACTION_EXECUTION";
452
+ readonly GUILD_SOUNDBOARD_SOUNDS_UPDATE: "GUILD_SOUNDBOARD_SOUNDS_UPDATE";
453
+ readonly GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE";
454
+ readonly GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE";
455
+ readonly GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE";
456
+ readonly RATE_LIMITED: "RATE_LIMITED";
457
+ };
458
+ export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes];
188
459
  export declare const ApplicationExplicitContentFilterTypes: {
189
460
  /**
190
461
  * inherit guild content filter setting
@@ -207,10 +478,27 @@ export declare const TeamMembershipStates: {
207
478
  readonly ACCEPTED: 2;
208
479
  };
209
480
  export type TeamMembershipStates = (typeof TeamMembershipStates)[keyof typeof TeamMembershipStates];
481
+ export declare const TeamMemberRoles: {
482
+ /**
483
+ * Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps.
484
+ */
485
+ readonly ADMIN: "admin";
486
+ /**
487
+ * Developers can access information about team-owned apps, like the client secret or public key. They can also take limited actions on team-owned apps, like configuring interaction endpoints or resetting the bot token. Members with the Developer role cannot manage the team or its members, or take destructive actions on team-owned apps.
488
+ */
489
+ readonly DEVELOPER: "developer";
490
+ /**
491
+ * Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. Members can also invite bots associated with team-owned apps that are marked private.
492
+ */
493
+ readonly READ_ONLY: "read_only";
494
+ };
495
+ export type TeamMemberRoles = (typeof TeamMemberRoles)[keyof typeof TeamMemberRoles];
210
496
  export interface TeamMemberResponse {
211
497
  readonly user: UserResponse;
212
498
  readonly team_id: SnowflakeType;
213
499
  readonly membership_state: TeamMembershipStates;
500
+ readonly role: TeamMemberRoles;
501
+ readonly permissions: ReadonlyArray<string>;
214
502
  }
215
503
  export interface TeamResponse {
216
504
  readonly id: SnowflakeType;
@@ -246,9 +534,12 @@ export interface PrivateApplicationResponse {
246
534
  readonly interactions_endpoint_url: string | null;
247
535
  readonly role_connections_verification_url: string | null;
248
536
  readonly owner: UserResponse;
249
- readonly approximate_guild_count: number | null;
537
+ readonly approximate_guild_count: number;
250
538
  readonly approximate_user_install_count: number;
251
539
  readonly approximate_user_authorization_count: number;
540
+ readonly event_webhooks_url?: string | null | undefined;
541
+ readonly event_webhooks_status?: ApplicationEventWebhooksStatus | undefined;
542
+ readonly event_webhooks_types?: ReadonlyArray<any> | undefined;
252
543
  readonly explicit_content_filter: ApplicationExplicitContentFilterTypes;
253
544
  readonly team: TeamResponse | null;
254
545
  }
@@ -329,6 +620,9 @@ export interface ApplicationFormPartial {
329
620
  readonly install_params?: ApplicationOAuth2InstallParams | null | undefined;
330
621
  readonly role_connections_verification_url?: string | null | undefined;
331
622
  readonly integration_types_config?: Record<string, unknown> | null | undefined;
623
+ readonly event_webhooks_status?: 1 | 2 | null | undefined;
624
+ readonly event_webhooks_url?: string | null | undefined;
625
+ readonly event_webhooks_types?: ReadonlyArray<string> | null | undefined;
332
626
  }
333
627
  export declare const EmbeddedActivityLocationKind: {
334
628
  /**
@@ -390,6 +684,14 @@ export interface ApplicationResponse {
390
684
  readonly max_participants?: number | null | undefined;
391
685
  readonly tags?: ReadonlyArray<string> | undefined;
392
686
  }
687
+ export interface ClipSpeakingEventResponse {
688
+ readonly user_id: SnowflakeType;
689
+ readonly speaking_flags: number;
690
+ }
691
+ export interface ClipEventTimelineEntryResponse {
692
+ readonly timestamp_ms: number;
693
+ readonly speaking?: ClipSpeakingEventResponse | undefined;
694
+ }
393
695
  export interface AttachmentResponse {
394
696
  readonly id: SnowflakeType;
395
697
  readonly filename: string;
@@ -403,10 +705,14 @@ export interface AttachmentResponse {
403
705
  readonly description?: string | undefined;
404
706
  readonly content_type?: string | undefined;
405
707
  readonly ephemeral?: boolean | undefined;
708
+ readonly flags?: number | undefined;
709
+ readonly placeholder?: string | undefined;
710
+ readonly placeholder_version?: number | undefined;
406
711
  readonly title?: string | null | undefined;
407
712
  readonly application?: ApplicationResponse | undefined;
408
713
  readonly clip_created_at?: string | undefined;
409
714
  readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
715
+ readonly clip_events_timeline?: ReadonlyArray<ClipEventTimelineEntryResponse> | undefined;
410
716
  }
411
717
  export interface ActivitiesAttachmentResponse {
412
718
  readonly attachment: AttachmentResponse;
@@ -934,16 +1240,16 @@ export interface EntitlementResponse {
934
1240
  readonly user_id: SnowflakeType;
935
1241
  readonly guild_id?: SnowflakeType | null | undefined;
936
1242
  readonly deleted: boolean;
937
- readonly starts_at?: string | null | undefined;
938
- readonly ends_at?: string | null | undefined;
1243
+ readonly starts_at: string | null;
1244
+ readonly ends_at: string | null;
939
1245
  readonly type: EntitlementTypes;
940
1246
  readonly fulfilled_at?: string | null | undefined;
941
1247
  readonly fulfillment_status?: EntitlementTenantFulfillmentStatusResponse | null | undefined;
942
- readonly consumed?: boolean | null | undefined;
1248
+ readonly consumed?: boolean | undefined;
943
1249
  readonly gifter_user_id?: SnowflakeType | null | undefined;
944
1250
  readonly parent_id?: SnowflakeType | null | undefined;
945
1251
  }
946
- export type GetEntitlements200 = ReadonlyArray<null | EntitlementResponse>;
1252
+ export type GetEntitlements200 = ReadonlyArray<EntitlementResponse>;
947
1253
  export type EntitlementOwnerTypes = number;
948
1254
  export interface CreateEntitlementRequestData {
949
1255
  readonly sku_id: SnowflakeType;
@@ -1094,8 +1400,8 @@ export interface ForumTagResponse {
1094
1400
  readonly emoji_name: string | null;
1095
1401
  }
1096
1402
  export interface DefaultReactionEmojiResponse {
1097
- readonly emoji_id?: SnowflakeType | null | undefined;
1098
- readonly emoji_name?: string | null | undefined;
1403
+ readonly emoji_id: SnowflakeType | null;
1404
+ readonly emoji_name: string | null;
1099
1405
  }
1100
1406
  export declare const ThreadSortOrder: {
1101
1407
  /**
@@ -1148,7 +1454,7 @@ export interface GuildChannelResponse {
1148
1454
  readonly user_limit?: number | undefined;
1149
1455
  readonly rtc_region?: string | null | undefined;
1150
1456
  readonly video_quality_mode?: VideoQualityModes | undefined;
1151
- readonly permissions?: string | null | undefined;
1457
+ readonly permissions?: string | undefined;
1152
1458
  readonly topic?: string | null | undefined;
1153
1459
  readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined;
1154
1460
  readonly default_thread_rate_limit_per_user?: number | undefined;
@@ -1158,7 +1464,7 @@ export interface GuildChannelResponse {
1158
1464
  readonly available_tags?: ReadonlyArray<ForumTagResponse> | undefined;
1159
1465
  readonly default_reaction_emoji?: DefaultReactionEmojiResponse | null | undefined;
1160
1466
  readonly default_sort_order?: ThreadSortOrder | null | undefined;
1161
- readonly default_forum_layout?: ForumLayout | null | undefined;
1467
+ readonly default_forum_layout?: ForumLayout | undefined;
1162
1468
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
1163
1469
  readonly hd_streaming_until?: string | undefined;
1164
1470
  readonly hd_streaming_buyer_id?: SnowflakeType | undefined;
@@ -1229,7 +1535,7 @@ export interface ThreadResponse {
1229
1535
  readonly user_limit?: number | undefined;
1230
1536
  readonly rtc_region?: string | null | undefined;
1231
1537
  readonly video_quality_mode?: VideoQualityModes | undefined;
1232
- readonly permissions?: string | null | undefined;
1538
+ readonly permissions?: string | undefined;
1233
1539
  readonly owner_id: SnowflakeType;
1234
1540
  readonly thread_metadata: ThreadMetadataResponse;
1235
1541
  readonly message_count: number;
@@ -1458,6 +1764,10 @@ export declare const GuildFeatures: {
1458
1764
  * guild has enabled the welcome screen
1459
1765
  */
1460
1766
  readonly WELCOME_SCREEN_ENABLED: "WELCOME_SCREEN_ENABLED";
1767
+ /**
1768
+ * guild is an official guild for one or more games
1769
+ */
1770
+ readonly OFFICIAL_GAME_GUILD: "OFFICIAL_GAME_GUILD";
1461
1771
  };
1462
1772
  export type GuildFeatures = (typeof GuildFeatures)[keyof typeof GuildFeatures];
1463
1773
  export declare const VerificationLevels: {
@@ -1686,10 +1996,14 @@ export interface MessageAttachmentResponse {
1686
1996
  readonly description?: string | undefined;
1687
1997
  readonly content_type?: string | undefined;
1688
1998
  readonly ephemeral?: boolean | undefined;
1999
+ readonly flags?: number | undefined;
2000
+ readonly placeholder?: string | undefined;
2001
+ readonly placeholder_version?: number | undefined;
1689
2002
  readonly title?: string | null | undefined;
1690
2003
  readonly application?: ApplicationResponse | undefined;
1691
2004
  readonly clip_created_at?: string | undefined;
1692
2005
  readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
2006
+ readonly clip_events_timeline?: ReadonlyArray<ClipEventTimelineEntryResponse> | undefined;
1693
2007
  }
1694
2008
  export interface MessageEmbedFieldResponse {
1695
2009
  readonly name: string;
@@ -1734,21 +2048,6 @@ export interface MessageEmbedFooterResponse {
1734
2048
  readonly icon_url?: string | undefined;
1735
2049
  readonly proxy_icon_url?: string | undefined;
1736
2050
  }
1737
- export interface MessageEmbedResponse {
1738
- readonly type: string;
1739
- readonly url?: string | undefined;
1740
- readonly title?: string | undefined;
1741
- readonly description?: string | undefined;
1742
- readonly color?: number | undefined;
1743
- readonly timestamp?: string | undefined;
1744
- readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | undefined;
1745
- readonly author?: MessageEmbedAuthorResponse | undefined;
1746
- readonly provider?: MessageEmbedProviderResponse | undefined;
1747
- readonly image?: MessageEmbedImageResponse | undefined;
1748
- readonly thumbnail?: MessageEmbedImageResponse | undefined;
1749
- readonly video?: MessageEmbedVideoResponse | undefined;
1750
- readonly footer?: MessageEmbedFooterResponse | undefined;
1751
- }
1752
2051
  export declare const MessageComponentTypes: {
1753
2052
  /**
1754
2053
  * Container for other components
@@ -1872,8 +2171,8 @@ export interface ChannelSelectComponentResponse {
1872
2171
  readonly id: number;
1873
2172
  readonly custom_id: string;
1874
2173
  readonly placeholder?: string | undefined;
1875
- readonly min_values: number | null;
1876
- readonly max_values: number | null;
2174
+ readonly min_values: number;
2175
+ readonly max_values: number;
1877
2176
  readonly disabled?: boolean | undefined;
1878
2177
  readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined;
1879
2178
  readonly default_values?: ReadonlyArray<ChannelSelectDefaultValueResponse> | undefined;
@@ -1891,8 +2190,8 @@ export interface MentionableSelectComponentResponse {
1891
2190
  readonly id: number;
1892
2191
  readonly custom_id: string;
1893
2192
  readonly placeholder?: string | undefined;
1894
- readonly min_values: number | null;
1895
- readonly max_values: number | null;
2193
+ readonly min_values: number;
2194
+ readonly max_values: number;
1896
2195
  readonly disabled?: boolean | undefined;
1897
2196
  readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse> | undefined;
1898
2197
  }
@@ -1901,8 +2200,8 @@ export interface RoleSelectComponentResponse {
1901
2200
  readonly id: number;
1902
2201
  readonly custom_id: string;
1903
2202
  readonly placeholder?: string | undefined;
1904
- readonly min_values: number | null;
1905
- readonly max_values: number | null;
2203
+ readonly min_values: number;
2204
+ readonly max_values: number;
1906
2205
  readonly disabled?: boolean | undefined;
1907
2206
  readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse> | undefined;
1908
2207
  }
@@ -1918,8 +2217,8 @@ export interface StringSelectComponentResponse {
1918
2217
  readonly id: number;
1919
2218
  readonly custom_id: string;
1920
2219
  readonly placeholder?: string | undefined;
1921
- readonly min_values: number | null;
1922
- readonly max_values: number | null;
2220
+ readonly min_values: number;
2221
+ readonly max_values: number;
1923
2222
  readonly disabled?: boolean | undefined;
1924
2223
  readonly options: ReadonlyArray<StringSelectOptionResponse>;
1925
2224
  }
@@ -1951,8 +2250,8 @@ export interface UserSelectComponentResponse {
1951
2250
  readonly id: number;
1952
2251
  readonly custom_id: string;
1953
2252
  readonly placeholder?: string | undefined;
1954
- readonly min_values: number | null;
1955
- readonly max_values: number | null;
2253
+ readonly min_values: number;
2254
+ readonly max_values: number;
1956
2255
  readonly disabled?: boolean | undefined;
1957
2256
  readonly default_values?: ReadonlyArray<UserSelectDefaultValueResponse> | undefined;
1958
2257
  }
@@ -2030,6 +2329,23 @@ export interface ContainerComponentResponse {
2030
2329
  readonly components: ReadonlyArray<ActionRowComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2031
2330
  readonly spoiler: boolean;
2032
2331
  }
2332
+ export interface MessageEmbedResponse {
2333
+ readonly type: string;
2334
+ readonly url?: string | undefined;
2335
+ readonly title?: string | undefined;
2336
+ readonly description?: string | undefined;
2337
+ readonly color?: number | undefined;
2338
+ readonly timestamp?: string | undefined;
2339
+ readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | undefined;
2340
+ readonly author?: MessageEmbedAuthorResponse | undefined;
2341
+ readonly provider?: MessageEmbedProviderResponse | undefined;
2342
+ readonly image?: MessageEmbedImageResponse | undefined;
2343
+ readonly thumbnail?: MessageEmbedImageResponse | undefined;
2344
+ readonly video?: MessageEmbedVideoResponse | undefined;
2345
+ readonly footer?: MessageEmbedFooterResponse | undefined;
2346
+ readonly flags?: number | null | undefined;
2347
+ readonly components?: ReadonlyArray<ContainerComponentResponse> | undefined;
2348
+ }
2033
2349
  export declare const StickerTypes: {
2034
2350
  /**
2035
2351
  * an official sticker in a pack, part of Nitro or in a removed purchasable pack
@@ -2078,7 +2394,17 @@ export interface MessageCallResponse {
2078
2394
  readonly ended_timestamp?: string | null | undefined;
2079
2395
  readonly participants: ReadonlyArray<SnowflakeType>;
2080
2396
  }
2397
+ export declare const ActivityActionTypes: {
2398
+ readonly JOIN: 1;
2399
+ readonly SPECTATE: 2;
2400
+ readonly LISTEN: 3;
2401
+ readonly JOIN_REQUEST: 5;
2402
+ readonly STREAM_REQUEST: 6;
2403
+ };
2404
+ export type ActivityActionTypes = (typeof ActivityActionTypes)[keyof typeof ActivityActionTypes];
2081
2405
  export interface MessageActivityResponse {
2406
+ readonly type: ActivityActionTypes;
2407
+ readonly party_id?: string | undefined;
2082
2408
  }
2083
2409
  export interface BasicApplicationResponse {
2084
2410
  readonly id: SnowflakeType;
@@ -2296,17 +2622,17 @@ export interface BasicMessageResponse {
2296
2622
  readonly application?: BasicApplicationResponse | undefined;
2297
2623
  readonly application_id?: SnowflakeType | undefined;
2298
2624
  readonly interaction?: MessageInteractionResponse | undefined;
2299
- readonly nonce?: number | string | null | undefined;
2625
+ readonly nonce?: number | string | undefined;
2300
2626
  readonly webhook_id?: SnowflakeType | undefined;
2301
2627
  readonly message_reference?: MessageReferenceResponse | undefined;
2302
2628
  readonly thread?: ThreadResponse | undefined;
2303
- readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | undefined;
2629
+ readonly mention_channels?: ReadonlyArray<MessageMentionChannelResponse> | undefined;
2304
2630
  readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | undefined;
2305
2631
  readonly purchase_notification?: PurchaseNotificationResponse | undefined;
2306
2632
  readonly position?: number | undefined;
2307
2633
  readonly resolved?: ResolvedObjectsResponse | undefined;
2308
2634
  readonly poll?: PollResponse | undefined;
2309
- readonly shared_client_theme?: CustomClientThemeResponse | null | undefined;
2635
+ readonly shared_client_theme?: CustomClientThemeResponse | undefined;
2310
2636
  readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
2311
2637
  readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
2312
2638
  }
@@ -2334,17 +2660,17 @@ export interface MessageResponse {
2334
2660
  readonly application?: BasicApplicationResponse | undefined;
2335
2661
  readonly application_id?: SnowflakeType | undefined;
2336
2662
  readonly interaction?: MessageInteractionResponse | undefined;
2337
- readonly nonce?: number | string | null | undefined;
2663
+ readonly nonce?: number | string | undefined;
2338
2664
  readonly webhook_id?: SnowflakeType | undefined;
2339
2665
  readonly message_reference?: MessageReferenceResponse | undefined;
2340
2666
  readonly thread?: ThreadResponse | undefined;
2341
- readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | undefined;
2667
+ readonly mention_channels?: ReadonlyArray<MessageMentionChannelResponse> | undefined;
2342
2668
  readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | undefined;
2343
2669
  readonly purchase_notification?: PurchaseNotificationResponse | undefined;
2344
2670
  readonly position?: number | undefined;
2345
2671
  readonly resolved?: ResolvedObjectsResponse | undefined;
2346
2672
  readonly poll?: PollResponse | undefined;
2347
- readonly shared_client_theme?: CustomClientThemeResponse | null | undefined;
2673
+ readonly shared_client_theme?: CustomClientThemeResponse | undefined;
2348
2674
  readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
2349
2675
  readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
2350
2676
  readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
@@ -2762,7 +3088,7 @@ export interface CreatedThreadResponse {
2762
3088
  readonly user_limit?: number | undefined;
2763
3089
  readonly rtc_region?: string | null | undefined;
2764
3090
  readonly video_quality_mode?: VideoQualityModes | undefined;
2765
- readonly permissions?: string | null | undefined;
3091
+ readonly permissions?: string | undefined;
2766
3092
  readonly owner_id: SnowflakeType;
2767
3093
  readonly thread_metadata: ThreadMetadataResponse;
2768
3094
  readonly message_count: number;
@@ -2823,6 +3149,12 @@ export interface ListMyPrivateArchivedThreadsParams {
2823
3149
  readonly before?: SnowflakeType | undefined;
2824
3150
  readonly limit?: number | undefined;
2825
3151
  }
3152
+ export interface UpdateVoiceChannelStatusRequest {
3153
+ /**
3154
+ * The new voice channel status
3155
+ */
3156
+ readonly status?: string | null | undefined;
3157
+ }
2826
3158
  export declare const WebhookTypes: {
2827
3159
  /**
2828
3160
  * Incoming Webhooks can post messages to channels with a generated token
@@ -3110,7 +3442,7 @@ export interface GuildTemplateChannelResponse {
3110
3442
  readonly rate_limit_per_user: number;
3111
3443
  readonly parent_id: SnowflakeType | null;
3112
3444
  readonly default_auto_archive_duration: ThreadAutoArchiveDuration | null;
3113
- readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>;
3445
+ readonly permission_overwrites: ReadonlyArray<ChannelPermissionOverwriteResponse>;
3114
3446
  readonly available_tags: ReadonlyArray<GuildTemplateChannelTags> | null;
3115
3447
  readonly template: string;
3116
3448
  readonly default_reaction_emoji: DefaultReactionEmojiResponse | null;
@@ -3206,6 +3538,10 @@ export declare const PremiumGuildTiers: {
3206
3538
  readonly TIER_3: 3;
3207
3539
  };
3208
3540
  export type PremiumGuildTiers = (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers];
3541
+ export interface GuildIncidentsDataResponse {
3542
+ readonly invites_disabled_until: string | null;
3543
+ readonly dms_disabled_until: string | null;
3544
+ }
3209
3545
  export interface GuildWithCountsResponse {
3210
3546
  readonly id: SnowflakeType;
3211
3547
  readonly name: string;
@@ -3247,6 +3583,7 @@ export interface GuildWithCountsResponse {
3247
3583
  readonly nsfw_level: GuildNSFWContentLevel;
3248
3584
  readonly emojis: ReadonlyArray<EmojiResponse>;
3249
3585
  readonly stickers: ReadonlyArray<GuildStickerResponse>;
3586
+ readonly incidents_data: GuildIncidentsDataResponse | null;
3250
3587
  readonly approximate_member_count?: number | null | undefined;
3251
3588
  readonly approximate_presence_count?: number | null | undefined;
3252
3589
  }
@@ -3314,6 +3651,7 @@ export interface GuildResponse {
3314
3651
  readonly nsfw_level: GuildNSFWContentLevel;
3315
3652
  readonly emojis: ReadonlyArray<EmojiResponse>;
3316
3653
  readonly stickers: ReadonlyArray<GuildStickerResponse>;
3654
+ readonly incidents_data: GuildIncidentsDataResponse | null;
3317
3655
  }
3318
3656
  export declare const AuditLogActionTypes: {
3319
3657
  readonly GUILD_UPDATE: 1;
@@ -4017,6 +4355,130 @@ export interface UpdateGuildMemberRequest {
4017
4355
  readonly communication_disabled_until?: string | null | undefined;
4018
4356
  readonly flags?: number | null | undefined;
4019
4357
  }
4358
+ export declare const SortingMode: {
4359
+ readonly RELEVANCE: "relevance";
4360
+ readonly TIMESTAMP: "timestamp";
4361
+ };
4362
+ export type SortingMode = (typeof SortingMode)[keyof typeof SortingMode];
4363
+ export declare const AuthorType: {
4364
+ readonly USER: "user";
4365
+ readonly BOT: "bot";
4366
+ readonly WEBHOOK: "webhook";
4367
+ readonly NO_USER: "-user";
4368
+ readonly NO_BOT: "-bot";
4369
+ readonly NO_WEBHOOK: "-webhook";
4370
+ };
4371
+ export type AuthorType = (typeof AuthorType)[keyof typeof AuthorType];
4372
+ export declare const HasOption: {
4373
+ readonly LINK: "link";
4374
+ readonly EMBED: "embed";
4375
+ readonly FILE: "file";
4376
+ readonly IMAGE: "image";
4377
+ readonly VIDEO: "video";
4378
+ readonly SOUND: "sound";
4379
+ readonly STICKER: "sticker";
4380
+ readonly POLL: "poll";
4381
+ readonly SNAPSHOT: "snapshot";
4382
+ readonly NO_LINK: "-link";
4383
+ readonly NO_EMBED: "-embed";
4384
+ readonly NO_FILE: "-file";
4385
+ readonly NO_IMAGE: "-image";
4386
+ readonly NO_VIDEO: "-video";
4387
+ readonly NO_SOUND: "-sound";
4388
+ readonly NO_STICKER: "-sticker";
4389
+ readonly NO_POLL: "-poll";
4390
+ readonly NO_SNAPSHOT: "-snapshot";
4391
+ };
4392
+ export type HasOption = (typeof HasOption)[keyof typeof HasOption];
4393
+ export declare const SearchableEmbedType: {
4394
+ readonly IMAGE: "image";
4395
+ readonly VIDEO: "video";
4396
+ readonly GIFV: "gif";
4397
+ readonly SOUND: "sound";
4398
+ readonly ARTICLE: "article";
4399
+ };
4400
+ export type SearchableEmbedType = (typeof SearchableEmbedType)[keyof typeof SearchableEmbedType];
4401
+ export interface GuildSearchParams {
4402
+ readonly sort_by?: SortingMode | undefined;
4403
+ readonly sort_order?: SortingOrder | undefined;
4404
+ readonly content?: string | undefined;
4405
+ readonly slop?: number | undefined;
4406
+ readonly author_id?: ReadonlyArray<SnowflakeType> | undefined;
4407
+ readonly author_type?: ReadonlyArray<AuthorType> | undefined;
4408
+ readonly mentions?: ReadonlyArray<SnowflakeType> | undefined;
4409
+ readonly mentions_role_id?: ReadonlyArray<SnowflakeType> | undefined;
4410
+ readonly replied_to_user_id?: ReadonlyArray<SnowflakeType> | undefined;
4411
+ readonly replied_to_message_id?: ReadonlyArray<SnowflakeType> | undefined;
4412
+ readonly mention_everyone?: boolean | undefined;
4413
+ readonly min_id?: SnowflakeType | undefined;
4414
+ readonly max_id?: SnowflakeType | undefined;
4415
+ readonly limit?: number | undefined;
4416
+ readonly offset?: number | undefined;
4417
+ readonly has?: ReadonlyArray<HasOption> | undefined;
4418
+ readonly link_hostname?: ReadonlyArray<string> | undefined;
4419
+ readonly embed_provider?: ReadonlyArray<string> | undefined;
4420
+ readonly embed_type?: ReadonlyArray<SearchableEmbedType> | undefined;
4421
+ readonly attachment_extension?: ReadonlyArray<string> | undefined;
4422
+ readonly attachment_filename?: ReadonlyArray<string> | undefined;
4423
+ readonly pinned?: boolean | undefined;
4424
+ readonly include_nsfw?: boolean | undefined;
4425
+ readonly channel_id?: ReadonlyArray<SnowflakeType> | undefined;
4426
+ }
4427
+ export interface SearchMessageResponse {
4428
+ readonly type: MessageType;
4429
+ readonly content: string;
4430
+ readonly mentions: ReadonlyArray<UserResponse>;
4431
+ readonly mention_roles: ReadonlyArray<SnowflakeType>;
4432
+ readonly attachments: ReadonlyArray<MessageAttachmentResponse>;
4433
+ readonly embeds: ReadonlyArray<MessageEmbedResponse>;
4434
+ readonly timestamp: string;
4435
+ readonly edited_timestamp: string | null;
4436
+ readonly flags: number;
4437
+ readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
4438
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
4439
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
4440
+ readonly id: SnowflakeType;
4441
+ readonly channel_id: SnowflakeType;
4442
+ readonly author: UserResponse;
4443
+ readonly pinned: boolean;
4444
+ readonly mention_everyone: boolean;
4445
+ readonly tts: boolean;
4446
+ readonly call?: MessageCallResponse | undefined;
4447
+ readonly activity?: MessageActivityResponse | undefined;
4448
+ readonly application?: BasicApplicationResponse | undefined;
4449
+ readonly application_id?: SnowflakeType | undefined;
4450
+ readonly interaction?: MessageInteractionResponse | undefined;
4451
+ readonly nonce?: number | string | undefined;
4452
+ readonly webhook_id?: SnowflakeType | undefined;
4453
+ readonly message_reference?: MessageReferenceResponse | undefined;
4454
+ readonly thread?: ThreadResponse | undefined;
4455
+ readonly mention_channels?: ReadonlyArray<MessageMentionChannelResponse> | undefined;
4456
+ readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | undefined;
4457
+ readonly purchase_notification?: PurchaseNotificationResponse | undefined;
4458
+ readonly position?: number | undefined;
4459
+ readonly resolved?: ResolvedObjectsResponse | undefined;
4460
+ readonly poll?: PollResponse | undefined;
4461
+ readonly shared_client_theme?: CustomClientThemeResponse | undefined;
4462
+ readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
4463
+ readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
4464
+ readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
4465
+ readonly referenced_message?: BasicMessageResponse | null | undefined;
4466
+ readonly hit: boolean;
4467
+ }
4468
+ export interface GuildSearchResponse {
4469
+ readonly messages: ReadonlyArray<ReadonlyArray<SearchMessageResponse>>;
4470
+ readonly doing_deep_historical_index: boolean;
4471
+ readonly total_results: number;
4472
+ readonly threads?: ReadonlyArray<ThreadResponse> | null | undefined;
4473
+ readonly members?: ReadonlyArray<ThreadMemberResponse> | null | undefined;
4474
+ readonly documents_indexed?: number | null | undefined;
4475
+ }
4476
+ export interface SearchIndexNotReadyResponse {
4477
+ readonly message: string;
4478
+ readonly code: number;
4479
+ readonly documents_indexed: number;
4480
+ readonly retry_after: number;
4481
+ }
4020
4482
  export interface WelcomeMessageResponse {
4021
4483
  readonly author_ids: ReadonlyArray<SnowflakeType>;
4022
4484
  readonly message: string;
@@ -4050,8 +4512,8 @@ export interface GuildHomeSettingsResponse {
4050
4512
  readonly guild_id: SnowflakeType;
4051
4513
  readonly enabled: boolean;
4052
4514
  readonly welcome_message?: WelcomeMessageResponse | undefined;
4053
- readonly new_member_actions: ReadonlyArray<null | NewMemberActionResponse>;
4054
- readonly resource_channels: ReadonlyArray<null | ResourceChannelResponse>;
4515
+ readonly new_member_actions: ReadonlyArray<NewMemberActionResponse>;
4516
+ readonly resource_channels: ReadonlyArray<ResourceChannelResponse>;
4055
4517
  }
4056
4518
  export interface OnboardingPromptOptionResponse {
4057
4519
  readonly id: SnowflakeType;
@@ -4081,11 +4543,23 @@ export interface OnboardingPromptResponse {
4081
4543
  readonly in_onboarding: boolean;
4082
4544
  readonly type: OnboardingPromptType;
4083
4545
  }
4546
+ export declare const GuildOnboardingMode: {
4547
+ /**
4548
+ * Only Default Channels considered in constraints
4549
+ */
4550
+ readonly ONBOARDING_DEFAULT: 0;
4551
+ /**
4552
+ * Default Channels and Onboarding Prompts considered in constraints
4553
+ */
4554
+ readonly ONBOARDING_ADVANCED: 1;
4555
+ };
4556
+ export type GuildOnboardingMode = (typeof GuildOnboardingMode)[keyof typeof GuildOnboardingMode];
4084
4557
  export interface UserGuildOnboardingResponse {
4085
4558
  readonly guild_id: SnowflakeType;
4086
4559
  readonly prompts: ReadonlyArray<OnboardingPromptResponse>;
4087
4560
  readonly default_channel_ids: ReadonlyArray<SnowflakeType>;
4088
4561
  readonly enabled: boolean;
4562
+ readonly mode: GuildOnboardingMode;
4089
4563
  }
4090
4564
  export interface OnboardingPromptOptionRequest {
4091
4565
  readonly id?: SnowflakeType | null | undefined;
@@ -4106,17 +4580,6 @@ export interface UpdateOnboardingPromptRequest {
4106
4580
  readonly type?: OnboardingPromptType | null | undefined;
4107
4581
  readonly id: SnowflakeType;
4108
4582
  }
4109
- export declare const GuildOnboardingMode: {
4110
- /**
4111
- * Only Default Channels considered in constraints
4112
- */
4113
- readonly ONBOARDING_DEFAULT: 0;
4114
- /**
4115
- * Default Channels and Onboarding Prompts considered in constraints
4116
- */
4117
- readonly ONBOARDING_ADVANCED: 1;
4118
- };
4119
- export type GuildOnboardingMode = (typeof GuildOnboardingMode)[keyof typeof GuildOnboardingMode];
4120
4583
  export interface UpdateGuildOnboardingRequest {
4121
4584
  readonly prompts?: ReadonlyArray<UpdateOnboardingPromptRequest> | null | undefined;
4122
4585
  readonly enabled?: boolean | null | undefined;
@@ -4128,6 +4591,7 @@ export interface GuildOnboardingResponse {
4128
4591
  readonly prompts: ReadonlyArray<OnboardingPromptResponse>;
4129
4592
  readonly default_channel_ids: ReadonlyArray<SnowflakeType>;
4130
4593
  readonly enabled: boolean;
4594
+ readonly mode: GuildOnboardingMode;
4131
4595
  }
4132
4596
  export interface GuildPreviewResponse {
4133
4597
  readonly id: SnowflakeType;
@@ -4643,8 +5107,25 @@ export interface ModalInteractionCallbackRequest {
4643
5107
  export interface PongInteractionCallbackRequest {
4644
5108
  readonly type: 1;
4645
5109
  }
5110
+ export declare const SKUIneligibilityReason: {
5111
+ /**
5112
+ * Other / catch-all
5113
+ */
5114
+ readonly OTHER: 0;
5115
+ /**
5116
+ * User already owns this SKU or one of its components
5117
+ */
5118
+ readonly OWNS_SKU_OR_BUNDLE_COMPONENT: 1;
5119
+ /**
5120
+ * User account is not on an eligible platform
5121
+ */
5122
+ readonly PLATFORM_RESTRICTION: 2;
5123
+ };
5124
+ export type SKUIneligibilityReason = (typeof SKUIneligibilityReason)[keyof typeof SKUIneligibilityReason];
4646
5125
  export interface SocialLayerSKUPurchaseEligibilityCallbackData {
4647
5126
  readonly eligible: boolean;
5127
+ readonly ineligible_reason?: SKUIneligibilityReason | null | undefined;
5128
+ readonly ineligible_reason_description?: string | null | undefined;
4648
5129
  }
4649
5130
  export interface SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest {
4650
5131
  readonly type: 13;
@@ -5004,9 +5485,9 @@ export interface GetCurrentUserApplicationEntitlementsParams {
5004
5485
  readonly sku_ids?: string | ReadonlyArray<null | SnowflakeType> | undefined;
5005
5486
  readonly exclude_consumed?: boolean | undefined;
5006
5487
  }
5007
- export type GetCurrentUserApplicationEntitlements200 = ReadonlyArray<null | EntitlementResponse>;
5488
+ export type GetCurrentUserApplicationEntitlements200 = ReadonlyArray<EntitlementResponse>;
5008
5489
  export interface ApplicationUserRoleConnectionResponse {
5009
- readonly platform_name?: string | null | undefined;
5490
+ readonly platform_name?: string | undefined;
5010
5491
  readonly platform_username?: string | null | undefined;
5011
5492
  readonly metadata?: Record<string, unknown> | undefined;
5012
5493
  }
@@ -5382,6 +5863,10 @@ export interface DiscordRest {
5382
5863
  readonly threadSearch: (channelId: string, options?: ThreadSearchParams | undefined) => Effect.Effect<ThreadSearchResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5383
5864
  readonly triggerTypingIndicator: (channelId: string) => Effect.Effect<TypingIndicatorResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5384
5865
  readonly listMyPrivateArchivedThreads: (channelId: string, options?: ListMyPrivateArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5866
+ /**
5867
+ * Set a voice channel's status.
5868
+ */
5869
+ readonly updateVoiceChannelStatus: (channelId: string, options: UpdateVoiceChannelStatusRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5385
5870
  readonly listChannelWebhooks: (channelId: string) => Effect.Effect<ListChannelWebhooks200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5386
5871
  readonly createWebhook: (channelId: string, options: CreateWebhookRequest) => Effect.Effect<GuildIncomingWebhookResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5387
5872
  readonly getGateway: () => Effect.Effect<GatewayResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5420,6 +5905,7 @@ export interface DiscordRest {
5420
5905
  readonly updateGuildMember: (guildId: string, userId: string, options: UpdateGuildMemberRequest) => Effect.Effect<GuildMemberResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5421
5906
  readonly addGuildMemberRole: (guildId: string, userId: string, roleId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5422
5907
  readonly deleteGuildMemberRole: (guildId: string, userId: string, roleId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5908
+ readonly guildSearch: (guildId: string, options?: GuildSearchParams | undefined) => Effect.Effect<GuildSearchResponse | SearchIndexNotReadyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5423
5909
  readonly getGuildNewMemberWelcome: (guildId: string) => Effect.Effect<GuildHomeSettingsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5424
5910
  readonly getGuildsOnboarding: (guildId: string) => Effect.Effect<UserGuildOnboardingResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5425
5911
  readonly putGuildsOnboarding: (guildId: string, options: UpdateGuildOnboardingRequest) => Effect.Effect<GuildOnboardingResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;