dfx 1.0.11 → 1.0.13

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
@@ -203,6 +203,281 @@ export interface ApplicationOAuth2InstallParamsResponse {
203
203
  readonly permissions: string
204
204
  }
205
205
 
206
+ export const ApplicationEventWebhooksStatus = {
207
+ /**
208
+ * Webhook events are disabled by developer
209
+ */
210
+ DISABLED: 1,
211
+ /**
212
+ * Webhook events are enabled by developer
213
+ */
214
+ ENABLED: 2,
215
+ /**
216
+ * Webhook events are disabled by Discord, usually due to inactivity
217
+ */
218
+ DISABLED_BY_DISCORD: 3,
219
+ } as const
220
+ export type ApplicationEventWebhooksStatus =
221
+ (typeof ApplicationEventWebhooksStatus)[keyof typeof ApplicationEventWebhooksStatus]
222
+
223
+ export const ActionTypes = {
224
+ /**
225
+ * User started typing in a channel
226
+ */
227
+ TYPING_START: "TYPING_START",
228
+ /**
229
+ * Invite to a channel was created
230
+ */
231
+ INVITE_CREATE: "INVITE_CREATE",
232
+ /**
233
+ * Invite to a channel was deleted
234
+ */
235
+ INVITE_DELETE: "INVITE_DELETE",
236
+ /**
237
+ * Guild channel webhook was created, updated, or deleted
238
+ */
239
+ WEBHOOKS_UPDATE: "WEBHOOKS_UPDATE",
240
+ /**
241
+ * New guild channel created
242
+ */
243
+ CHANNEL_CREATE: "CHANNEL_CREATE",
244
+ /**
245
+ * Voice channel status was updated
246
+ */
247
+ VOICE_CHANNEL_STATUS_UPDATE: "VOICE_CHANNEL_STATUS_UPDATE",
248
+ /**
249
+ * Channel was updated
250
+ */
251
+ CHANNEL_UPDATE: "CHANNEL_UPDATE",
252
+ /**
253
+ * Channel was deleted
254
+ */
255
+ CHANNEL_DELETE: "CHANNEL_DELETE",
256
+ /**
257
+ * Message was pinned or unpinned
258
+ */
259
+ CHANNEL_PINS_UPDATE: "CHANNEL_PINS_UPDATE",
260
+ /**
261
+ * Thread created, also sent when being added to a private thread
262
+ */
263
+ THREAD_CREATE: "THREAD_CREATE",
264
+ /**
265
+ * Thread was updated
266
+ */
267
+ THREAD_UPDATE: "THREAD_UPDATE",
268
+ /**
269
+ * Thread was deleted
270
+ */
271
+ THREAD_DELETE: "THREAD_DELETE",
272
+ /**
273
+ * Sent when gaining access to a channel, contains all active threads in that channel
274
+ */
275
+ THREAD_LIST_SYNC: "THREAD_LIST_SYNC",
276
+ /**
277
+ * Thread member for the current user was updated
278
+ */
279
+ THREAD_MEMBER_UPDATE: "THREAD_MEMBER_UPDATE",
280
+ /**
281
+ * Some user(s) were added to or removed from a thread
282
+ */
283
+ THREAD_MEMBERS_UPDATE: "THREAD_MEMBERS_UPDATE",
284
+ /**
285
+ * Lazy-load for unavailable guild, guild became available, or user joined a new guild
286
+ */
287
+ GUILD_CREATE: "GUILD_CREATE",
288
+ /**
289
+ * Guild was updated
290
+ */
291
+ GUILD_UPDATE: "GUILD_UPDATE",
292
+ /**
293
+ * Guild became unavailable, or user left/was removed from a guild
294
+ */
295
+ GUILD_DELETE: "GUILD_DELETE",
296
+ /**
297
+ * Guild emojis were updated
298
+ */
299
+ GUILD_EMOJIS_UPDATE: "GUILD_EMOJIS_UPDATE",
300
+ /**
301
+ * Guild stickers were updated
302
+ */
303
+ GUILD_STICKERS_UPDATE: "GUILD_STICKERS_UPDATE",
304
+ /**
305
+ * Guild integration was updated
306
+ */
307
+ GUILD_INTEGRATIONS_UPDATE: "GUILD_INTEGRATIONS_UPDATE",
308
+ /**
309
+ * New user joined a guild
310
+ */
311
+ GUILD_MEMBER_ADD: "GUILD_MEMBER_ADD",
312
+ /**
313
+ * Guild member was updated
314
+ */
315
+ GUILD_MEMBER_UPDATE: "GUILD_MEMBER_UPDATE",
316
+ /**
317
+ * User was removed from a guild
318
+ */
319
+ GUILD_MEMBER_REMOVE: "GUILD_MEMBER_REMOVE",
320
+ /**
321
+ * User was banned from a guild
322
+ */
323
+ GUILD_BAN_ADD: "GUILD_BAN_ADD",
324
+ /**
325
+ * User was unbanned from a guild
326
+ */
327
+ GUILD_BAN_REMOVE: "GUILD_BAN_REMOVE",
328
+ /**
329
+ * Guild role was created
330
+ */
331
+ GUILD_ROLE_CREATE: "GUILD_ROLE_CREATE",
332
+ /**
333
+ * Guild role was updated
334
+ */
335
+ GUILD_ROLE_UPDATE: "GUILD_ROLE_UPDATE",
336
+ /**
337
+ * Guild role was deleted
338
+ */
339
+ GUILD_ROLE_DELETE: "GUILD_ROLE_DELETE",
340
+ /**
341
+ * Response to Request Guild Members
342
+ */
343
+ GUILD_MEMBERS_CHUNK: "GUILD_MEMBERS_CHUNK",
344
+ /**
345
+ * Message was created
346
+ */
347
+ MESSAGE_CREATE: "MESSAGE_CREATE",
348
+ /**
349
+ * Message was edited
350
+ */
351
+ MESSAGE_UPDATE: "MESSAGE_UPDATE",
352
+ /**
353
+ * Message was deleted
354
+ */
355
+ MESSAGE_DELETE: "MESSAGE_DELETE",
356
+ /**
357
+ * Multiple messages were deleted at once
358
+ */
359
+ MESSAGE_DELETE_BULK: "MESSAGE_DELETE_BULK",
360
+ /**
361
+ * User reacted to a message
362
+ */
363
+ MESSAGE_REACTION_ADD: "MESSAGE_REACTION_ADD",
364
+ /**
365
+ * User removed a reaction from a message
366
+ */
367
+ MESSAGE_REACTION_REMOVE: "MESSAGE_REACTION_REMOVE",
368
+ /**
369
+ * All reactions were explicitly removed from a message
370
+ */
371
+ MESSAGE_REACTION_REMOVE_ALL: "MESSAGE_REACTION_REMOVE_ALL",
372
+ /**
373
+ * All reactions for a given emoji were explicitly removed from a message
374
+ */
375
+ MESSAGE_REACTION_REMOVE_EMOJI: "MESSAGE_REACTION_REMOVE_EMOJI",
376
+ /**
377
+ * Properties about the user changed
378
+ */
379
+ USER_UPDATE: "USER_UPDATE",
380
+ /**
381
+ * Contains the initial state information
382
+ */
383
+ READY: "READY",
384
+ /**
385
+ * Response to Resume
386
+ */
387
+ RESUMED: "RESUMED",
388
+ /**
389
+ * User was updated
390
+ */
391
+ PRESENCE_UPDATE: "PRESENCE_UPDATE",
392
+ /**
393
+ * Someone joined, left, or moved a voice channel
394
+ */
395
+ VOICE_STATE_UPDATE: "VOICE_STATE_UPDATE",
396
+ /**
397
+ * Guild's voice server was updated
398
+ */
399
+ VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE",
400
+ /**
401
+ * User used an interaction, such as an Application Command
402
+ */
403
+ INTERACTION_CREATE: "INTERACTION_CREATE",
404
+ /**
405
+ * Guild integration was created
406
+ */
407
+ INTEGRATION_CREATE: "INTEGRATION_CREATE",
408
+ /**
409
+ * Guild integration was updated
410
+ */
411
+ INTEGRATION_UPDATE: "INTEGRATION_UPDATE",
412
+ /**
413
+ * Guild integration was deleted
414
+ */
415
+ INTEGRATION_DELETE: "INTEGRATION_DELETE",
416
+ /**
417
+ * Application command permission was updated
418
+ */
419
+ APPLICATION_COMMAND_PERMISSIONS_UPDATE:
420
+ "APPLICATION_COMMAND_PERMISSIONS_UPDATE",
421
+ /**
422
+ * Stage instance was created
423
+ */
424
+ STAGE_INSTANCE_CREATE: "STAGE_INSTANCE_CREATE",
425
+ /**
426
+ * Stage instance was updated
427
+ */
428
+ STAGE_INSTANCE_UPDATE: "STAGE_INSTANCE_UPDATE",
429
+ /**
430
+ * Stage instance was deleted or closed
431
+ */
432
+ STAGE_INSTANCE_DELETE: "STAGE_INSTANCE_DELETE",
433
+ /**
434
+ * A guild audit log entry was created
435
+ */
436
+ GUILD_AUDIT_LOG_ENTRY_CREATE: "GUILD_AUDIT_LOG_ENTRY_CREATE",
437
+ /**
438
+ * Guild scheduled event was created
439
+ */
440
+ GUILD_SCHEDULED_EVENT_CREATE: "GUILD_SCHEDULED_EVENT_CREATE",
441
+ /**
442
+ * Guild scheduled event was updated
443
+ */
444
+ GUILD_SCHEDULED_EVENT_UPDATE: "GUILD_SCHEDULED_EVENT_UPDATE",
445
+ /**
446
+ * Guild scheduled event was deleted
447
+ */
448
+ GUILD_SCHEDULED_EVENT_DELETE: "GUILD_SCHEDULED_EVENT_DELETE",
449
+ /**
450
+ * User subscribed to a guild scheduled event
451
+ */
452
+ GUILD_SCHEDULED_EVENT_USER_ADD: "GUILD_SCHEDULED_EVENT_USER_ADD",
453
+ /**
454
+ * User unsubscribed from a guild scheduled event
455
+ */
456
+ GUILD_SCHEDULED_EVENT_USER_REMOVE: "GUILD_SCHEDULED_EVENT_USER_REMOVE",
457
+ /**
458
+ * Auto Moderation rule was created
459
+ */
460
+ AUTO_MODERATION_RULE_CREATE: "AUTO_MODERATION_RULE_CREATE",
461
+ /**
462
+ * Auto Moderation rule was updated
463
+ */
464
+ AUTO_MODERATION_RULE_UPDATE: "AUTO_MODERATION_RULE_UPDATE",
465
+ /**
466
+ * Auto Moderation rule was deleted
467
+ */
468
+ AUTO_MODERATION_RULE_DELETE: "AUTO_MODERATION_RULE_DELETE",
469
+ /**
470
+ * Auto Moderation rule was triggered and an action was executed (.e.g. a message was blocked)
471
+ */
472
+ AUTO_MODERATION_ACTION_EXECUTION: "AUTO_MODERATION_ACTION_EXECUTION",
473
+ GUILD_SOUNDBOARD_SOUNDS_UPDATE: "GUILD_SOUNDBOARD_SOUNDS_UPDATE",
474
+ GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE",
475
+ GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE",
476
+ GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE",
477
+ RATE_LIMITED: "RATE_LIMITED",
478
+ } as const
479
+ export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes]
480
+
206
481
  export const ApplicationExplicitContentFilterTypes = {
207
482
  /**
208
483
  * inherit guild content filter setting
@@ -229,10 +504,29 @@ export const TeamMembershipStates = {
229
504
  export type TeamMembershipStates =
230
505
  (typeof TeamMembershipStates)[keyof typeof TeamMembershipStates]
231
506
 
507
+ export const TeamMemberRoles = {
508
+ /**
509
+ * Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps.
510
+ */
511
+ ADMIN: "admin",
512
+ /**
513
+ * 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.
514
+ */
515
+ DEVELOPER: "developer",
516
+ /**
517
+ * 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.
518
+ */
519
+ READ_ONLY: "read_only",
520
+ } as const
521
+ export type TeamMemberRoles =
522
+ (typeof TeamMemberRoles)[keyof typeof TeamMemberRoles]
523
+
232
524
  export interface TeamMemberResponse {
233
525
  readonly user: UserResponse
234
526
  readonly team_id: SnowflakeType
235
527
  readonly membership_state: TeamMembershipStates
528
+ readonly role: TeamMemberRoles
529
+ readonly permissions: ReadonlyArray<string>
236
530
  }
237
531
 
238
532
  export interface TeamResponse {
@@ -270,9 +564,12 @@ export interface PrivateApplicationResponse {
270
564
  readonly interactions_endpoint_url: string | null
271
565
  readonly role_connections_verification_url: string | null
272
566
  readonly owner: UserResponse
273
- readonly approximate_guild_count: number | null
567
+ readonly approximate_guild_count: number
274
568
  readonly approximate_user_install_count: number
275
569
  readonly approximate_user_authorization_count: number
570
+ readonly event_webhooks_url?: string | null | undefined
571
+ readonly event_webhooks_status?: ApplicationEventWebhooksStatus | undefined
572
+ readonly event_webhooks_types?: ReadonlyArray<any> | undefined
276
573
  readonly explicit_content_filter: ApplicationExplicitContentFilterTypes
277
574
  readonly team: TeamResponse | null
278
575
  }
@@ -369,6 +666,9 @@ export interface ApplicationFormPartial {
369
666
  readonly install_params?: ApplicationOAuth2InstallParams | null | undefined
370
667
  readonly role_connections_verification_url?: string | null | undefined
371
668
  readonly integration_types_config?: Record<string, unknown> | null | undefined
669
+ readonly event_webhooks_status?: 1 | 2 | null | undefined
670
+ readonly event_webhooks_url?: string | null | undefined
671
+ readonly event_webhooks_types?: ReadonlyArray<string> | null | undefined
372
672
  }
373
673
 
374
674
  export const EmbeddedActivityLocationKind = {
@@ -438,6 +738,16 @@ export interface ApplicationResponse {
438
738
  readonly tags?: ReadonlyArray<string> | undefined
439
739
  }
440
740
 
741
+ export interface ClipSpeakingEventResponse {
742
+ readonly user_id: SnowflakeType
743
+ readonly speaking_flags: number
744
+ }
745
+
746
+ export interface ClipEventTimelineEntryResponse {
747
+ readonly timestamp_ms: number
748
+ readonly speaking?: ClipSpeakingEventResponse | undefined
749
+ }
750
+
441
751
  export interface AttachmentResponse {
442
752
  readonly id: SnowflakeType
443
753
  readonly filename: string
@@ -451,10 +761,16 @@ export interface AttachmentResponse {
451
761
  readonly description?: string | undefined
452
762
  readonly content_type?: string | undefined
453
763
  readonly ephemeral?: boolean | undefined
764
+ readonly flags?: number | undefined
765
+ readonly placeholder?: string | undefined
766
+ readonly placeholder_version?: number | undefined
454
767
  readonly title?: string | null | undefined
455
768
  readonly application?: ApplicationResponse | undefined
456
769
  readonly clip_created_at?: string | undefined
457
770
  readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
771
+ readonly clip_events_timeline?:
772
+ | ReadonlyArray<ClipEventTimelineEntryResponse>
773
+ | undefined
458
774
  }
459
775
 
460
776
  export interface ActivitiesAttachmentResponse {
@@ -1235,20 +1551,20 @@ export interface EntitlementResponse {
1235
1551
  readonly user_id: SnowflakeType
1236
1552
  readonly guild_id?: SnowflakeType | null | undefined
1237
1553
  readonly deleted: boolean
1238
- readonly starts_at?: string | null | undefined
1239
- readonly ends_at?: string | null | undefined
1554
+ readonly starts_at: string | null
1555
+ readonly ends_at: string | null
1240
1556
  readonly type: EntitlementTypes
1241
1557
  readonly fulfilled_at?: string | null | undefined
1242
1558
  readonly fulfillment_status?:
1243
1559
  | EntitlementTenantFulfillmentStatusResponse
1244
1560
  | null
1245
1561
  | undefined
1246
- readonly consumed?: boolean | null | undefined
1562
+ readonly consumed?: boolean | undefined
1247
1563
  readonly gifter_user_id?: SnowflakeType | null | undefined
1248
1564
  readonly parent_id?: SnowflakeType | null | undefined
1249
1565
  }
1250
1566
 
1251
- export type GetEntitlements200 = ReadonlyArray<null | EntitlementResponse>
1567
+ export type GetEntitlements200 = ReadonlyArray<EntitlementResponse>
1252
1568
 
1253
1569
  export type EntitlementOwnerTypes = number
1254
1570
 
@@ -1444,8 +1760,8 @@ export interface ForumTagResponse {
1444
1760
  }
1445
1761
 
1446
1762
  export interface DefaultReactionEmojiResponse {
1447
- readonly emoji_id?: SnowflakeType | null | undefined
1448
- readonly emoji_name?: string | null | undefined
1763
+ readonly emoji_id: SnowflakeType | null
1764
+ readonly emoji_name: string | null
1449
1765
  }
1450
1766
 
1451
1767
  export const ThreadSortOrder = {
@@ -1504,7 +1820,7 @@ export interface GuildChannelResponse {
1504
1820
  readonly user_limit?: number | undefined
1505
1821
  readonly rtc_region?: string | null | undefined
1506
1822
  readonly video_quality_mode?: VideoQualityModes | undefined
1507
- readonly permissions?: string | null | undefined
1823
+ readonly permissions?: string | undefined
1508
1824
  readonly topic?: string | null | undefined
1509
1825
  readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined
1510
1826
  readonly default_thread_rate_limit_per_user?: number | undefined
@@ -1519,7 +1835,7 @@ export interface GuildChannelResponse {
1519
1835
  | null
1520
1836
  | undefined
1521
1837
  readonly default_sort_order?: ThreadSortOrder | null | undefined
1522
- readonly default_forum_layout?: ForumLayout | null | undefined
1838
+ readonly default_forum_layout?: ForumLayout | undefined
1523
1839
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
1524
1840
  readonly hd_streaming_until?: string | undefined
1525
1841
  readonly hd_streaming_buyer_id?: SnowflakeType | undefined
@@ -1599,7 +1915,7 @@ export interface ThreadResponse {
1599
1915
  readonly user_limit?: number | undefined
1600
1916
  readonly rtc_region?: string | null | undefined
1601
1917
  readonly video_quality_mode?: VideoQualityModes | undefined
1602
- readonly permissions?: string | null | undefined
1918
+ readonly permissions?: string | undefined
1603
1919
  readonly owner_id: SnowflakeType
1604
1920
  readonly thread_metadata: ThreadMetadataResponse
1605
1921
  readonly message_count: number
@@ -1878,6 +2194,10 @@ export const GuildFeatures = {
1878
2194
  * guild has enabled the welcome screen
1879
2195
  */
1880
2196
  WELCOME_SCREEN_ENABLED: "WELCOME_SCREEN_ENABLED",
2197
+ /**
2198
+ * guild is an official guild for one or more games
2199
+ */
2200
+ OFFICIAL_GAME_GUILD: "OFFICIAL_GAME_GUILD",
1881
2201
  } as const
1882
2202
  export type GuildFeatures = (typeof GuildFeatures)[keyof typeof GuildFeatures]
1883
2203
 
@@ -2139,10 +2459,16 @@ export interface MessageAttachmentResponse {
2139
2459
  readonly description?: string | undefined
2140
2460
  readonly content_type?: string | undefined
2141
2461
  readonly ephemeral?: boolean | undefined
2462
+ readonly flags?: number | undefined
2463
+ readonly placeholder?: string | undefined
2464
+ readonly placeholder_version?: number | undefined
2142
2465
  readonly title?: string | null | undefined
2143
2466
  readonly application?: ApplicationResponse | undefined
2144
2467
  readonly clip_created_at?: string | undefined
2145
2468
  readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
2469
+ readonly clip_events_timeline?:
2470
+ | ReadonlyArray<ClipEventTimelineEntryResponse>
2471
+ | undefined
2146
2472
  }
2147
2473
 
2148
2474
  export interface MessageEmbedFieldResponse {
@@ -2195,22 +2521,6 @@ export interface MessageEmbedFooterResponse {
2195
2521
  readonly proxy_icon_url?: string | undefined
2196
2522
  }
2197
2523
 
2198
- export interface MessageEmbedResponse {
2199
- readonly type: string
2200
- readonly url?: string | undefined
2201
- readonly title?: string | undefined
2202
- readonly description?: string | undefined
2203
- readonly color?: number | undefined
2204
- readonly timestamp?: string | undefined
2205
- readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | undefined
2206
- readonly author?: MessageEmbedAuthorResponse | undefined
2207
- readonly provider?: MessageEmbedProviderResponse | undefined
2208
- readonly image?: MessageEmbedImageResponse | undefined
2209
- readonly thumbnail?: MessageEmbedImageResponse | undefined
2210
- readonly video?: MessageEmbedVideoResponse | undefined
2211
- readonly footer?: MessageEmbedFooterResponse | undefined
2212
- }
2213
-
2214
2524
  export const MessageComponentTypes = {
2215
2525
  /**
2216
2526
  * Container for other components
@@ -2343,8 +2653,8 @@ export interface ChannelSelectComponentResponse {
2343
2653
  readonly id: number
2344
2654
  readonly custom_id: string
2345
2655
  readonly placeholder?: string | undefined
2346
- readonly min_values: number | null
2347
- readonly max_values: number | null
2656
+ readonly min_values: number
2657
+ readonly max_values: number
2348
2658
  readonly disabled?: boolean | undefined
2349
2659
  readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
2350
2660
  readonly default_values?:
@@ -2367,8 +2677,8 @@ export interface MentionableSelectComponentResponse {
2367
2677
  readonly id: number
2368
2678
  readonly custom_id: string
2369
2679
  readonly placeholder?: string | undefined
2370
- readonly min_values: number | null
2371
- readonly max_values: number | null
2680
+ readonly min_values: number
2681
+ readonly max_values: number
2372
2682
  readonly disabled?: boolean | undefined
2373
2683
  readonly default_values?:
2374
2684
  | ReadonlyArray<
@@ -2382,8 +2692,8 @@ export interface RoleSelectComponentResponse {
2382
2692
  readonly id: number
2383
2693
  readonly custom_id: string
2384
2694
  readonly placeholder?: string | undefined
2385
- readonly min_values: number | null
2386
- readonly max_values: number | null
2695
+ readonly min_values: number
2696
+ readonly max_values: number
2387
2697
  readonly disabled?: boolean | undefined
2388
2698
  readonly default_values?:
2389
2699
  | ReadonlyArray<RoleSelectDefaultValueResponse>
@@ -2403,8 +2713,8 @@ export interface StringSelectComponentResponse {
2403
2713
  readonly id: number
2404
2714
  readonly custom_id: string
2405
2715
  readonly placeholder?: string | undefined
2406
- readonly min_values: number | null
2407
- readonly max_values: number | null
2716
+ readonly min_values: number
2717
+ readonly max_values: number
2408
2718
  readonly disabled?: boolean | undefined
2409
2719
  readonly options: ReadonlyArray<StringSelectOptionResponse>
2410
2720
  }
@@ -2440,8 +2750,8 @@ export interface UserSelectComponentResponse {
2440
2750
  readonly id: number
2441
2751
  readonly custom_id: string
2442
2752
  readonly placeholder?: string | undefined
2443
- readonly min_values: number | null
2444
- readonly max_values: number | null
2753
+ readonly min_values: number
2754
+ readonly max_values: number
2445
2755
  readonly disabled?: boolean | undefined
2446
2756
  readonly default_values?:
2447
2757
  | ReadonlyArray<UserSelectDefaultValueResponse>
@@ -2549,6 +2859,24 @@ export interface ContainerComponentResponse {
2549
2859
  readonly spoiler: boolean
2550
2860
  }
2551
2861
 
2862
+ export interface MessageEmbedResponse {
2863
+ readonly type: string
2864
+ readonly url?: string | undefined
2865
+ readonly title?: string | undefined
2866
+ readonly description?: string | undefined
2867
+ readonly color?: number | undefined
2868
+ readonly timestamp?: string | undefined
2869
+ readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | undefined
2870
+ readonly author?: MessageEmbedAuthorResponse | undefined
2871
+ readonly provider?: MessageEmbedProviderResponse | undefined
2872
+ readonly image?: MessageEmbedImageResponse | undefined
2873
+ readonly thumbnail?: MessageEmbedImageResponse | undefined
2874
+ readonly video?: MessageEmbedVideoResponse | undefined
2875
+ readonly footer?: MessageEmbedFooterResponse | undefined
2876
+ readonly flags?: number | null | undefined
2877
+ readonly components?: ReadonlyArray<ContainerComponentResponse> | undefined
2878
+ }
2879
+
2552
2880
  export const StickerTypes = {
2553
2881
  /**
2554
2882
  * an official sticker in a pack, part of Nitro or in a removed purchasable pack
@@ -2604,7 +2932,20 @@ export interface MessageCallResponse {
2604
2932
  readonly participants: ReadonlyArray<SnowflakeType>
2605
2933
  }
2606
2934
 
2607
- export interface MessageActivityResponse {}
2935
+ export const ActivityActionTypes = {
2936
+ JOIN: 1,
2937
+ SPECTATE: 2,
2938
+ LISTEN: 3,
2939
+ JOIN_REQUEST: 5,
2940
+ STREAM_REQUEST: 6,
2941
+ } as const
2942
+ export type ActivityActionTypes =
2943
+ (typeof ActivityActionTypes)[keyof typeof ActivityActionTypes]
2944
+
2945
+ export interface MessageActivityResponse {
2946
+ readonly type: ActivityActionTypes
2947
+ readonly party_id?: string | undefined
2948
+ }
2608
2949
 
2609
2950
  export interface BasicApplicationResponse {
2610
2951
  readonly id: SnowflakeType
@@ -2873,12 +3214,12 @@ export interface BasicMessageResponse {
2873
3214
  readonly application?: BasicApplicationResponse | undefined
2874
3215
  readonly application_id?: SnowflakeType | undefined
2875
3216
  readonly interaction?: MessageInteractionResponse | undefined
2876
- readonly nonce?: number | string | null | undefined
3217
+ readonly nonce?: number | string | undefined
2877
3218
  readonly webhook_id?: SnowflakeType | undefined
2878
3219
  readonly message_reference?: MessageReferenceResponse | undefined
2879
3220
  readonly thread?: ThreadResponse | undefined
2880
3221
  readonly mention_channels?:
2881
- | ReadonlyArray<null | MessageMentionChannelResponse>
3222
+ | ReadonlyArray<MessageMentionChannelResponse>
2882
3223
  | undefined
2883
3224
  readonly role_subscription_data?:
2884
3225
  | MessageRoleSubscriptionDataResponse
@@ -2887,7 +3228,7 @@ export interface BasicMessageResponse {
2887
3228
  readonly position?: number | undefined
2888
3229
  readonly resolved?: ResolvedObjectsResponse | undefined
2889
3230
  readonly poll?: PollResponse | undefined
2890
- readonly shared_client_theme?: CustomClientThemeResponse | null | undefined
3231
+ readonly shared_client_theme?: CustomClientThemeResponse | undefined
2891
3232
  readonly interaction_metadata?:
2892
3233
  | ApplicationCommandInteractionMetadataResponse
2893
3234
  | MessageComponentInteractionMetadataResponse
@@ -2932,12 +3273,12 @@ export interface MessageResponse {
2932
3273
  readonly application?: BasicApplicationResponse | undefined
2933
3274
  readonly application_id?: SnowflakeType | undefined
2934
3275
  readonly interaction?: MessageInteractionResponse | undefined
2935
- readonly nonce?: number | string | null | undefined
3276
+ readonly nonce?: number | string | undefined
2936
3277
  readonly webhook_id?: SnowflakeType | undefined
2937
3278
  readonly message_reference?: MessageReferenceResponse | undefined
2938
3279
  readonly thread?: ThreadResponse | undefined
2939
3280
  readonly mention_channels?:
2940
- | ReadonlyArray<null | MessageMentionChannelResponse>
3281
+ | ReadonlyArray<MessageMentionChannelResponse>
2941
3282
  | undefined
2942
3283
  readonly role_subscription_data?:
2943
3284
  | MessageRoleSubscriptionDataResponse
@@ -2946,7 +3287,7 @@ export interface MessageResponse {
2946
3287
  readonly position?: number | undefined
2947
3288
  readonly resolved?: ResolvedObjectsResponse | undefined
2948
3289
  readonly poll?: PollResponse | undefined
2949
- readonly shared_client_theme?: CustomClientThemeResponse | null | undefined
3290
+ readonly shared_client_theme?: CustomClientThemeResponse | undefined
2950
3291
  readonly interaction_metadata?:
2951
3292
  | ApplicationCommandInteractionMetadataResponse
2952
3293
  | MessageComponentInteractionMetadataResponse
@@ -3518,7 +3859,7 @@ export interface CreatedThreadResponse {
3518
3859
  readonly user_limit?: number | undefined
3519
3860
  readonly rtc_region?: string | null | undefined
3520
3861
  readonly video_quality_mode?: VideoQualityModes | undefined
3521
- readonly permissions?: string | null | undefined
3862
+ readonly permissions?: string | undefined
3522
3863
  readonly owner_id: SnowflakeType
3523
3864
  readonly thread_metadata: ThreadMetadataResponse
3524
3865
  readonly message_count: number
@@ -3589,6 +3930,13 @@ export interface ListMyPrivateArchivedThreadsParams {
3589
3930
  readonly limit?: number | undefined
3590
3931
  }
3591
3932
 
3933
+ export interface UpdateVoiceChannelStatusRequest {
3934
+ /**
3935
+ * The new voice channel status
3936
+ */
3937
+ readonly status?: string | null | undefined
3938
+ }
3939
+
3592
3940
  export const WebhookTypes = {
3593
3941
  /**
3594
3942
  * Incoming Webhooks can post messages to channels with a generated token
@@ -3901,7 +4249,7 @@ export interface GuildTemplateChannelResponse {
3901
4249
  readonly rate_limit_per_user: number
3902
4250
  readonly parent_id: SnowflakeType | null
3903
4251
  readonly default_auto_archive_duration: ThreadAutoArchiveDuration | null
3904
- readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>
4252
+ readonly permission_overwrites: ReadonlyArray<ChannelPermissionOverwriteResponse>
3905
4253
  readonly available_tags: ReadonlyArray<GuildTemplateChannelTags> | null
3906
4254
  readonly template: string
3907
4255
  readonly default_reaction_emoji: DefaultReactionEmojiResponse | null
@@ -4006,6 +4354,11 @@ export const PremiumGuildTiers = {
4006
4354
  export type PremiumGuildTiers =
4007
4355
  (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers]
4008
4356
 
4357
+ export interface GuildIncidentsDataResponse {
4358
+ readonly invites_disabled_until: string | null
4359
+ readonly dms_disabled_until: string | null
4360
+ }
4361
+
4009
4362
  export interface GuildWithCountsResponse {
4010
4363
  readonly id: SnowflakeType
4011
4364
  readonly name: string
@@ -4050,6 +4403,7 @@ export interface GuildWithCountsResponse {
4050
4403
  readonly nsfw_level: GuildNSFWContentLevel
4051
4404
  readonly emojis: ReadonlyArray<EmojiResponse>
4052
4405
  readonly stickers: ReadonlyArray<GuildStickerResponse>
4406
+ readonly incidents_data: GuildIncidentsDataResponse | null
4053
4407
  readonly approximate_member_count?: number | null | undefined
4054
4408
  readonly approximate_presence_count?: number | null | undefined
4055
4409
  }
@@ -4128,6 +4482,7 @@ export interface GuildResponse {
4128
4482
  readonly nsfw_level: GuildNSFWContentLevel
4129
4483
  readonly emojis: ReadonlyArray<EmojiResponse>
4130
4484
  readonly stickers: ReadonlyArray<GuildStickerResponse>
4485
+ readonly incidents_data: GuildIncidentsDataResponse | null
4131
4486
  }
4132
4487
 
4133
4488
  export const AuditLogActionTypes = {
@@ -5092,6 +5447,159 @@ export interface UpdateGuildMemberRequest {
5092
5447
  readonly flags?: number | null | undefined
5093
5448
  }
5094
5449
 
5450
+ export const SortingMode = {
5451
+ RELEVANCE: "relevance",
5452
+ TIMESTAMP: "timestamp",
5453
+ } as const
5454
+ export type SortingMode = (typeof SortingMode)[keyof typeof SortingMode]
5455
+
5456
+ export const AuthorType = {
5457
+ USER: "user",
5458
+ BOT: "bot",
5459
+ WEBHOOK: "webhook",
5460
+ NO_USER: "-user",
5461
+ NO_BOT: "-bot",
5462
+ NO_WEBHOOK: "-webhook",
5463
+ } as const
5464
+ export type AuthorType = (typeof AuthorType)[keyof typeof AuthorType]
5465
+
5466
+ export const HasOption = {
5467
+ LINK: "link",
5468
+ EMBED: "embed",
5469
+ FILE: "file",
5470
+ IMAGE: "image",
5471
+ VIDEO: "video",
5472
+ SOUND: "sound",
5473
+ STICKER: "sticker",
5474
+ POLL: "poll",
5475
+ SNAPSHOT: "snapshot",
5476
+ NO_LINK: "-link",
5477
+ NO_EMBED: "-embed",
5478
+ NO_FILE: "-file",
5479
+ NO_IMAGE: "-image",
5480
+ NO_VIDEO: "-video",
5481
+ NO_SOUND: "-sound",
5482
+ NO_STICKER: "-sticker",
5483
+ NO_POLL: "-poll",
5484
+ NO_SNAPSHOT: "-snapshot",
5485
+ } as const
5486
+ export type HasOption = (typeof HasOption)[keyof typeof HasOption]
5487
+
5488
+ export const SearchableEmbedType = {
5489
+ IMAGE: "image",
5490
+ VIDEO: "video",
5491
+ GIFV: "gif",
5492
+ SOUND: "sound",
5493
+ ARTICLE: "article",
5494
+ } as const
5495
+ export type SearchableEmbedType =
5496
+ (typeof SearchableEmbedType)[keyof typeof SearchableEmbedType]
5497
+
5498
+ export interface GuildSearchParams {
5499
+ readonly sort_by?: SortingMode | undefined
5500
+ readonly sort_order?: SortingOrder | undefined
5501
+ readonly content?: string | undefined
5502
+ readonly slop?: number | undefined
5503
+ readonly author_id?: ReadonlyArray<SnowflakeType> | undefined
5504
+ readonly author_type?: ReadonlyArray<AuthorType> | undefined
5505
+ readonly mentions?: ReadonlyArray<SnowflakeType> | undefined
5506
+ readonly mentions_role_id?: ReadonlyArray<SnowflakeType> | undefined
5507
+ readonly replied_to_user_id?: ReadonlyArray<SnowflakeType> | undefined
5508
+ readonly replied_to_message_id?: ReadonlyArray<SnowflakeType> | undefined
5509
+ readonly mention_everyone?: boolean | undefined
5510
+ readonly min_id?: SnowflakeType | undefined
5511
+ readonly max_id?: SnowflakeType | undefined
5512
+ readonly limit?: number | undefined
5513
+ readonly offset?: number | undefined
5514
+ readonly has?: ReadonlyArray<HasOption> | undefined
5515
+ readonly link_hostname?: ReadonlyArray<string> | undefined
5516
+ readonly embed_provider?: ReadonlyArray<string> | undefined
5517
+ readonly embed_type?: ReadonlyArray<SearchableEmbedType> | undefined
5518
+ readonly attachment_extension?: ReadonlyArray<string> | undefined
5519
+ readonly attachment_filename?: ReadonlyArray<string> | undefined
5520
+ readonly pinned?: boolean | undefined
5521
+ readonly include_nsfw?: boolean | undefined
5522
+ readonly channel_id?: ReadonlyArray<SnowflakeType> | undefined
5523
+ }
5524
+
5525
+ export interface SearchMessageResponse {
5526
+ readonly type: MessageType
5527
+ readonly content: string
5528
+ readonly mentions: ReadonlyArray<UserResponse>
5529
+ readonly mention_roles: ReadonlyArray<SnowflakeType>
5530
+ readonly attachments: ReadonlyArray<MessageAttachmentResponse>
5531
+ readonly embeds: ReadonlyArray<MessageEmbedResponse>
5532
+ readonly timestamp: string
5533
+ readonly edited_timestamp: string | null
5534
+ readonly flags: number
5535
+ readonly components: ReadonlyArray<
5536
+ | ActionRowComponentResponse
5537
+ | ContainerComponentResponse
5538
+ | FileComponentResponse
5539
+ | MediaGalleryComponentResponse
5540
+ | SectionComponentResponse
5541
+ | SeparatorComponentResponse
5542
+ | TextDisplayComponentResponse
5543
+ >
5544
+ readonly stickers?:
5545
+ | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
5546
+ | undefined
5547
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
5548
+ readonly id: SnowflakeType
5549
+ readonly channel_id: SnowflakeType
5550
+ readonly author: UserResponse
5551
+ readonly pinned: boolean
5552
+ readonly mention_everyone: boolean
5553
+ readonly tts: boolean
5554
+ readonly call?: MessageCallResponse | undefined
5555
+ readonly activity?: MessageActivityResponse | undefined
5556
+ readonly application?: BasicApplicationResponse | undefined
5557
+ readonly application_id?: SnowflakeType | undefined
5558
+ readonly interaction?: MessageInteractionResponse | undefined
5559
+ readonly nonce?: number | string | undefined
5560
+ readonly webhook_id?: SnowflakeType | undefined
5561
+ readonly message_reference?: MessageReferenceResponse | undefined
5562
+ readonly thread?: ThreadResponse | undefined
5563
+ readonly mention_channels?:
5564
+ | ReadonlyArray<MessageMentionChannelResponse>
5565
+ | undefined
5566
+ readonly role_subscription_data?:
5567
+ | MessageRoleSubscriptionDataResponse
5568
+ | undefined
5569
+ readonly purchase_notification?: PurchaseNotificationResponse | undefined
5570
+ readonly position?: number | undefined
5571
+ readonly resolved?: ResolvedObjectsResponse | undefined
5572
+ readonly poll?: PollResponse | undefined
5573
+ readonly shared_client_theme?: CustomClientThemeResponse | undefined
5574
+ readonly interaction_metadata?:
5575
+ | ApplicationCommandInteractionMetadataResponse
5576
+ | MessageComponentInteractionMetadataResponse
5577
+ | ModalSubmitInteractionMetadataResponse
5578
+ | undefined
5579
+ readonly message_snapshots?:
5580
+ | ReadonlyArray<MessageSnapshotResponse>
5581
+ | undefined
5582
+ readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
5583
+ readonly referenced_message?: BasicMessageResponse | null | undefined
5584
+ readonly hit: boolean
5585
+ }
5586
+
5587
+ export interface GuildSearchResponse {
5588
+ readonly messages: ReadonlyArray<ReadonlyArray<SearchMessageResponse>>
5589
+ readonly doing_deep_historical_index: boolean
5590
+ readonly total_results: number
5591
+ readonly threads?: ReadonlyArray<ThreadResponse> | null | undefined
5592
+ readonly members?: ReadonlyArray<ThreadMemberResponse> | null | undefined
5593
+ readonly documents_indexed?: number | null | undefined
5594
+ }
5595
+
5596
+ export interface SearchIndexNotReadyResponse {
5597
+ readonly message: string
5598
+ readonly code: number
5599
+ readonly documents_indexed: number
5600
+ readonly retry_after: number
5601
+ }
5602
+
5095
5603
  export interface WelcomeMessageResponse {
5096
5604
  readonly author_ids: ReadonlyArray<SnowflakeType>
5097
5605
  readonly message: string
@@ -5131,8 +5639,8 @@ export interface GuildHomeSettingsResponse {
5131
5639
  readonly guild_id: SnowflakeType
5132
5640
  readonly enabled: boolean
5133
5641
  readonly welcome_message?: WelcomeMessageResponse | undefined
5134
- readonly new_member_actions: ReadonlyArray<null | NewMemberActionResponse>
5135
- readonly resource_channels: ReadonlyArray<null | ResourceChannelResponse>
5642
+ readonly new_member_actions: ReadonlyArray<NewMemberActionResponse>
5643
+ readonly resource_channels: ReadonlyArray<ResourceChannelResponse>
5136
5644
  }
5137
5645
 
5138
5646
  export interface OnboardingPromptOptionResponse {
@@ -5167,11 +5675,25 @@ export interface OnboardingPromptResponse {
5167
5675
  readonly type: OnboardingPromptType
5168
5676
  }
5169
5677
 
5678
+ export const GuildOnboardingMode = {
5679
+ /**
5680
+ * Only Default Channels considered in constraints
5681
+ */
5682
+ ONBOARDING_DEFAULT: 0,
5683
+ /**
5684
+ * Default Channels and Onboarding Prompts considered in constraints
5685
+ */
5686
+ ONBOARDING_ADVANCED: 1,
5687
+ } as const
5688
+ export type GuildOnboardingMode =
5689
+ (typeof GuildOnboardingMode)[keyof typeof GuildOnboardingMode]
5690
+
5170
5691
  export interface UserGuildOnboardingResponse {
5171
5692
  readonly guild_id: SnowflakeType
5172
5693
  readonly prompts: ReadonlyArray<OnboardingPromptResponse>
5173
5694
  readonly default_channel_ids: ReadonlyArray<SnowflakeType>
5174
5695
  readonly enabled: boolean
5696
+ readonly mode: GuildOnboardingMode
5175
5697
  }
5176
5698
 
5177
5699
  export interface OnboardingPromptOptionRequest {
@@ -5195,19 +5717,6 @@ export interface UpdateOnboardingPromptRequest {
5195
5717
  readonly id: SnowflakeType
5196
5718
  }
5197
5719
 
5198
- export const GuildOnboardingMode = {
5199
- /**
5200
- * Only Default Channels considered in constraints
5201
- */
5202
- ONBOARDING_DEFAULT: 0,
5203
- /**
5204
- * Default Channels and Onboarding Prompts considered in constraints
5205
- */
5206
- ONBOARDING_ADVANCED: 1,
5207
- } as const
5208
- export type GuildOnboardingMode =
5209
- (typeof GuildOnboardingMode)[keyof typeof GuildOnboardingMode]
5210
-
5211
5720
  export interface UpdateGuildOnboardingRequest {
5212
5721
  readonly prompts?:
5213
5722
  | ReadonlyArray<UpdateOnboardingPromptRequest>
@@ -5223,6 +5732,7 @@ export interface GuildOnboardingResponse {
5223
5732
  readonly prompts: ReadonlyArray<OnboardingPromptResponse>
5224
5733
  readonly default_channel_ids: ReadonlyArray<SnowflakeType>
5225
5734
  readonly enabled: boolean
5735
+ readonly mode: GuildOnboardingMode
5226
5736
  }
5227
5737
 
5228
5738
  export interface GuildPreviewResponse {
@@ -5915,8 +6425,27 @@ export interface PongInteractionCallbackRequest {
5915
6425
  readonly type: 1
5916
6426
  }
5917
6427
 
6428
+ export const SKUIneligibilityReason = {
6429
+ /**
6430
+ * Other / catch-all
6431
+ */
6432
+ OTHER: 0,
6433
+ /**
6434
+ * User already owns this SKU or one of its components
6435
+ */
6436
+ OWNS_SKU_OR_BUNDLE_COMPONENT: 1,
6437
+ /**
6438
+ * User account is not on an eligible platform
6439
+ */
6440
+ PLATFORM_RESTRICTION: 2,
6441
+ } as const
6442
+ export type SKUIneligibilityReason =
6443
+ (typeof SKUIneligibilityReason)[keyof typeof SKUIneligibilityReason]
6444
+
5918
6445
  export interface SocialLayerSKUPurchaseEligibilityCallbackData {
5919
6446
  readonly eligible: boolean
6447
+ readonly ineligible_reason?: SKUIneligibilityReason | null | undefined
6448
+ readonly ineligible_reason_description?: string | null | undefined
5920
6449
  }
5921
6450
 
5922
6451
  export interface SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest {
@@ -6404,10 +6933,10 @@ export interface GetCurrentUserApplicationEntitlementsParams {
6404
6933
  }
6405
6934
 
6406
6935
  export type GetCurrentUserApplicationEntitlements200 =
6407
- ReadonlyArray<null | EntitlementResponse>
6936
+ ReadonlyArray<EntitlementResponse>
6408
6937
 
6409
6938
  export interface ApplicationUserRoleConnectionResponse {
6410
- readonly platform_name?: string | null | undefined
6939
+ readonly platform_name?: string | undefined
6411
6940
  readonly platform_username?: string | null | undefined
6412
6941
  readonly metadata?: Record<string, unknown> | undefined
6413
6942
  }
@@ -7559,6 +8088,11 @@ export const make = (
7559
8088
  "4xx": "ErrorResponse",
7560
8089
  }),
7561
8090
  ),
8091
+ updateVoiceChannelStatus: (channelId, options) =>
8092
+ HttpClientRequest.put(`/channels/${channelId}/voice-status`).pipe(
8093
+ HttpClientRequest.bodyJsonUnsafe(options),
8094
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8095
+ ),
7562
8096
  listChannelWebhooks: channelId =>
7563
8097
  HttpClientRequest.get(`/channels/${channelId}/webhooks`).pipe(
7564
8098
  onRequest(["2xx"], {
@@ -7848,6 +8382,39 @@ export const make = (
7848
8382
  ).pipe(
7849
8383
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7850
8384
  ),
8385
+ guildSearch: (guildId, options) =>
8386
+ HttpClientRequest.get(`/guilds/${guildId}/messages/search`).pipe(
8387
+ HttpClientRequest.setUrlParams({
8388
+ sort_by: options?.["sort_by"] as any,
8389
+ sort_order: options?.["sort_order"] as any,
8390
+ content: options?.["content"] as any,
8391
+ slop: options?.["slop"] as any,
8392
+ author_id: options?.["author_id"] as any,
8393
+ author_type: options?.["author_type"] as any,
8394
+ mentions: options?.["mentions"] as any,
8395
+ mentions_role_id: options?.["mentions_role_id"] as any,
8396
+ replied_to_user_id: options?.["replied_to_user_id"] as any,
8397
+ replied_to_message_id: options?.["replied_to_message_id"] as any,
8398
+ mention_everyone: options?.["mention_everyone"] as any,
8399
+ min_id: options?.["min_id"] as any,
8400
+ max_id: options?.["max_id"] as any,
8401
+ limit: options?.["limit"] as any,
8402
+ offset: options?.["offset"] as any,
8403
+ has: options?.["has"] as any,
8404
+ link_hostname: options?.["link_hostname"] as any,
8405
+ embed_provider: options?.["embed_provider"] as any,
8406
+ embed_type: options?.["embed_type"] as any,
8407
+ attachment_extension: options?.["attachment_extension"] as any,
8408
+ attachment_filename: options?.["attachment_filename"] as any,
8409
+ pinned: options?.["pinned"] as any,
8410
+ include_nsfw: options?.["include_nsfw"] as any,
8411
+ channel_id: options?.["channel_id"] as any,
8412
+ }),
8413
+ onRequest(["200", "202"], {
8414
+ "429": "RatelimitedResponse",
8415
+ "4xx": "ErrorResponse",
8416
+ }),
8417
+ ),
7851
8418
  getGuildNewMemberWelcome: guildId =>
7852
8419
  HttpClientRequest.get(`/guilds/${guildId}/new-member-welcome`).pipe(
7853
8420
  onRequest(["2xx"], {
@@ -9460,6 +10027,18 @@ export interface DiscordRest {
9460
10027
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9461
10028
  | DiscordRestError<"ErrorResponse", ErrorResponse>
9462
10029
  >
10030
+ /**
10031
+ * Set a voice channel's status.
10032
+ */
10033
+ readonly updateVoiceChannelStatus: (
10034
+ channelId: string,
10035
+ options: UpdateVoiceChannelStatusRequest,
10036
+ ) => Effect.Effect<
10037
+ void,
10038
+ | HttpClientError.HttpClientError
10039
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10040
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10041
+ >
9463
10042
  readonly listChannelWebhooks: (
9464
10043
  channelId: string,
9465
10044
  ) => Effect.Effect<
@@ -9797,6 +10376,15 @@ export interface DiscordRest {
9797
10376
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9798
10377
  | DiscordRestError<"ErrorResponse", ErrorResponse>
9799
10378
  >
10379
+ readonly guildSearch: (
10380
+ guildId: string,
10381
+ options?: GuildSearchParams | undefined,
10382
+ ) => Effect.Effect<
10383
+ GuildSearchResponse | SearchIndexNotReadyResponse,
10384
+ | HttpClientError.HttpClientError
10385
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10386
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10387
+ >
9800
10388
  readonly getGuildNewMemberWelcome: (
9801
10389
  guildId: string,
9802
10390
  ) => Effect.Effect<