dfx 0.124.0 → 0.124.2

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.
@@ -21,9 +21,9 @@ export type NameplatePalette = string
21
21
 
22
22
  export interface UserNameplateResponse {
23
23
  readonly sku_id?: SnowflakeType | null | undefined
24
- readonly asset?: string | null | undefined
25
- readonly label?: string | null | undefined
26
- readonly palette?: NameplatePalette | null | undefined
24
+ readonly asset: string
25
+ readonly label: string
26
+ readonly palette: NameplatePalette
27
27
  }
28
28
 
29
29
  export interface UserCollectiblesResponse {
@@ -44,8 +44,8 @@ export interface UserResponse {
44
44
  readonly discriminator: string
45
45
  readonly public_flags: number
46
46
  readonly flags: Int53Type
47
- readonly bot?: boolean | null | undefined
48
- readonly system?: boolean | null | undefined
47
+ readonly bot?: boolean | undefined
48
+ readonly system?: boolean | undefined
49
49
  readonly banner?: string | null | undefined
50
50
  readonly accent_color?: number | null | undefined
51
51
  readonly global_name?: string | null | undefined
@@ -249,26 +249,23 @@ export interface PrivateApplicationResponse {
249
249
  readonly icon?: string | null | undefined
250
250
  readonly description: string
251
251
  readonly type?: ApplicationTypes | null | undefined
252
- readonly cover_image?: string | null | undefined
253
- readonly primary_sku_id?: SnowflakeType | null | undefined
254
- readonly bot?: UserResponse | null | undefined
255
- readonly slug?: string | null | undefined
256
- readonly guild_id?: SnowflakeType | null | undefined
257
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined
258
- readonly bot_public?: boolean | null | undefined
259
- readonly bot_require_code_grant?: boolean | null | undefined
260
- readonly terms_of_service_url?: string | null | undefined
261
- readonly privacy_policy_url?: string | null | undefined
262
- readonly custom_install_url?: string | null | undefined
263
- readonly install_params?:
264
- | ApplicationOAuth2InstallParamsResponse
265
- | null
266
- | undefined
267
- readonly integration_types_config?: Record<string, unknown> | null | undefined
252
+ readonly cover_image?: string | undefined
253
+ readonly primary_sku_id?: SnowflakeType | undefined
254
+ readonly bot?: UserResponse | undefined
255
+ readonly slug?: string | undefined
256
+ readonly guild_id?: SnowflakeType | undefined
257
+ readonly rpc_origins?: ReadonlyArray<string> | undefined
258
+ readonly bot_public?: boolean | undefined
259
+ readonly bot_require_code_grant?: boolean | undefined
260
+ readonly terms_of_service_url?: string | undefined
261
+ readonly privacy_policy_url?: string | undefined
262
+ readonly custom_install_url?: string | undefined
263
+ readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined
264
+ readonly integration_types_config?: Record<string, unknown> | undefined
268
265
  readonly verify_key: string
269
266
  readonly flags: number
270
267
  readonly max_participants?: number | null | undefined
271
- readonly tags?: ReadonlyArray<string> | null | undefined
268
+ readonly tags?: ReadonlyArray<string> | undefined
272
269
  readonly redirect_uris: ReadonlyArray<string>
273
270
  readonly interactions_endpoint_url?: string | null | undefined
274
271
  readonly role_connections_verification_url?: string | null | undefined
@@ -404,11 +401,7 @@ export interface EmbeddedActivityInstance {
404
401
  readonly application_id: SnowflakeType
405
402
  readonly instance_id: string
406
403
  readonly launch_id: string
407
- readonly location?:
408
- | GuildChannelLocation
409
- | PrivateChannelLocation
410
- | null
411
- | undefined
404
+ readonly location: GuildChannelLocation | PrivateChannelLocation
412
405
  readonly users: ReadonlyArray<SnowflakeType>
413
406
  }
414
407
 
@@ -422,26 +415,23 @@ export interface ApplicationResponse {
422
415
  readonly icon?: string | null | undefined
423
416
  readonly description: string
424
417
  readonly type?: ApplicationTypes | null | undefined
425
- readonly cover_image?: string | null | undefined
426
- readonly primary_sku_id?: SnowflakeType | null | undefined
427
- readonly bot?: UserResponse | null | undefined
428
- readonly slug?: string | null | undefined
429
- readonly guild_id?: SnowflakeType | null | undefined
430
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined
431
- readonly bot_public?: boolean | null | undefined
432
- readonly bot_require_code_grant?: boolean | null | undefined
433
- readonly terms_of_service_url?: string | null | undefined
434
- readonly privacy_policy_url?: string | null | undefined
435
- readonly custom_install_url?: string | null | undefined
436
- readonly install_params?:
437
- | ApplicationOAuth2InstallParamsResponse
438
- | null
439
- | undefined
440
- readonly integration_types_config?: Record<string, unknown> | null | undefined
418
+ readonly cover_image?: string | undefined
419
+ readonly primary_sku_id?: SnowflakeType | undefined
420
+ readonly bot?: UserResponse | undefined
421
+ readonly slug?: string | undefined
422
+ readonly guild_id?: SnowflakeType | undefined
423
+ readonly rpc_origins?: ReadonlyArray<string> | undefined
424
+ readonly bot_public?: boolean | undefined
425
+ readonly bot_require_code_grant?: boolean | undefined
426
+ readonly terms_of_service_url?: string | undefined
427
+ readonly privacy_policy_url?: string | undefined
428
+ readonly custom_install_url?: string | undefined
429
+ readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined
430
+ readonly integration_types_config?: Record<string, unknown> | undefined
441
431
  readonly verify_key: string
442
432
  readonly flags: number
443
433
  readonly max_participants?: number | null | undefined
444
- readonly tags?: ReadonlyArray<string> | null | undefined
434
+ readonly tags?: ReadonlyArray<string> | undefined
445
435
  }
446
436
 
447
437
  export interface AttachmentResponse {
@@ -450,17 +440,17 @@ export interface AttachmentResponse {
450
440
  readonly size: number
451
441
  readonly url: string
452
442
  readonly proxy_url: string
453
- readonly width?: number | null | undefined
454
- readonly height?: number | null | undefined
455
- readonly duration_secs?: number | null | undefined
456
- readonly waveform?: string | null | undefined
457
- readonly description?: string | null | undefined
458
- readonly content_type?: string | null | undefined
459
- readonly ephemeral?: boolean | null | undefined
443
+ readonly width?: number | undefined
444
+ readonly height?: number | undefined
445
+ readonly duration_secs?: number | undefined
446
+ readonly waveform?: string | undefined
447
+ readonly description?: string | undefined
448
+ readonly content_type?: string | undefined
449
+ readonly ephemeral?: boolean | undefined
460
450
  readonly title?: string | null | undefined
461
- readonly application?: ApplicationResponse | null | undefined
462
- readonly clip_created_at?: string | null | undefined
463
- readonly clip_participants?: ReadonlyArray<UserResponse> | null | undefined
451
+ readonly application?: ApplicationResponse | undefined
452
+ readonly clip_created_at?: string | undefined
453
+ readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
464
454
  }
465
455
 
466
456
  export interface ActivitiesAttachmentResponse {
@@ -574,29 +564,29 @@ export type ApplicationCommandOptionType =
574
564
  export interface ApplicationCommandAttachmentOptionResponse {
575
565
  readonly type: 11
576
566
  readonly name: string
577
- readonly name_localized?: string | null | undefined
567
+ readonly name_localized?: string | undefined
578
568
  readonly name_localizations?: Record<string, unknown> | null | undefined
579
569
  readonly description: string
580
- readonly description_localized?: string | null | undefined
570
+ readonly description_localized?: string | undefined
581
571
  readonly description_localizations?:
582
572
  | Record<string, unknown>
583
573
  | null
584
574
  | undefined
585
- readonly required?: boolean | null | undefined
575
+ readonly required?: boolean | undefined
586
576
  }
587
577
 
588
578
  export interface ApplicationCommandBooleanOptionResponse {
589
579
  readonly type: 5
590
580
  readonly name: string
591
- readonly name_localized?: string | null | undefined
581
+ readonly name_localized?: string | undefined
592
582
  readonly name_localizations?: Record<string, unknown> | null | undefined
593
583
  readonly description: string
594
- readonly description_localized?: string | null | undefined
584
+ readonly description_localized?: string | undefined
595
585
  readonly description_localizations?:
596
586
  | Record<string, unknown>
597
587
  | null
598
588
  | undefined
599
- readonly required?: boolean | null | undefined
589
+ readonly required?: boolean | undefined
600
590
  }
601
591
 
602
592
  export const ChannelTypes = {
@@ -654,21 +644,21 @@ export type ChannelTypes = (typeof ChannelTypes)[keyof typeof ChannelTypes]
654
644
  export interface ApplicationCommandChannelOptionResponse {
655
645
  readonly type: 7
656
646
  readonly name: string
657
- readonly name_localized?: string | null | undefined
647
+ readonly name_localized?: string | undefined
658
648
  readonly name_localizations?: Record<string, unknown> | null | undefined
659
649
  readonly description: string
660
- readonly description_localized?: string | null | undefined
650
+ readonly description_localized?: string | undefined
661
651
  readonly description_localizations?:
662
652
  | Record<string, unknown>
663
653
  | null
664
654
  | undefined
665
- readonly required?: boolean | null | undefined
666
- readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
655
+ readonly required?: boolean | undefined
656
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
667
657
  }
668
658
 
669
659
  export interface ApplicationCommandOptionIntegerChoiceResponse {
670
660
  readonly name: string
671
- readonly name_localized?: string | null | undefined
661
+ readonly name_localized?: string | undefined
672
662
  readonly name_localizations?: Record<string, unknown> | null | undefined
673
663
  readonly value: Int53Type
674
664
  }
@@ -676,41 +666,40 @@ export interface ApplicationCommandOptionIntegerChoiceResponse {
676
666
  export interface ApplicationCommandIntegerOptionResponse {
677
667
  readonly type: 4
678
668
  readonly name: string
679
- readonly name_localized?: string | null | undefined
669
+ readonly name_localized?: string | undefined
680
670
  readonly name_localizations?: Record<string, unknown> | null | undefined
681
671
  readonly description: string
682
- readonly description_localized?: string | null | undefined
672
+ readonly description_localized?: string | undefined
683
673
  readonly description_localizations?:
684
674
  | Record<string, unknown>
685
675
  | null
686
676
  | undefined
687
- readonly required?: boolean | null | undefined
688
- readonly autocomplete?: boolean | null | undefined
677
+ readonly required?: boolean | undefined
678
+ readonly autocomplete?: boolean | undefined
689
679
  readonly choices?:
690
680
  | ReadonlyArray<ApplicationCommandOptionIntegerChoiceResponse>
691
- | null
692
681
  | undefined
693
- readonly min_value?: Int53Type | null | undefined
694
- readonly max_value?: Int53Type | null | undefined
682
+ readonly min_value?: Int53Type | undefined
683
+ readonly max_value?: Int53Type | undefined
695
684
  }
696
685
 
697
686
  export interface ApplicationCommandMentionableOptionResponse {
698
687
  readonly type: 9
699
688
  readonly name: string
700
- readonly name_localized?: string | null | undefined
689
+ readonly name_localized?: string | undefined
701
690
  readonly name_localizations?: Record<string, unknown> | null | undefined
702
691
  readonly description: string
703
- readonly description_localized?: string | null | undefined
692
+ readonly description_localized?: string | undefined
704
693
  readonly description_localizations?:
705
694
  | Record<string, unknown>
706
695
  | null
707
696
  | undefined
708
- readonly required?: boolean | null | undefined
697
+ readonly required?: boolean | undefined
709
698
  }
710
699
 
711
700
  export interface ApplicationCommandOptionNumberChoiceResponse {
712
701
  readonly name: string
713
- readonly name_localized?: string | null | undefined
702
+ readonly name_localized?: string | undefined
714
703
  readonly name_localizations?: Record<string, unknown> | null | undefined
715
704
  readonly value: number
716
705
  }
@@ -718,41 +707,40 @@ export interface ApplicationCommandOptionNumberChoiceResponse {
718
707
  export interface ApplicationCommandNumberOptionResponse {
719
708
  readonly type: 10
720
709
  readonly name: string
721
- readonly name_localized?: string | null | undefined
710
+ readonly name_localized?: string | undefined
722
711
  readonly name_localizations?: Record<string, unknown> | null | undefined
723
712
  readonly description: string
724
- readonly description_localized?: string | null | undefined
713
+ readonly description_localized?: string | undefined
725
714
  readonly description_localizations?:
726
715
  | Record<string, unknown>
727
716
  | null
728
717
  | undefined
729
- readonly required?: boolean | null | undefined
730
- readonly autocomplete?: boolean | null | undefined
718
+ readonly required?: boolean | undefined
719
+ readonly autocomplete?: boolean | undefined
731
720
  readonly choices?:
732
721
  | ReadonlyArray<ApplicationCommandOptionNumberChoiceResponse>
733
- | null
734
722
  | undefined
735
- readonly min_value?: number | null | undefined
736
- readonly max_value?: number | null | undefined
723
+ readonly min_value?: number | undefined
724
+ readonly max_value?: number | undefined
737
725
  }
738
726
 
739
727
  export interface ApplicationCommandRoleOptionResponse {
740
728
  readonly type: 8
741
729
  readonly name: string
742
- readonly name_localized?: string | null | undefined
730
+ readonly name_localized?: string | undefined
743
731
  readonly name_localizations?: Record<string, unknown> | null | undefined
744
732
  readonly description: string
745
- readonly description_localized?: string | null | undefined
733
+ readonly description_localized?: string | undefined
746
734
  readonly description_localizations?:
747
735
  | Record<string, unknown>
748
736
  | null
749
737
  | undefined
750
- readonly required?: boolean | null | undefined
738
+ readonly required?: boolean | undefined
751
739
  }
752
740
 
753
741
  export interface ApplicationCommandOptionStringChoiceResponse {
754
742
  readonly name: string
755
- readonly name_localized?: string | null | undefined
743
+ readonly name_localized?: string | undefined
756
744
  readonly name_localizations?: Record<string, unknown> | null | undefined
757
745
  readonly value: string
758
746
  }
@@ -760,50 +748,49 @@ export interface ApplicationCommandOptionStringChoiceResponse {
760
748
  export interface ApplicationCommandStringOptionResponse {
761
749
  readonly type: 3
762
750
  readonly name: string
763
- readonly name_localized?: string | null | undefined
751
+ readonly name_localized?: string | undefined
764
752
  readonly name_localizations?: Record<string, unknown> | null | undefined
765
753
  readonly description: string
766
- readonly description_localized?: string | null | undefined
754
+ readonly description_localized?: string | undefined
767
755
  readonly description_localizations?:
768
756
  | Record<string, unknown>
769
757
  | null
770
758
  | undefined
771
- readonly required?: boolean | null | undefined
772
- readonly autocomplete?: boolean | null | undefined
759
+ readonly required?: boolean | undefined
760
+ readonly autocomplete?: boolean | undefined
773
761
  readonly choices?:
774
762
  | ReadonlyArray<ApplicationCommandOptionStringChoiceResponse>
775
- | null
776
763
  | undefined
777
- readonly min_length?: number | null | undefined
778
- readonly max_length?: number | null | undefined
764
+ readonly min_length?: number | undefined
765
+ readonly max_length?: number | undefined
779
766
  }
780
767
 
781
768
  export interface ApplicationCommandUserOptionResponse {
782
769
  readonly type: 6
783
770
  readonly name: string
784
- readonly name_localized?: string | null | undefined
771
+ readonly name_localized?: string | undefined
785
772
  readonly name_localizations?: Record<string, unknown> | null | undefined
786
773
  readonly description: string
787
- readonly description_localized?: string | null | undefined
774
+ readonly description_localized?: string | undefined
788
775
  readonly description_localizations?:
789
776
  | Record<string, unknown>
790
777
  | null
791
778
  | undefined
792
- readonly required?: boolean | null | undefined
779
+ readonly required?: boolean | undefined
793
780
  }
794
781
 
795
782
  export interface ApplicationCommandSubcommandOptionResponse {
796
783
  readonly type: 1
797
784
  readonly name: string
798
- readonly name_localized?: string | null | undefined
785
+ readonly name_localized?: string | undefined
799
786
  readonly name_localizations?: Record<string, unknown> | null | undefined
800
787
  readonly description: string
801
- readonly description_localized?: string | null | undefined
788
+ readonly description_localized?: string | undefined
802
789
  readonly description_localizations?:
803
790
  | Record<string, unknown>
804
791
  | null
805
792
  | undefined
806
- readonly required?: boolean | null | undefined
793
+ readonly required?: boolean | undefined
807
794
  readonly options?:
808
795
  | ReadonlyArray<
809
796
  | ApplicationCommandAttachmentOptionResponse
@@ -816,25 +803,23 @@ export interface ApplicationCommandSubcommandOptionResponse {
816
803
  | ApplicationCommandStringOptionResponse
817
804
  | ApplicationCommandUserOptionResponse
818
805
  >
819
- | null
820
806
  | undefined
821
807
  }
822
808
 
823
809
  export interface ApplicationCommandSubcommandGroupOptionResponse {
824
810
  readonly type: 2
825
811
  readonly name: string
826
- readonly name_localized?: string | null | undefined
812
+ readonly name_localized?: string | undefined
827
813
  readonly name_localizations?: Record<string, unknown> | null | undefined
828
814
  readonly description: string
829
- readonly description_localized?: string | null | undefined
815
+ readonly description_localized?: string | undefined
830
816
  readonly description_localizations?:
831
817
  | Record<string, unknown>
832
818
  | null
833
819
  | undefined
834
- readonly required?: boolean | null | undefined
820
+ readonly required?: boolean | undefined
835
821
  readonly options?:
836
822
  | ReadonlyArray<ApplicationCommandSubcommandOptionResponse>
837
- | null
838
823
  | undefined
839
824
  }
840
825
 
@@ -845,20 +830,19 @@ export interface ApplicationCommandResponse {
845
830
  readonly default_member_permissions?: string | null | undefined
846
831
  readonly type: ApplicationCommandType
847
832
  readonly name: string
848
- readonly name_localized?: string | null | undefined
833
+ readonly name_localized?: string | undefined
849
834
  readonly name_localizations?: Record<string, unknown> | null | undefined
850
835
  readonly description: string
851
- readonly description_localized?: string | null | undefined
836
+ readonly description_localized?: string | undefined
852
837
  readonly description_localizations?:
853
838
  | Record<string, unknown>
854
839
  | null
855
840
  | undefined
856
- readonly guild_id?: SnowflakeType | null | undefined
857
- readonly dm_permission?: boolean | null | undefined
841
+ readonly guild_id?: SnowflakeType | undefined
842
+ readonly dm_permission?: boolean | undefined
858
843
  readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined
859
844
  readonly integration_types?:
860
845
  | ReadonlyArray<ApplicationIntegrationType>
861
- | null
862
846
  | undefined
863
847
  readonly options?:
864
848
  | ReadonlyArray<
@@ -874,9 +858,8 @@ export interface ApplicationCommandResponse {
874
858
  | ApplicationCommandSubcommandOptionResponse
875
859
  | ApplicationCommandUserOptionResponse
876
860
  >
877
- | null
878
861
  | undefined
879
- readonly nsfw?: boolean | null | undefined
862
+ readonly nsfw?: boolean | undefined
880
863
  }
881
864
 
882
865
  export type ListApplicationCommands200 =
@@ -1188,7 +1171,7 @@ export interface ApplicationCommandPatchRequestPartial {
1188
1171
  export interface EmojiResponse {
1189
1172
  readonly id: SnowflakeType
1190
1173
  readonly name: string
1191
- readonly user?: UserResponse | null | undefined
1174
+ readonly user?: UserResponse | undefined
1192
1175
  readonly roles: ReadonlyArray<SnowflakeType>
1193
1176
  readonly require_colons: boolean
1194
1177
  readonly managed: boolean
@@ -1211,7 +1194,7 @@ export interface UpdateApplicationEmojiRequest {
1211
1194
 
1212
1195
  export interface GetEntitlementsParams {
1213
1196
  readonly user_id?: SnowflakeType | undefined
1214
- readonly sku_ids: string | ReadonlyArray<null | SnowflakeType>
1197
+ readonly sku_ids?: string | ReadonlyArray<null | SnowflakeType> | undefined
1215
1198
  readonly guild_id?: SnowflakeType | undefined
1216
1199
  readonly before?: SnowflakeType | undefined
1217
1200
  readonly after?: SnowflakeType | undefined
@@ -1488,7 +1471,18 @@ export const ForumLayout = {
1488
1471
  } as const
1489
1472
  export type ForumLayout = (typeof ForumLayout)[keyof typeof ForumLayout]
1490
1473
 
1491
- export type ThreadSearchTagSetting = string
1474
+ export const ThreadSearchTagSetting = {
1475
+ /**
1476
+ * The thread tags must contain all tags in the search query
1477
+ */
1478
+ MATCH_ALL: "match_all",
1479
+ /**
1480
+ * The thread tags must contain at least one of tags in the search query
1481
+ */
1482
+ MATCH_SOME: "match_some",
1483
+ } as const
1484
+ export type ThreadSearchTagSetting =
1485
+ (typeof ThreadSearchTagSetting)[keyof typeof ThreadSearchTagSetting]
1492
1486
 
1493
1487
  export interface GuildChannelResponse {
1494
1488
  readonly id: SnowflakeType
@@ -1499,25 +1493,21 @@ export interface GuildChannelResponse {
1499
1493
  readonly guild_id: SnowflakeType
1500
1494
  readonly name: string
1501
1495
  readonly parent_id?: SnowflakeType | null | undefined
1502
- readonly rate_limit_per_user?: number | null | undefined
1503
- readonly bitrate?: number | null | undefined
1504
- readonly user_limit?: number | null | undefined
1496
+ readonly rate_limit_per_user?: number | undefined
1497
+ readonly bitrate?: number | undefined
1498
+ readonly user_limit?: number | undefined
1505
1499
  readonly rtc_region?: string | null | undefined
1506
- readonly video_quality_mode?: VideoQualityModes | null | undefined
1500
+ readonly video_quality_mode?: VideoQualityModes | undefined
1507
1501
  readonly permissions?: string | null | undefined
1508
1502
  readonly topic?: string | null | undefined
1509
- readonly default_auto_archive_duration?:
1510
- | ThreadAutoArchiveDuration
1511
- | null
1512
- | undefined
1513
- readonly default_thread_rate_limit_per_user?: number | null | undefined
1503
+ readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined
1504
+ readonly default_thread_rate_limit_per_user?: number | undefined
1514
1505
  readonly position: number
1515
1506
  readonly permission_overwrites?:
1516
1507
  | ReadonlyArray<ChannelPermissionOverwriteResponse>
1517
- | null
1518
1508
  | undefined
1519
- readonly nsfw?: boolean | null | undefined
1520
- readonly available_tags?: ReadonlyArray<ForumTagResponse> | null | undefined
1509
+ readonly nsfw?: boolean | undefined
1510
+ readonly available_tags?: ReadonlyArray<ForumTagResponse> | undefined
1521
1511
  readonly default_reaction_emoji?:
1522
1512
  | DefaultReactionEmojiResponse
1523
1513
  | null
@@ -1525,8 +1515,8 @@ export interface GuildChannelResponse {
1525
1515
  readonly default_sort_order?: ThreadSortOrder | null | undefined
1526
1516
  readonly default_forum_layout?: ForumLayout | null | undefined
1527
1517
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
1528
- readonly hd_streaming_until?: string | null | undefined
1529
- readonly hd_streaming_buyer_id?: SnowflakeType | null | undefined
1518
+ readonly hd_streaming_until?: string | undefined
1519
+ readonly hd_streaming_buyer_id?: SnowflakeType | undefined
1530
1520
  }
1531
1521
 
1532
1522
  export interface PrivateChannelResponse {
@@ -1547,9 +1537,9 @@ export interface PrivateGroupChannelResponse {
1547
1537
  readonly recipients: ReadonlyArray<UserResponse>
1548
1538
  readonly name?: string | null | undefined
1549
1539
  readonly icon?: string | null | undefined
1550
- readonly owner_id?: SnowflakeType | null | undefined
1551
- readonly managed?: boolean | null | undefined
1552
- readonly application_id?: SnowflakeType | null | undefined
1540
+ readonly owner_id: SnowflakeType
1541
+ readonly managed?: boolean | undefined
1542
+ readonly application_id?: SnowflakeType | undefined
1553
1543
  }
1554
1544
 
1555
1545
  export interface ThreadMetadataResponse {
@@ -1557,8 +1547,8 @@ export interface ThreadMetadataResponse {
1557
1547
  readonly archive_timestamp?: string | null | undefined
1558
1548
  readonly auto_archive_duration: ThreadAutoArchiveDuration
1559
1549
  readonly locked: boolean
1560
- readonly create_timestamp?: string | null | undefined
1561
- readonly invitable?: boolean | null | undefined
1550
+ readonly create_timestamp?: string | undefined
1551
+ readonly invitable?: boolean | undefined
1562
1552
  }
1563
1553
 
1564
1554
  export interface GuildMemberResponse {
@@ -1575,6 +1565,7 @@ export interface GuildMemberResponse {
1575
1565
  readonly pending: boolean
1576
1566
  readonly premium_since?: string | null | undefined
1577
1567
  readonly roles: ReadonlyArray<SnowflakeType>
1568
+ readonly collectibles?: UserCollectiblesResponse | null | undefined
1578
1569
  readonly user: UserResponse
1579
1570
  readonly mute: boolean
1580
1571
  readonly deaf: boolean
@@ -1585,7 +1576,7 @@ export interface ThreadMemberResponse {
1585
1576
  readonly user_id: SnowflakeType
1586
1577
  readonly join_timestamp: string
1587
1578
  readonly flags: number
1588
- readonly member?: GuildMemberResponse | null | undefined
1579
+ readonly member?: GuildMemberResponse | undefined
1589
1580
  }
1590
1581
 
1591
1582
  export interface ThreadResponse {
@@ -1597,19 +1588,19 @@ export interface ThreadResponse {
1597
1588
  readonly guild_id: SnowflakeType
1598
1589
  readonly name: string
1599
1590
  readonly parent_id?: SnowflakeType | null | undefined
1600
- readonly rate_limit_per_user?: number | null | undefined
1601
- readonly bitrate?: number | null | undefined
1602
- readonly user_limit?: number | null | undefined
1591
+ readonly rate_limit_per_user?: number | undefined
1592
+ readonly bitrate?: number | undefined
1593
+ readonly user_limit?: number | undefined
1603
1594
  readonly rtc_region?: string | null | undefined
1604
- readonly video_quality_mode?: VideoQualityModes | null | undefined
1595
+ readonly video_quality_mode?: VideoQualityModes | undefined
1605
1596
  readonly permissions?: string | null | undefined
1606
1597
  readonly owner_id: SnowflakeType
1607
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined
1598
+ readonly thread_metadata: ThreadMetadataResponse
1608
1599
  readonly message_count: number
1609
1600
  readonly member_count: number
1610
1601
  readonly total_message_sent: number
1611
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined
1612
- readonly member?: ThreadMemberResponse | null | undefined
1602
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined
1603
+ readonly member?: ThreadMemberResponse | undefined
1613
1604
  }
1614
1605
 
1615
1606
  export type GetChannel200 =
@@ -1739,36 +1730,35 @@ export interface InviteChannelResponse {
1739
1730
  readonly id: SnowflakeType
1740
1731
  readonly type: ChannelTypes
1741
1732
  readonly name?: string | null | undefined
1742
- readonly icon?: string | null | undefined
1733
+ readonly icon?: string | undefined
1743
1734
  readonly recipients?:
1744
1735
  | ReadonlyArray<InviteChannelRecipientResponse>
1745
- | null
1746
1736
  | undefined
1747
1737
  }
1748
1738
 
1749
1739
  export interface FriendInviteResponse {
1750
- readonly type?: 2 | null | undefined
1740
+ readonly type: 2
1751
1741
  readonly code: string
1752
- readonly inviter?: UserResponse | null | undefined
1753
- readonly max_age?: number | null | undefined
1754
- readonly created_at?: string | null | undefined
1742
+ readonly inviter?: UserResponse | undefined
1743
+ readonly max_age?: number | undefined
1744
+ readonly created_at?: string | undefined
1755
1745
  readonly expires_at?: string | null | undefined
1756
- readonly friends_count?: number | null | undefined
1746
+ readonly friends_count?: number | undefined
1757
1747
  readonly channel?: InviteChannelResponse | null | undefined
1758
- readonly is_contact?: boolean | null | undefined
1759
- readonly uses?: number | null | undefined
1760
- readonly max_uses?: number | null | undefined
1761
- readonly flags?: number | null | undefined
1748
+ readonly is_contact?: boolean | undefined
1749
+ readonly uses?: number | undefined
1750
+ readonly max_uses?: number | undefined
1751
+ readonly flags?: number | undefined
1762
1752
  }
1763
1753
 
1764
1754
  export interface GroupDMInviteResponse {
1765
- readonly type?: 1 | null | undefined
1755
+ readonly type: 1
1766
1756
  readonly code: string
1767
- readonly inviter?: UserResponse | null | undefined
1768
- readonly max_age?: number | null | undefined
1769
- readonly created_at?: string | null | undefined
1757
+ readonly inviter?: UserResponse | undefined
1758
+ readonly max_age?: number | undefined
1759
+ readonly created_at?: string | undefined
1770
1760
  readonly expires_at?: string | null | undefined
1771
- readonly channel?: InviteChannelResponse | null | undefined
1761
+ readonly channel: InviteChannelResponse
1772
1762
  readonly approximate_member_count?: number | null | undefined
1773
1763
  }
1774
1764
 
@@ -1931,7 +1921,7 @@ export interface InviteGuildResponse {
1931
1921
  readonly vanity_url_code?: string | null | undefined
1932
1922
  readonly nsfw_level?: GuildNSFWContentLevel | null | undefined
1933
1923
  readonly nsfw?: boolean | null | undefined
1934
- readonly premium_subscription_count?: number | null | undefined
1924
+ readonly premium_subscription_count: number
1935
1925
  }
1936
1926
 
1937
1927
  export const InviteTargetTypes = {
@@ -1948,26 +1938,23 @@ export interface InviteApplicationResponse {
1948
1938
  readonly icon?: string | null | undefined
1949
1939
  readonly description: string
1950
1940
  readonly type?: ApplicationTypes | null | undefined
1951
- readonly cover_image?: string | null | undefined
1952
- readonly primary_sku_id?: SnowflakeType | null | undefined
1953
- readonly bot?: UserResponse | null | undefined
1954
- readonly slug?: string | null | undefined
1955
- readonly guild_id?: SnowflakeType | null | undefined
1956
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined
1957
- readonly bot_public?: boolean | null | undefined
1958
- readonly bot_require_code_grant?: boolean | null | undefined
1959
- readonly terms_of_service_url?: string | null | undefined
1960
- readonly privacy_policy_url?: string | null | undefined
1961
- readonly custom_install_url?: string | null | undefined
1962
- readonly install_params?:
1963
- | ApplicationOAuth2InstallParamsResponse
1964
- | null
1965
- | undefined
1966
- readonly integration_types_config?: Record<string, unknown> | null | undefined
1941
+ readonly cover_image?: string | undefined
1942
+ readonly primary_sku_id?: SnowflakeType | undefined
1943
+ readonly bot?: UserResponse | undefined
1944
+ readonly slug?: string | undefined
1945
+ readonly guild_id?: SnowflakeType | undefined
1946
+ readonly rpc_origins?: ReadonlyArray<string> | undefined
1947
+ readonly bot_public?: boolean | undefined
1948
+ readonly bot_require_code_grant?: boolean | undefined
1949
+ readonly terms_of_service_url?: string | undefined
1950
+ readonly privacy_policy_url?: string | undefined
1951
+ readonly custom_install_url?: string | undefined
1952
+ readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined
1953
+ readonly integration_types_config?: Record<string, unknown> | undefined
1967
1954
  readonly verify_key: string
1968
1955
  readonly flags: number
1969
1956
  readonly max_participants?: number | null | undefined
1970
- readonly tags?: ReadonlyArray<string> | null | undefined
1957
+ readonly tags?: ReadonlyArray<string> | undefined
1971
1958
  }
1972
1959
 
1973
1960
  export const GuildScheduledEventStatuses = {
@@ -1993,8 +1980,8 @@ export type GuildScheduledEventPrivacyLevels = 2
1993
1980
  export interface ScheduledEventUserResponse {
1994
1981
  readonly guild_scheduled_event_id: SnowflakeType
1995
1982
  readonly user_id: SnowflakeType
1996
- readonly user?: UserResponse | null | undefined
1997
- readonly member?: GuildMemberResponse | null | undefined
1983
+ readonly user?: UserResponse | undefined
1984
+ readonly member?: GuildMemberResponse | undefined
1998
1985
  }
1999
1986
 
2000
1987
  export interface ScheduledEventResponse {
@@ -2004,44 +1991,44 @@ export interface ScheduledEventResponse {
2004
1991
  readonly description?: string | null | undefined
2005
1992
  readonly channel_id?: SnowflakeType | null | undefined
2006
1993
  readonly creator_id?: SnowflakeType | null | undefined
2007
- readonly creator?: UserResponse | null | undefined
1994
+ readonly creator?: UserResponse | undefined
2008
1995
  readonly image?: string | null | undefined
2009
1996
  readonly scheduled_start_time: string
2010
1997
  readonly scheduled_end_time?: string | null | undefined
2011
1998
  readonly status: GuildScheduledEventStatuses
2012
1999
  readonly entity_type: GuildScheduledEventEntityTypes
2013
2000
  readonly entity_id?: SnowflakeType | null | undefined
2014
- readonly user_count?: number | null | undefined
2001
+ readonly user_count?: number | undefined
2015
2002
  readonly privacy_level: GuildScheduledEventPrivacyLevels
2016
2003
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
2017
2004
  }
2018
2005
 
2019
2006
  export interface GuildInviteResponse {
2020
- readonly type?: 0 | null | undefined
2007
+ readonly type: 0
2021
2008
  readonly code: string
2022
- readonly inviter?: UserResponse | null | undefined
2023
- readonly max_age?: number | null | undefined
2024
- readonly created_at?: string | null | undefined
2009
+ readonly inviter?: UserResponse | undefined
2010
+ readonly max_age?: number | undefined
2011
+ readonly created_at?: string | undefined
2025
2012
  readonly expires_at?: string | null | undefined
2026
- readonly is_contact?: boolean | null | undefined
2027
- readonly flags?: number | null | undefined
2028
- readonly guild?: InviteGuildResponse | null | undefined
2029
- readonly guild_id?: SnowflakeType | null | undefined
2030
- readonly channel?: InviteChannelResponse | null | undefined
2031
- readonly target_type?: InviteTargetTypes | null | undefined
2032
- readonly target_user?: UserResponse | null | undefined
2033
- readonly target_application?: InviteApplicationResponse | null | undefined
2034
- readonly guild_scheduled_event?: ScheduledEventResponse | null | undefined
2035
- readonly uses?: number | null | undefined
2036
- readonly max_uses?: number | null | undefined
2037
- readonly temporary?: boolean | null | undefined
2013
+ readonly is_contact?: boolean | undefined
2014
+ readonly flags?: number | undefined
2015
+ readonly guild: InviteGuildResponse
2016
+ readonly guild_id: SnowflakeType
2017
+ readonly channel: InviteChannelResponse
2018
+ readonly target_type?: InviteTargetTypes | undefined
2019
+ readonly target_user?: UserResponse | undefined
2020
+ readonly target_application?: InviteApplicationResponse | undefined
2021
+ readonly guild_scheduled_event?: ScheduledEventResponse | undefined
2022
+ readonly uses?: number | undefined
2023
+ readonly max_uses?: number | undefined
2024
+ readonly temporary?: boolean | undefined
2038
2025
  readonly approximate_member_count?: number | null | undefined
2039
2026
  readonly approximate_presence_count?: number | null | undefined
2040
- readonly is_nickname_changeable?: boolean | null | undefined
2027
+ readonly is_nickname_changeable?: boolean | undefined
2041
2028
  }
2042
2029
 
2043
2030
  export type ListChannelInvites200 = ReadonlyArray<
2044
- FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
2031
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null
2045
2032
  >
2046
2033
 
2047
2034
  export interface CreateGroupDMInviteRequest {
@@ -2121,17 +2108,17 @@ export interface MessageAttachmentResponse {
2121
2108
  readonly size: number
2122
2109
  readonly url: string
2123
2110
  readonly proxy_url: string
2124
- readonly width?: number | null | undefined
2125
- readonly height?: number | null | undefined
2126
- readonly duration_secs?: number | null | undefined
2127
- readonly waveform?: string | null | undefined
2128
- readonly description?: string | null | undefined
2129
- readonly content_type?: string | null | undefined
2130
- readonly ephemeral?: boolean | null | undefined
2111
+ readonly width?: number | undefined
2112
+ readonly height?: number | undefined
2113
+ readonly duration_secs?: number | undefined
2114
+ readonly waveform?: string | undefined
2115
+ readonly description?: string | undefined
2116
+ readonly content_type?: string | undefined
2117
+ readonly ephemeral?: boolean | undefined
2131
2118
  readonly title?: string | null | undefined
2132
- readonly application?: ApplicationResponse | null | undefined
2133
- readonly clip_created_at?: string | null | undefined
2134
- readonly clip_participants?: ReadonlyArray<UserResponse> | null | undefined
2119
+ readonly application?: ApplicationResponse | undefined
2120
+ readonly clip_created_at?: string | undefined
2121
+ readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
2135
2122
  }
2136
2123
 
2137
2124
  export interface MessageEmbedFieldResponse {
@@ -2142,62 +2129,62 @@ export interface MessageEmbedFieldResponse {
2142
2129
 
2143
2130
  export interface MessageEmbedAuthorResponse {
2144
2131
  readonly name: string
2145
- readonly url?: string | null | undefined
2146
- readonly icon_url?: string | null | undefined
2147
- readonly proxy_icon_url?: string | null | undefined
2132
+ readonly url?: string | undefined
2133
+ readonly icon_url?: string | undefined
2134
+ readonly proxy_icon_url?: string | undefined
2148
2135
  }
2149
2136
 
2150
2137
  export interface MessageEmbedProviderResponse {
2151
2138
  readonly name: string
2152
- readonly url?: string | null | undefined
2139
+ readonly url?: string | undefined
2153
2140
  }
2154
2141
 
2155
2142
  export type UInt32Type = number
2156
2143
 
2157
2144
  export interface MessageEmbedImageResponse {
2158
- readonly url?: string | null | undefined
2159
- readonly proxy_url?: string | null | undefined
2160
- readonly width?: UInt32Type | null | undefined
2161
- readonly height?: UInt32Type | null | undefined
2162
- readonly content_type?: string | null | undefined
2163
- readonly placeholder?: string | null | undefined
2164
- readonly placeholder_version?: UInt32Type | null | undefined
2165
- readonly description?: string | null | undefined
2166
- readonly flags?: UInt32Type | null | undefined
2145
+ readonly url?: string | undefined
2146
+ readonly proxy_url?: string | undefined
2147
+ readonly width?: UInt32Type | undefined
2148
+ readonly height?: UInt32Type | undefined
2149
+ readonly content_type?: string | undefined
2150
+ readonly placeholder?: string | undefined
2151
+ readonly placeholder_version?: UInt32Type | undefined
2152
+ readonly description?: string | undefined
2153
+ readonly flags?: UInt32Type | undefined
2167
2154
  }
2168
2155
 
2169
2156
  export interface MessageEmbedVideoResponse {
2170
- readonly url?: string | null | undefined
2171
- readonly proxy_url?: string | null | undefined
2172
- readonly width?: UInt32Type | null | undefined
2173
- readonly height?: UInt32Type | null | undefined
2174
- readonly content_type?: string | null | undefined
2175
- readonly placeholder?: string | null | undefined
2176
- readonly placeholder_version?: UInt32Type | null | undefined
2177
- readonly description?: string | null | undefined
2178
- readonly flags?: UInt32Type | null | undefined
2157
+ readonly url?: string | undefined
2158
+ readonly proxy_url?: string | undefined
2159
+ readonly width?: UInt32Type | undefined
2160
+ readonly height?: UInt32Type | undefined
2161
+ readonly content_type?: string | undefined
2162
+ readonly placeholder?: string | undefined
2163
+ readonly placeholder_version?: UInt32Type | undefined
2164
+ readonly description?: string | undefined
2165
+ readonly flags?: UInt32Type | undefined
2179
2166
  }
2180
2167
 
2181
2168
  export interface MessageEmbedFooterResponse {
2182
2169
  readonly text: string
2183
- readonly icon_url?: string | null | undefined
2184
- readonly proxy_icon_url?: string | null | undefined
2170
+ readonly icon_url?: string | undefined
2171
+ readonly proxy_icon_url?: string | undefined
2185
2172
  }
2186
2173
 
2187
2174
  export interface MessageEmbedResponse {
2188
2175
  readonly type: string
2189
- readonly url?: string | null | undefined
2190
- readonly title?: string | null | undefined
2191
- readonly description?: string | null | undefined
2192
- readonly color?: number | null | undefined
2193
- readonly timestamp?: string | null | undefined
2194
- readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | null | undefined
2195
- readonly author?: MessageEmbedAuthorResponse | null | undefined
2196
- readonly provider?: MessageEmbedProviderResponse | null | undefined
2197
- readonly image?: MessageEmbedImageResponse | null | undefined
2198
- readonly thumbnail?: MessageEmbedImageResponse | null | undefined
2199
- readonly video?: MessageEmbedVideoResponse | null | undefined
2200
- readonly footer?: MessageEmbedFooterResponse | null | undefined
2176
+ readonly url?: string | undefined
2177
+ readonly title?: string | undefined
2178
+ readonly description?: string | undefined
2179
+ readonly color?: number | undefined
2180
+ readonly timestamp?: string | undefined
2181
+ readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | undefined
2182
+ readonly author?: MessageEmbedAuthorResponse | undefined
2183
+ readonly provider?: MessageEmbedProviderResponse | undefined
2184
+ readonly image?: MessageEmbedImageResponse | undefined
2185
+ readonly thumbnail?: MessageEmbedImageResponse | undefined
2186
+ readonly video?: MessageEmbedVideoResponse | undefined
2187
+ readonly footer?: MessageEmbedFooterResponse | undefined
2201
2188
  }
2202
2189
 
2203
2190
  export const MessageComponentTypes = {
@@ -2261,6 +2248,10 @@ export const MessageComponentTypes = {
2261
2248
  * Container component
2262
2249
  */
2263
2250
  CONTAINER: 17,
2251
+ /**
2252
+ * Label component
2253
+ */
2254
+ LABEL: 18,
2264
2255
  } as const
2265
2256
  export type MessageComponentTypes =
2266
2257
  (typeof MessageComponentTypes)[keyof typeof MessageComponentTypes]
@@ -2277,21 +2268,21 @@ export type ButtonStyleTypes =
2277
2268
  (typeof ButtonStyleTypes)[keyof typeof ButtonStyleTypes]
2278
2269
 
2279
2270
  export interface ComponentEmojiResponse {
2280
- readonly id?: SnowflakeType | null | undefined
2271
+ readonly id?: SnowflakeType | undefined
2281
2272
  readonly name: string
2282
- readonly animated?: boolean | null | undefined
2273
+ readonly animated?: boolean | undefined
2283
2274
  }
2284
2275
 
2285
2276
  export interface ButtonComponentResponse {
2286
2277
  readonly type: 2
2287
2278
  readonly id: number
2288
- readonly custom_id?: string | null | undefined
2279
+ readonly custom_id?: string | undefined
2289
2280
  readonly style: ButtonStyleTypes
2290
- readonly label?: string | null | undefined
2291
- readonly disabled?: boolean | null | undefined
2292
- readonly emoji?: ComponentEmojiResponse | null | undefined
2281
+ readonly label?: string | undefined
2282
+ readonly disabled?: boolean | undefined
2283
+ readonly emoji?: ComponentEmojiResponse | undefined
2293
2284
  readonly url?: string | null | undefined
2294
- readonly sku_id?: SnowflakeType | null | undefined
2285
+ readonly sku_id?: SnowflakeType | undefined
2295
2286
  }
2296
2287
 
2297
2288
  export const SnowflakeSelectDefaultValueTypes = {
@@ -2311,14 +2302,13 @@ export interface ChannelSelectComponentResponse {
2311
2302
  readonly type: 8
2312
2303
  readonly id: number
2313
2304
  readonly custom_id: string
2314
- readonly placeholder?: string | null | undefined
2305
+ readonly placeholder?: string | undefined
2315
2306
  readonly min_values?: number | null | undefined
2316
2307
  readonly max_values?: number | null | undefined
2317
- readonly disabled?: boolean | null | undefined
2318
- readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
2308
+ readonly disabled?: boolean | undefined
2309
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
2319
2310
  readonly default_values?:
2320
2311
  | ReadonlyArray<ChannelSelectDefaultValueResponse>
2321
- | null
2322
2312
  | undefined
2323
2313
  }
2324
2314
 
@@ -2336,15 +2326,14 @@ export interface MentionableSelectComponentResponse {
2336
2326
  readonly type: 7
2337
2327
  readonly id: number
2338
2328
  readonly custom_id: string
2339
- readonly placeholder?: string | null | undefined
2329
+ readonly placeholder?: string | undefined
2340
2330
  readonly min_values?: number | null | undefined
2341
2331
  readonly max_values?: number | null | undefined
2342
- readonly disabled?: boolean | null | undefined
2332
+ readonly disabled?: boolean | undefined
2343
2333
  readonly default_values?:
2344
2334
  | ReadonlyArray<
2345
2335
  RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse
2346
2336
  >
2347
- | null
2348
2337
  | undefined
2349
2338
  }
2350
2339
 
@@ -2352,32 +2341,31 @@ export interface RoleSelectComponentResponse {
2352
2341
  readonly type: 6
2353
2342
  readonly id: number
2354
2343
  readonly custom_id: string
2355
- readonly placeholder?: string | null | undefined
2344
+ readonly placeholder?: string | undefined
2356
2345
  readonly min_values?: number | null | undefined
2357
2346
  readonly max_values?: number | null | undefined
2358
- readonly disabled?: boolean | null | undefined
2347
+ readonly disabled?: boolean | undefined
2359
2348
  readonly default_values?:
2360
2349
  | ReadonlyArray<RoleSelectDefaultValueResponse>
2361
- | null
2362
2350
  | undefined
2363
2351
  }
2364
2352
 
2365
2353
  export interface StringSelectOptionResponse {
2366
2354
  readonly label: string
2367
2355
  readonly value: string
2368
- readonly description?: string | null | undefined
2369
- readonly emoji?: ComponentEmojiResponse | null | undefined
2370
- readonly default?: boolean | null | undefined
2356
+ readonly description?: string | undefined
2357
+ readonly emoji?: ComponentEmojiResponse | undefined
2358
+ readonly default?: boolean | undefined
2371
2359
  }
2372
2360
 
2373
2361
  export interface StringSelectComponentResponse {
2374
2362
  readonly type: 3
2375
2363
  readonly id: number
2376
2364
  readonly custom_id: string
2377
- readonly placeholder?: string | null | undefined
2365
+ readonly placeholder?: string | undefined
2378
2366
  readonly min_values?: number | null | undefined
2379
2367
  readonly max_values?: number | null | undefined
2380
- readonly disabled?: boolean | null | undefined
2368
+ readonly disabled?: boolean | undefined
2381
2369
  readonly options: ReadonlyArray<StringSelectOptionResponse>
2382
2370
  }
2383
2371
 
@@ -2400,9 +2388,9 @@ export interface TextInputComponentResponse {
2400
2388
  readonly custom_id: string
2401
2389
  readonly style: TextInputStyleTypes
2402
2390
  readonly label?: string | null | undefined
2403
- readonly value?: string | null | undefined
2404
- readonly placeholder?: string | null | undefined
2405
- readonly required?: boolean | null | undefined
2391
+ readonly value?: string | undefined
2392
+ readonly placeholder?: string | undefined
2393
+ readonly required?: boolean | undefined
2406
2394
  readonly min_length?: number | null | undefined
2407
2395
  readonly max_length?: number | null | undefined
2408
2396
  }
@@ -2411,31 +2399,27 @@ export interface UserSelectComponentResponse {
2411
2399
  readonly type: 5
2412
2400
  readonly id: number
2413
2401
  readonly custom_id: string
2414
- readonly placeholder?: string | null | undefined
2402
+ readonly placeholder?: string | undefined
2415
2403
  readonly min_values?: number | null | undefined
2416
2404
  readonly max_values?: number | null | undefined
2417
- readonly disabled?: boolean | null | undefined
2405
+ readonly disabled?: boolean | undefined
2418
2406
  readonly default_values?:
2419
2407
  | ReadonlyArray<UserSelectDefaultValueResponse>
2420
- | null
2421
2408
  | undefined
2422
2409
  }
2423
2410
 
2424
2411
  export interface ActionRowComponentResponse {
2425
2412
  readonly type: 1
2426
2413
  readonly id: number
2427
- readonly components?:
2428
- | ReadonlyArray<
2429
- | ButtonComponentResponse
2430
- | ChannelSelectComponentResponse
2431
- | MentionableSelectComponentResponse
2432
- | RoleSelectComponentResponse
2433
- | StringSelectComponentResponse
2434
- | TextInputComponentResponse
2435
- | UserSelectComponentResponse
2436
- >
2437
- | null
2438
- | undefined
2414
+ readonly components: ReadonlyArray<
2415
+ | ButtonComponentResponse
2416
+ | ChannelSelectComponentResponse
2417
+ | MentionableSelectComponentResponse
2418
+ | RoleSelectComponentResponse
2419
+ | StringSelectComponentResponse
2420
+ | TextInputComponentResponse
2421
+ | UserSelectComponentResponse
2422
+ >
2439
2423
  }
2440
2424
 
2441
2425
  export interface UnfurledMediaResponse {
@@ -2445,7 +2429,7 @@ export interface UnfurledMediaResponse {
2445
2429
  readonly width?: number | null | undefined
2446
2430
  readonly height?: number | null | undefined
2447
2431
  readonly content_type?: string | null | undefined
2448
- readonly attachment_id?: SnowflakeType | null | undefined
2432
+ readonly attachment_id?: SnowflakeType | undefined
2449
2433
  }
2450
2434
 
2451
2435
  export interface FileComponentResponse {
@@ -2525,13 +2509,6 @@ export interface ContainerComponentResponse {
2525
2509
  readonly spoiler: boolean
2526
2510
  }
2527
2511
 
2528
- export interface ResolvedObjectsResponse {
2529
- readonly users: Record<string, unknown>
2530
- readonly members: Record<string, unknown>
2531
- readonly channels: Record<string, unknown>
2532
- readonly roles: Record<string, unknown>
2533
- }
2534
-
2535
2512
  export const StickerTypes = {
2536
2513
  /**
2537
2514
  * an official sticker in a pack, part of Nitro or in a removed purchasable pack
@@ -2562,7 +2539,7 @@ export interface GuildStickerResponse {
2562
2539
  readonly description?: string | null | undefined
2563
2540
  readonly available: boolean
2564
2541
  readonly guild_id: SnowflakeType
2565
- readonly user?: UserResponse | null | undefined
2542
+ readonly user?: UserResponse | undefined
2566
2543
  }
2567
2544
 
2568
2545
  export interface StandardStickerResponse {
@@ -2595,9 +2572,9 @@ export interface BasicApplicationResponse {
2595
2572
  readonly icon?: string | null | undefined
2596
2573
  readonly description: string
2597
2574
  readonly type?: ApplicationTypes | null | undefined
2598
- readonly cover_image?: string | null | undefined
2599
- readonly primary_sku_id?: SnowflakeType | null | undefined
2600
- readonly bot?: UserResponse | null | undefined
2575
+ readonly cover_image?: string | undefined
2576
+ readonly primary_sku_id?: SnowflakeType | undefined
2577
+ readonly bot?: UserResponse | undefined
2601
2578
  }
2602
2579
 
2603
2580
  export const InteractionTypes = {
@@ -2629,17 +2606,17 @@ export interface MessageInteractionResponse {
2629
2606
  readonly id: SnowflakeType
2630
2607
  readonly type: InteractionTypes
2631
2608
  readonly name: string
2632
- readonly user?: UserResponse | null | undefined
2633
- readonly name_localized?: string | null | undefined
2609
+ readonly user?: UserResponse | undefined
2610
+ readonly name_localized?: string | undefined
2634
2611
  }
2635
2612
 
2636
2613
  export type MessageReferenceType = 0
2637
2614
 
2638
2615
  export interface MessageReferenceResponse {
2639
- readonly type?: MessageReferenceType | null | undefined
2616
+ readonly type: MessageReferenceType
2640
2617
  readonly channel_id: SnowflakeType
2641
- readonly message_id?: SnowflakeType | null | undefined
2642
- readonly guild_id?: SnowflakeType | null | undefined
2618
+ readonly message_id?: SnowflakeType | undefined
2619
+ readonly guild_id?: SnowflakeType | undefined
2643
2620
  }
2644
2621
 
2645
2622
  export interface MessageMentionChannelResponse {
@@ -2665,21 +2642,25 @@ export interface GuildProductPurchaseResponse {
2665
2642
 
2666
2643
  export interface PurchaseNotificationResponse {
2667
2644
  readonly type: PurchaseType
2668
- readonly guild_product_purchase?:
2669
- | GuildProductPurchaseResponse
2670
- | null
2671
- | undefined
2645
+ readonly guild_product_purchase?: GuildProductPurchaseResponse | undefined
2646
+ }
2647
+
2648
+ export interface ResolvedObjectsResponse {
2649
+ readonly users?: Record<string, unknown> | null | undefined
2650
+ readonly members?: Record<string, unknown> | null | undefined
2651
+ readonly channels?: Record<string, unknown> | null | undefined
2652
+ readonly roles?: Record<string, unknown> | null | undefined
2672
2653
  }
2673
2654
 
2674
2655
  export interface MessageReactionEmojiResponse {
2675
2656
  readonly id?: SnowflakeType | null | undefined
2676
2657
  readonly name?: string | null | undefined
2677
- readonly animated?: boolean | null | undefined
2658
+ readonly animated?: boolean | undefined
2678
2659
  }
2679
2660
 
2680
2661
  export interface PollMediaResponse {
2681
- readonly text?: string | null | undefined
2682
- readonly emoji?: MessageReactionEmojiResponse | null | undefined
2662
+ readonly text?: string | undefined
2663
+ readonly emoji?: MessageReactionEmojiResponse | undefined
2683
2664
  }
2684
2665
 
2685
2666
  export interface PollAnswerResponse {
@@ -2692,14 +2673,11 @@ export type PollLayoutTypes = number
2692
2673
  export interface PollResultsEntryResponse {
2693
2674
  readonly id: number
2694
2675
  readonly count: number
2695
- readonly me_voted?: boolean | null | undefined
2676
+ readonly me_voted: boolean
2696
2677
  }
2697
2678
 
2698
2679
  export interface PollResultsResponse {
2699
- readonly answer_counts?:
2700
- | ReadonlyArray<PollResultsEntryResponse>
2701
- | null
2702
- | undefined
2680
+ readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>
2703
2681
  readonly is_finalized: boolean
2704
2682
  }
2705
2683
 
@@ -2712,31 +2690,63 @@ export interface PollResponse {
2712
2690
  readonly results: PollResultsResponse
2713
2691
  }
2714
2692
 
2693
+ export const MessageShareCustomUserThemeBaseTheme = {
2694
+ /**
2695
+ * No base theme
2696
+ */
2697
+ UNSET: 0,
2698
+ /**
2699
+ * Dark base theme
2700
+ */
2701
+ DARK: 1,
2702
+ /**
2703
+ * Light base theme
2704
+ */
2705
+ LIGHT: 2,
2706
+ /**
2707
+ * Darker base theme
2708
+ */
2709
+ DARKER: 3,
2710
+ /**
2711
+ * Midnight base theme
2712
+ */
2713
+ MIDNIGHT: 4,
2714
+ } as const
2715
+ export type MessageShareCustomUserThemeBaseTheme =
2716
+ (typeof MessageShareCustomUserThemeBaseTheme)[keyof typeof MessageShareCustomUserThemeBaseTheme]
2717
+
2718
+ export interface CustomClientThemeResponse {
2719
+ readonly colors: ReadonlyArray<string>
2720
+ readonly gradient_angle: number
2721
+ readonly base_mix: number
2722
+ readonly base_theme: MessageShareCustomUserThemeBaseTheme
2723
+ }
2724
+
2715
2725
  export interface ApplicationCommandInteractionMetadataResponse {
2716
2726
  readonly id: SnowflakeType
2717
2727
  readonly type: 2
2718
- readonly user?: UserResponse | null | undefined
2728
+ readonly user?: UserResponse | undefined
2719
2729
  readonly authorizing_integration_owners: Record<string, unknown>
2720
- readonly original_response_message_id?: SnowflakeType | null | undefined
2721
- readonly target_user?: UserResponse | null | undefined
2722
- readonly target_message_id?: SnowflakeType | null | undefined
2730
+ readonly original_response_message_id?: SnowflakeType | undefined
2731
+ readonly target_user?: UserResponse | undefined
2732
+ readonly target_message_id?: SnowflakeType | undefined
2723
2733
  }
2724
2734
 
2725
2735
  export interface MessageComponentInteractionMetadataResponse {
2726
2736
  readonly id: SnowflakeType
2727
2737
  readonly type: 3
2728
- readonly user?: UserResponse | null | undefined
2738
+ readonly user?: UserResponse | undefined
2729
2739
  readonly authorizing_integration_owners: Record<string, unknown>
2730
- readonly original_response_message_id?: SnowflakeType | null | undefined
2740
+ readonly original_response_message_id?: SnowflakeType | undefined
2731
2741
  readonly interacted_message_id: SnowflakeType
2732
2742
  }
2733
2743
 
2734
2744
  export interface ModalSubmitInteractionMetadataResponse {
2735
2745
  readonly id: SnowflakeType
2736
2746
  readonly type: 5
2737
- readonly user?: UserResponse | null | undefined
2747
+ readonly user?: UserResponse | undefined
2738
2748
  readonly authorizing_integration_owners: Record<string, unknown>
2739
- readonly original_response_message_id?: SnowflakeType | null | undefined
2749
+ readonly original_response_message_id?: SnowflakeType | undefined
2740
2750
  readonly triggering_interaction_metadata:
2741
2751
  | ApplicationCommandInteractionMetadataResponse
2742
2752
  | MessageComponentInteractionMetadataResponse
@@ -2761,19 +2771,14 @@ export interface MinimalContentMessageResponse {
2761
2771
  | SeparatorComponentResponse
2762
2772
  | TextDisplayComponentResponse
2763
2773
  >
2764
- readonly resolved?: ResolvedObjectsResponse | null | undefined
2765
2774
  readonly stickers?:
2766
2775
  | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
2767
- | null
2768
- | undefined
2769
- readonly sticker_items?:
2770
- | ReadonlyArray<MessageStickerItemResponse>
2771
- | null
2772
2776
  | undefined
2777
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
2773
2778
  }
2774
2779
 
2775
2780
  export interface MessageSnapshotResponse {
2776
- readonly message?: MinimalContentMessageResponse | null | undefined
2781
+ readonly message: MinimalContentMessageResponse
2777
2782
  }
2778
2783
 
2779
2784
  export interface MessageReactionCountDetailsResponse {
@@ -2809,53 +2814,43 @@ export interface BasicMessageResponse {
2809
2814
  | SeparatorComponentResponse
2810
2815
  | TextDisplayComponentResponse
2811
2816
  >
2812
- readonly resolved?: ResolvedObjectsResponse | null | undefined
2813
2817
  readonly stickers?:
2814
2818
  | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
2815
- | null
2816
- | undefined
2817
- readonly sticker_items?:
2818
- | ReadonlyArray<MessageStickerItemResponse>
2819
- | null
2820
2819
  | undefined
2820
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
2821
2821
  readonly id: SnowflakeType
2822
2822
  readonly channel_id: SnowflakeType
2823
2823
  readonly author: UserResponse
2824
2824
  readonly pinned: boolean
2825
2825
  readonly mention_everyone: boolean
2826
2826
  readonly tts: boolean
2827
- readonly call?: MessageCallResponse | null | undefined
2828
- readonly activity?: MessageActivityResponse | null | undefined
2829
- readonly application?: BasicApplicationResponse | null | undefined
2830
- readonly application_id?: SnowflakeType | null | undefined
2831
- readonly interaction?: MessageInteractionResponse | null | undefined
2827
+ readonly call?: MessageCallResponse | undefined
2828
+ readonly activity?: MessageActivityResponse | undefined
2829
+ readonly application?: BasicApplicationResponse | undefined
2830
+ readonly application_id?: SnowflakeType | undefined
2831
+ readonly interaction?: MessageInteractionResponse | undefined
2832
2832
  readonly nonce?: number | string | null | undefined
2833
- readonly webhook_id?: SnowflakeType | null | undefined
2834
- readonly message_reference?: MessageReferenceResponse | null | undefined
2835
- readonly thread?: ThreadResponse | null | undefined
2833
+ readonly webhook_id?: SnowflakeType | undefined
2834
+ readonly message_reference?: MessageReferenceResponse | undefined
2835
+ readonly thread?: ThreadResponse | undefined
2836
2836
  readonly mention_channels?:
2837
2837
  | ReadonlyArray<null | MessageMentionChannelResponse>
2838
- | null
2839
2838
  | undefined
2840
2839
  readonly role_subscription_data?:
2841
2840
  | MessageRoleSubscriptionDataResponse
2842
- | null
2843
- | undefined
2844
- readonly purchase_notification?:
2845
- | PurchaseNotificationResponse
2846
- | null
2847
2841
  | undefined
2848
- readonly position?: number | null | undefined
2849
- readonly poll?: PollResponse | null | undefined
2842
+ readonly purchase_notification?: PurchaseNotificationResponse | undefined
2843
+ readonly position?: number | undefined
2844
+ readonly resolved?: ResolvedObjectsResponse | undefined
2845
+ readonly poll?: PollResponse | undefined
2846
+ readonly shared_client_theme?: CustomClientThemeResponse | null | undefined
2850
2847
  readonly interaction_metadata?:
2851
2848
  | ApplicationCommandInteractionMetadataResponse
2852
2849
  | MessageComponentInteractionMetadataResponse
2853
2850
  | ModalSubmitInteractionMetadataResponse
2854
- | null
2855
2851
  | undefined
2856
2852
  readonly message_snapshots?:
2857
2853
  | ReadonlyArray<MessageSnapshotResponse>
2858
- | null
2859
2854
  | undefined
2860
2855
  }
2861
2856
 
@@ -2878,55 +2873,45 @@ export interface MessageResponse {
2878
2873
  | SeparatorComponentResponse
2879
2874
  | TextDisplayComponentResponse
2880
2875
  >
2881
- readonly resolved?: ResolvedObjectsResponse | null | undefined
2882
2876
  readonly stickers?:
2883
2877
  | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
2884
- | null
2885
- | undefined
2886
- readonly sticker_items?:
2887
- | ReadonlyArray<MessageStickerItemResponse>
2888
- | null
2889
2878
  | undefined
2879
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
2890
2880
  readonly id: SnowflakeType
2891
2881
  readonly channel_id: SnowflakeType
2892
2882
  readonly author: UserResponse
2893
2883
  readonly pinned: boolean
2894
2884
  readonly mention_everyone: boolean
2895
2885
  readonly tts: boolean
2896
- readonly call?: MessageCallResponse | null | undefined
2897
- readonly activity?: MessageActivityResponse | null | undefined
2898
- readonly application?: BasicApplicationResponse | null | undefined
2899
- readonly application_id?: SnowflakeType | null | undefined
2900
- readonly interaction?: MessageInteractionResponse | null | undefined
2886
+ readonly call?: MessageCallResponse | undefined
2887
+ readonly activity?: MessageActivityResponse | undefined
2888
+ readonly application?: BasicApplicationResponse | undefined
2889
+ readonly application_id?: SnowflakeType | undefined
2890
+ readonly interaction?: MessageInteractionResponse | undefined
2901
2891
  readonly nonce?: number | string | null | undefined
2902
- readonly webhook_id?: SnowflakeType | null | undefined
2903
- readonly message_reference?: MessageReferenceResponse | null | undefined
2904
- readonly thread?: ThreadResponse | null | undefined
2892
+ readonly webhook_id?: SnowflakeType | undefined
2893
+ readonly message_reference?: MessageReferenceResponse | undefined
2894
+ readonly thread?: ThreadResponse | undefined
2905
2895
  readonly mention_channels?:
2906
2896
  | ReadonlyArray<null | MessageMentionChannelResponse>
2907
- | null
2908
2897
  | undefined
2909
2898
  readonly role_subscription_data?:
2910
2899
  | MessageRoleSubscriptionDataResponse
2911
- | null
2912
- | undefined
2913
- readonly purchase_notification?:
2914
- | PurchaseNotificationResponse
2915
- | null
2916
2900
  | undefined
2917
- readonly position?: number | null | undefined
2918
- readonly poll?: PollResponse | null | undefined
2901
+ readonly purchase_notification?: PurchaseNotificationResponse | undefined
2902
+ readonly position?: number | undefined
2903
+ readonly resolved?: ResolvedObjectsResponse | undefined
2904
+ readonly poll?: PollResponse | undefined
2905
+ readonly shared_client_theme?: CustomClientThemeResponse | null | undefined
2919
2906
  readonly interaction_metadata?:
2920
2907
  | ApplicationCommandInteractionMetadataResponse
2921
2908
  | MessageComponentInteractionMetadataResponse
2922
2909
  | ModalSubmitInteractionMetadataResponse
2923
- | null
2924
2910
  | undefined
2925
2911
  readonly message_snapshots?:
2926
2912
  | ReadonlyArray<MessageSnapshotResponse>
2927
- | null
2928
2913
  | undefined
2929
- readonly reactions?: ReadonlyArray<MessageReactionResponse> | null | undefined
2914
+ readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
2930
2915
  readonly referenced_message?: BasicMessageResponse | null | undefined
2931
2916
  }
2932
2917
 
@@ -3024,20 +3009,21 @@ export interface MessageAllowedMentionsRequest {
3024
3009
  readonly replied_user?: boolean | null | undefined
3025
3010
  }
3026
3011
 
3027
- export interface ComponentEmojiForMessageRequest {
3012
+ export interface ComponentEmojiForRequest {
3028
3013
  readonly id?: SnowflakeType | null | undefined
3029
3014
  readonly name: string
3030
3015
  }
3031
3016
 
3032
3017
  export interface ButtonComponentForMessageRequest {
3033
3018
  readonly type: 2
3019
+ readonly id?: number | null | undefined
3034
3020
  readonly custom_id?: string | null | undefined
3035
3021
  readonly style: ButtonStyleTypes
3036
3022
  readonly label?: string | null | undefined
3037
3023
  readonly disabled?: boolean | null | undefined
3038
3024
  readonly url?: string | null | undefined
3039
3025
  readonly sku_id?: SnowflakeType | null | undefined
3040
- readonly emoji?: ComponentEmojiForMessageRequest | null | undefined
3026
+ readonly emoji?: ComponentEmojiForRequest | null | undefined
3041
3027
  }
3042
3028
 
3043
3029
  export interface ChannelSelectDefaultValue {
@@ -3047,11 +3033,13 @@ export interface ChannelSelectDefaultValue {
3047
3033
 
3048
3034
  export interface ChannelSelectComponentForMessageRequest {
3049
3035
  readonly type: 8
3036
+ readonly id?: number | null | undefined
3050
3037
  readonly custom_id: string
3051
3038
  readonly placeholder?: string | null | undefined
3052
3039
  readonly min_values?: number | null | undefined
3053
3040
  readonly max_values?: number | null | undefined
3054
3041
  readonly disabled?: boolean | null | undefined
3042
+ readonly required?: boolean | null | undefined
3055
3043
  readonly default_values?:
3056
3044
  | ReadonlyArray<ChannelSelectDefaultValue>
3057
3045
  | null
@@ -3071,11 +3059,13 @@ export interface UserSelectDefaultValue {
3071
3059
 
3072
3060
  export interface MentionableSelectComponentForMessageRequest {
3073
3061
  readonly type: 7
3062
+ readonly id?: number | null | undefined
3074
3063
  readonly custom_id: string
3075
3064
  readonly placeholder?: string | null | undefined
3076
3065
  readonly min_values?: number | null | undefined
3077
3066
  readonly max_values?: number | null | undefined
3078
3067
  readonly disabled?: boolean | null | undefined
3068
+ readonly required?: boolean | null | undefined
3079
3069
  readonly default_values?:
3080
3070
  | ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue>
3081
3071
  | null
@@ -3084,42 +3074,48 @@ export interface MentionableSelectComponentForMessageRequest {
3084
3074
 
3085
3075
  export interface RoleSelectComponentForMessageRequest {
3086
3076
  readonly type: 6
3077
+ readonly id?: number | null | undefined
3087
3078
  readonly custom_id: string
3088
3079
  readonly placeholder?: string | null | undefined
3089
3080
  readonly min_values?: number | null | undefined
3090
3081
  readonly max_values?: number | null | undefined
3091
3082
  readonly disabled?: boolean | null | undefined
3083
+ readonly required?: boolean | null | undefined
3092
3084
  readonly default_values?:
3093
3085
  | ReadonlyArray<RoleSelectDefaultValue>
3094
3086
  | null
3095
3087
  | undefined
3096
3088
  }
3097
3089
 
3098
- export interface StringSelectOptionForMessageRequest {
3090
+ export interface StringSelectOptionForRequest {
3099
3091
  readonly label: string
3100
3092
  readonly value: string
3101
3093
  readonly description?: string | null | undefined
3102
3094
  readonly default?: boolean | null | undefined
3103
- readonly emoji?: ComponentEmojiForMessageRequest | null | undefined
3095
+ readonly emoji?: ComponentEmojiForRequest | null | undefined
3104
3096
  }
3105
3097
 
3106
3098
  export interface StringSelectComponentForMessageRequest {
3107
3099
  readonly type: 3
3100
+ readonly id?: number | null | undefined
3108
3101
  readonly custom_id: string
3109
3102
  readonly placeholder?: string | null | undefined
3110
3103
  readonly min_values?: number | null | undefined
3111
3104
  readonly max_values?: number | null | undefined
3112
3105
  readonly disabled?: boolean | null | undefined
3113
- readonly options: ReadonlyArray<StringSelectOptionForMessageRequest>
3106
+ readonly required?: boolean | null | undefined
3107
+ readonly options: ReadonlyArray<StringSelectOptionForRequest>
3114
3108
  }
3115
3109
 
3116
3110
  export interface UserSelectComponentForMessageRequest {
3117
3111
  readonly type: 5
3112
+ readonly id?: number | null | undefined
3118
3113
  readonly custom_id: string
3119
3114
  readonly placeholder?: string | null | undefined
3120
3115
  readonly min_values?: number | null | undefined
3121
3116
  readonly max_values?: number | null | undefined
3122
3117
  readonly disabled?: boolean | null | undefined
3118
+ readonly required?: boolean | null | undefined
3123
3119
  readonly default_values?:
3124
3120
  | ReadonlyArray<UserSelectDefaultValue>
3125
3121
  | null
@@ -3128,6 +3124,7 @@ export interface UserSelectComponentForMessageRequest {
3128
3124
 
3129
3125
  export interface ActionRowComponentForMessageRequest {
3130
3126
  readonly type: 1
3127
+ readonly id?: number | null | undefined
3131
3128
  readonly components: ReadonlyArray<
3132
3129
  | ButtonComponentForMessageRequest
3133
3130
  | ChannelSelectComponentForMessageRequest
@@ -3144,6 +3141,7 @@ export interface UnfurledMediaRequestWithAttachmentReferenceRequired {
3144
3141
 
3145
3142
  export interface FileComponentForMessageRequest {
3146
3143
  readonly type: 13
3144
+ readonly id?: number | null | undefined
3147
3145
  readonly spoiler?: boolean | null | undefined
3148
3146
  readonly file: UnfurledMediaRequestWithAttachmentReferenceRequired
3149
3147
  }
@@ -3160,16 +3158,19 @@ export interface MediaGalleryItemRequest {
3160
3158
 
3161
3159
  export interface MediaGalleryComponentForMessageRequest {
3162
3160
  readonly type: 12
3161
+ readonly id?: number | null | undefined
3163
3162
  readonly items: ReadonlyArray<MediaGalleryItemRequest>
3164
3163
  }
3165
3164
 
3166
3165
  export interface TextDisplayComponentForMessageRequest {
3167
3166
  readonly type: 10
3167
+ readonly id?: number | null | undefined
3168
3168
  readonly content: string
3169
3169
  }
3170
3170
 
3171
3171
  export interface ThumbnailComponentForMessageRequest {
3172
3172
  readonly type: 11
3173
+ readonly id?: number | null | undefined
3173
3174
  readonly description?: string | null | undefined
3174
3175
  readonly spoiler?: boolean | null | undefined
3175
3176
  readonly media: UnfurledMediaRequest
@@ -3177,6 +3178,7 @@ export interface ThumbnailComponentForMessageRequest {
3177
3178
 
3178
3179
  export interface SectionComponentForMessageRequest {
3179
3180
  readonly type: 9
3181
+ readonly id?: number | null | undefined
3180
3182
  readonly components: ReadonlyArray<TextDisplayComponentForMessageRequest>
3181
3183
  readonly accessory:
3182
3184
  | ButtonComponentForMessageRequest
@@ -3185,12 +3187,14 @@ export interface SectionComponentForMessageRequest {
3185
3187
 
3186
3188
  export interface SeparatorComponentForMessageRequest {
3187
3189
  readonly type: 14
3190
+ readonly id?: number | null | undefined
3188
3191
  readonly spacing?: MessageComponentSeparatorSpacingSize | null | undefined
3189
3192
  readonly divider?: boolean | null | undefined
3190
3193
  }
3191
3194
 
3192
3195
  export interface ContainerComponentForMessageRequest {
3193
3196
  readonly type: 17
3197
+ readonly id?: number | null | undefined
3194
3198
  readonly accent_color?: number | null | undefined
3195
3199
  readonly components: ReadonlyArray<
3196
3200
  | ActionRowComponentForMessageRequest
@@ -3247,6 +3251,13 @@ export interface PollCreateRequest {
3247
3251
  readonly duration?: number | null | undefined
3248
3252
  }
3249
3253
 
3254
+ export interface CustomClientThemeShareRequest {
3255
+ readonly colors: ReadonlyArray<string>
3256
+ readonly gradient_angle: number
3257
+ readonly base_mix: number
3258
+ readonly base_theme?: MessageShareCustomUserThemeBaseTheme | null | undefined
3259
+ }
3260
+
3250
3261
  export interface ConfettiPotionCreateRequest {}
3251
3262
 
3252
3263
  export interface MessageReferenceRequest {
@@ -3280,6 +3291,10 @@ export interface MessageCreateRequest {
3280
3291
  | null
3281
3292
  | undefined
3282
3293
  readonly poll?: PollCreateRequest | null | undefined
3294
+ readonly shared_client_theme?:
3295
+ | CustomClientThemeShareRequest
3296
+ | null
3297
+ | undefined
3283
3298
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
3284
3299
  readonly message_reference?: MessageReferenceRequest | null | undefined
3285
3300
  readonly nonce?: number | string | null | undefined
@@ -3302,7 +3317,7 @@ export interface PinnedMessageResponse {
3302
3317
  }
3303
3318
 
3304
3319
  export interface PinnedMessagesResponse {
3305
- readonly items?: ReadonlyArray<PinnedMessageResponse> | null | undefined
3320
+ readonly items: ReadonlyArray<PinnedMessageResponse>
3306
3321
  readonly has_more: boolean
3307
3322
  }
3308
3323
 
@@ -3370,7 +3385,7 @@ export interface GetAnswerVotersParams {
3370
3385
  }
3371
3386
 
3372
3387
  export interface PollAnswerDetailsResponse {
3373
- readonly users?: ReadonlyArray<UserResponse> | null | undefined
3388
+ readonly users: ReadonlyArray<UserResponse>
3374
3389
  }
3375
3390
 
3376
3391
  export interface AddGroupDmUserRequest {
@@ -3422,6 +3437,10 @@ export interface BaseCreateMessageCreateRequest {
3422
3437
  | null
3423
3438
  | undefined
3424
3439
  readonly poll?: PollCreateRequest | null | undefined
3440
+ readonly shared_client_theme?:
3441
+ | CustomClientThemeShareRequest
3442
+ | null
3443
+ | undefined
3425
3444
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
3426
3445
  }
3427
3446
 
@@ -3454,19 +3473,19 @@ export interface CreatedThreadResponse {
3454
3473
  readonly guild_id: SnowflakeType
3455
3474
  readonly name: string
3456
3475
  readonly parent_id?: SnowflakeType | null | undefined
3457
- readonly rate_limit_per_user?: number | null | undefined
3458
- readonly bitrate?: number | null | undefined
3459
- readonly user_limit?: number | null | undefined
3476
+ readonly rate_limit_per_user?: number | undefined
3477
+ readonly bitrate?: number | undefined
3478
+ readonly user_limit?: number | undefined
3460
3479
  readonly rtc_region?: string | null | undefined
3461
- readonly video_quality_mode?: VideoQualityModes | null | undefined
3480
+ readonly video_quality_mode?: VideoQualityModes | undefined
3462
3481
  readonly permissions?: string | null | undefined
3463
3482
  readonly owner_id: SnowflakeType
3464
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined
3483
+ readonly thread_metadata: ThreadMetadataResponse
3465
3484
  readonly message_count: number
3466
3485
  readonly member_count: number
3467
3486
  readonly total_message_sent: number
3468
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined
3469
- readonly member?: ThreadMemberResponse | null | undefined
3487
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined
3488
+ readonly member?: ThreadMemberResponse | undefined
3470
3489
  }
3471
3490
 
3472
3491
  export interface ListPrivateArchivedThreadsParams {
@@ -3477,8 +3496,8 @@ export interface ListPrivateArchivedThreadsParams {
3477
3496
  export interface ThreadsResponse {
3478
3497
  readonly threads: ReadonlyArray<ThreadResponse>
3479
3498
  readonly members: ReadonlyArray<ThreadMemberResponse>
3480
- readonly has_more?: boolean | null | undefined
3481
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined
3499
+ readonly has_more: boolean
3500
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined
3482
3501
  }
3483
3502
 
3484
3503
  export interface ListPublicArchivedThreadsParams {
@@ -3518,9 +3537,9 @@ export interface ThreadSearchParams {
3518
3537
  export interface ThreadSearchResponse {
3519
3538
  readonly threads: ReadonlyArray<ThreadResponse>
3520
3539
  readonly members: ReadonlyArray<ThreadMemberResponse>
3521
- readonly has_more?: boolean | null | undefined
3522
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined
3523
- readonly total_results?: number | null | undefined
3540
+ readonly has_more: boolean
3541
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined
3542
+ readonly total_results: number
3524
3543
  }
3525
3544
 
3526
3545
  export interface TypingIndicatorResponse {}
@@ -3554,7 +3573,7 @@ export interface ApplicationIncomingWebhookResponse {
3554
3573
  readonly id: SnowflakeType
3555
3574
  readonly name: string
3556
3575
  readonly type: 3
3557
- readonly user?: UserResponse | null | undefined
3576
+ readonly user?: UserResponse | undefined
3558
3577
  }
3559
3578
 
3560
3579
  export interface WebhookSourceGuildResponse {
@@ -3576,9 +3595,9 @@ export interface ChannelFollowerWebhookResponse {
3576
3595
  readonly id: SnowflakeType
3577
3596
  readonly name: string
3578
3597
  readonly type: 2
3579
- readonly user?: UserResponse | null | undefined
3580
- readonly source_guild?: WebhookSourceGuildResponse | null | undefined
3581
- readonly source_channel?: WebhookSourceChannelResponse | null | undefined
3598
+ readonly user?: UserResponse | undefined
3599
+ readonly source_guild?: WebhookSourceGuildResponse | undefined
3600
+ readonly source_channel?: WebhookSourceChannelResponse | undefined
3582
3601
  }
3583
3602
 
3584
3603
  export interface GuildIncomingWebhookResponse {
@@ -3589,9 +3608,9 @@ export interface GuildIncomingWebhookResponse {
3589
3608
  readonly id: SnowflakeType
3590
3609
  readonly name: string
3591
3610
  readonly type: 1
3592
- readonly user?: UserResponse | null | undefined
3593
- readonly token?: string | null | undefined
3594
- readonly url?: string | null | undefined
3611
+ readonly user?: UserResponse | undefined
3612
+ readonly token?: string | undefined
3613
+ readonly url?: string | undefined
3595
3614
  }
3596
3615
 
3597
3616
  export type ListChannelWebhooks200 = ReadonlyArray<
@@ -3802,191 +3821,6 @@ export const AfkTimeouts = {
3802
3821
  } as const
3803
3822
  export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts]
3804
3823
 
3805
- export interface CreateGuildRequestRoleItem {
3806
- readonly id: number
3807
- readonly name?: string | null | undefined
3808
- readonly permissions?: number | null | undefined
3809
- readonly color?: number | null | undefined
3810
- readonly hoist?: boolean | null | undefined
3811
- readonly mentionable?: boolean | null | undefined
3812
- readonly unicode_emoji?: string | null | undefined
3813
- }
3814
-
3815
- export interface CreateOrUpdateThreadTagRequest {
3816
- readonly name: string
3817
- readonly emoji_id?: SnowflakeType | null | undefined
3818
- readonly emoji_name?: string | null | undefined
3819
- readonly moderated?: boolean | null | undefined
3820
- }
3821
-
3822
- export interface CreateGuildRequestChannelItem {
3823
- readonly type?: 0 | 2 | 4 | null | undefined
3824
- readonly name: string
3825
- readonly position?: number | null | undefined
3826
- readonly topic?: string | null | undefined
3827
- readonly bitrate?: number | null | undefined
3828
- readonly user_limit?: number | null | undefined
3829
- readonly nsfw?: boolean | null | undefined
3830
- readonly rate_limit_per_user?: number | null | undefined
3831
- readonly parent_id?: SnowflakeType | null | undefined
3832
- readonly permission_overwrites?:
3833
- | ReadonlyArray<ChannelPermissionOverwriteRequest>
3834
- | null
3835
- | undefined
3836
- readonly rtc_region?: string | null | undefined
3837
- readonly video_quality_mode?: VideoQualityModes | null | undefined
3838
- readonly default_auto_archive_duration?:
3839
- | ThreadAutoArchiveDuration
3840
- | null
3841
- | undefined
3842
- readonly default_reaction_emoji?:
3843
- | UpdateDefaultReactionEmojiRequest
3844
- | null
3845
- | undefined
3846
- readonly default_thread_rate_limit_per_user?: number | null | undefined
3847
- readonly default_sort_order?: ThreadSortOrder | null | undefined
3848
- readonly default_forum_layout?: ForumLayout | null | undefined
3849
- readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
3850
- readonly id?: SnowflakeType | null | undefined
3851
- readonly available_tags?:
3852
- | ReadonlyArray<CreateOrUpdateThreadTagRequest>
3853
- | null
3854
- | undefined
3855
- }
3856
-
3857
- export interface GuildCreateRequest {
3858
- readonly description?: string | null | undefined
3859
- readonly name: string
3860
- readonly region?: string | null | undefined
3861
- readonly icon?: string | null | undefined
3862
- readonly verification_level?: VerificationLevels | null | undefined
3863
- readonly default_message_notifications?:
3864
- | UserNotificationSettings
3865
- | null
3866
- | undefined
3867
- readonly explicit_content_filter?:
3868
- | GuildExplicitContentFilterTypes
3869
- | null
3870
- | undefined
3871
- readonly preferred_locale?: AvailableLocalesEnum | null | undefined
3872
- readonly afk_timeout?: AfkTimeouts | null | undefined
3873
- readonly roles?: ReadonlyArray<CreateGuildRequestRoleItem> | null | undefined
3874
- readonly channels?:
3875
- | ReadonlyArray<CreateGuildRequestChannelItem>
3876
- | null
3877
- | undefined
3878
- readonly afk_channel_id?: SnowflakeType | null | undefined
3879
- readonly system_channel_id?: SnowflakeType | null | undefined
3880
- readonly system_channel_flags?: number | null | undefined
3881
- }
3882
-
3883
- export interface GuildRoleColorsResponse {
3884
- readonly primary_color?: number | null | undefined
3885
- readonly secondary_color?: number | null | undefined
3886
- readonly tertiary_color?: number | null | undefined
3887
- }
3888
-
3889
- export interface GuildRoleTagsResponse {
3890
- readonly premium_subscriber?: null | undefined
3891
- readonly bot_id?: SnowflakeType | null | undefined
3892
- readonly integration_id?: SnowflakeType | null | undefined
3893
- readonly subscription_listing_id?: SnowflakeType | null | undefined
3894
- readonly available_for_purchase?: null | undefined
3895
- readonly guild_connections?: null | undefined
3896
- }
3897
-
3898
- export interface GuildRoleResponse {
3899
- readonly id: SnowflakeType
3900
- readonly name: string
3901
- readonly description?: string | null | undefined
3902
- readonly permissions: string
3903
- readonly position: number
3904
- readonly color: number
3905
- readonly colors?: GuildRoleColorsResponse | null | undefined
3906
- readonly hoist: boolean
3907
- readonly managed: boolean
3908
- readonly mentionable: boolean
3909
- readonly icon?: string | null | undefined
3910
- readonly unicode_emoji?: string | null | undefined
3911
- readonly tags?: GuildRoleTagsResponse | null | undefined
3912
- readonly flags: number
3913
- }
3914
-
3915
- export const GuildMFALevel = {
3916
- /**
3917
- * Guild has no MFA/2FA requirement for moderation actions
3918
- */
3919
- NONE: 0,
3920
- /**
3921
- * Guild has a 2FA requirement for moderation actions
3922
- */
3923
- ELEVATED: 1,
3924
- } as const
3925
- export type GuildMFALevel = (typeof GuildMFALevel)[keyof typeof GuildMFALevel]
3926
-
3927
- export const PremiumGuildTiers = {
3928
- /**
3929
- * Guild has not unlocked any Server Boost perks
3930
- */
3931
- NONE: 0,
3932
- /**
3933
- * Guild has unlocked Server Boost level 1 perks
3934
- */
3935
- TIER_1: 1,
3936
- /**
3937
- * Guild has unlocked Server Boost level 2 perks
3938
- */
3939
- TIER_2: 2,
3940
- /**
3941
- * Guild has unlocked Server Boost level 3 perks
3942
- */
3943
- TIER_3: 3,
3944
- } as const
3945
- export type PremiumGuildTiers =
3946
- (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers]
3947
-
3948
- export interface GuildResponse {
3949
- readonly id: SnowflakeType
3950
- readonly name: string
3951
- readonly icon?: string | null | undefined
3952
- readonly description?: string | null | undefined
3953
- readonly home_header?: string | null | undefined
3954
- readonly splash?: string | null | undefined
3955
- readonly discovery_splash?: string | null | undefined
3956
- readonly features: ReadonlyArray<GuildFeatures>
3957
- readonly banner?: string | null | undefined
3958
- readonly owner_id: SnowflakeType
3959
- readonly application_id?: SnowflakeType | null | undefined
3960
- readonly region: string
3961
- readonly afk_channel_id?: SnowflakeType | null | undefined
3962
- readonly afk_timeout: AfkTimeouts
3963
- readonly system_channel_id?: SnowflakeType | null | undefined
3964
- readonly system_channel_flags: number
3965
- readonly widget_enabled: boolean
3966
- readonly widget_channel_id?: SnowflakeType | null | undefined
3967
- readonly verification_level: VerificationLevels
3968
- readonly roles: ReadonlyArray<GuildRoleResponse>
3969
- readonly default_message_notifications: UserNotificationSettings
3970
- readonly mfa_level: GuildMFALevel
3971
- readonly explicit_content_filter: GuildExplicitContentFilterTypes
3972
- readonly max_presences?: number | null | undefined
3973
- readonly max_members?: number | null | undefined
3974
- readonly max_stage_video_channel_users?: number | null | undefined
3975
- readonly max_video_channel_users?: number | null | undefined
3976
- readonly vanity_url_code?: string | null | undefined
3977
- readonly premium_tier: PremiumGuildTiers
3978
- readonly premium_subscription_count: number
3979
- readonly preferred_locale: AvailableLocalesEnum
3980
- readonly rules_channel_id?: SnowflakeType | null | undefined
3981
- readonly safety_alerts_channel_id?: SnowflakeType | null | undefined
3982
- readonly public_updates_channel_id?: SnowflakeType | null | undefined
3983
- readonly premium_progress_bar_enabled: boolean
3984
- readonly nsfw: boolean
3985
- readonly nsfw_level: GuildNSFWContentLevel
3986
- readonly emojis: ReadonlyArray<EmojiResponse>
3987
- readonly stickers: ReadonlyArray<GuildStickerResponse>
3988
- }
3989
-
3990
3824
  export interface GuildTemplateRoleResponse {
3991
3825
  readonly id: number
3992
3826
  readonly name: string
@@ -3999,6 +3833,7 @@ export interface GuildTemplateRoleResponse {
3999
3833
  }
4000
3834
 
4001
3835
  export interface GuildTemplateChannelTags {
3836
+ readonly id?: number | null | undefined
4002
3837
  readonly name: string
4003
3838
  readonly emoji_id?: SnowflakeType | null | undefined
4004
3839
  readonly emoji_name?: string | null | undefined
@@ -4009,7 +3844,7 @@ export interface IconEmojiResponse {}
4009
3844
 
4010
3845
  export interface GuildTemplateChannelResponse {
4011
3846
  readonly id?: number | null | undefined
4012
- readonly type: 0 | 2 | 4
3847
+ readonly type: 0 | 2 | 4 | 15
4013
3848
  readonly name?: string | null | undefined
4014
3849
  readonly position?: number | null | undefined
4015
3850
  readonly topic?: string | null | undefined
@@ -4070,14 +3905,74 @@ export interface GuildTemplateResponse {
4070
3905
  readonly is_dirty?: boolean | null | undefined
4071
3906
  }
4072
3907
 
4073
- export interface CreateGuildFromTemplateRequest {
3908
+ export interface GetGuildParams {
3909
+ readonly with_counts?: boolean | undefined
3910
+ }
3911
+
3912
+ export interface GuildRoleColorsResponse {
3913
+ readonly primary_color: number
3914
+ readonly secondary_color?: number | null | undefined
3915
+ readonly tertiary_color?: number | null | undefined
3916
+ }
3917
+
3918
+ export interface GuildRoleTagsResponse {
3919
+ readonly premium_subscriber?: null | undefined
3920
+ readonly bot_id?: SnowflakeType | undefined
3921
+ readonly integration_id?: SnowflakeType | undefined
3922
+ readonly subscription_listing_id?: SnowflakeType | undefined
3923
+ readonly available_for_purchase?: null | undefined
3924
+ readonly guild_connections?: null | undefined
3925
+ }
3926
+
3927
+ export interface GuildRoleResponse {
3928
+ readonly id: SnowflakeType
4074
3929
  readonly name: string
3930
+ readonly description?: string | null | undefined
3931
+ readonly permissions: string
3932
+ readonly position: number
3933
+ readonly color: number
3934
+ readonly colors: GuildRoleColorsResponse
3935
+ readonly hoist: boolean
3936
+ readonly managed: boolean
3937
+ readonly mentionable: boolean
4075
3938
  readonly icon?: string | null | undefined
3939
+ readonly unicode_emoji?: string | null | undefined
3940
+ readonly tags?: GuildRoleTagsResponse | undefined
3941
+ readonly flags: number
4076
3942
  }
4077
3943
 
4078
- export interface GetGuildParams {
4079
- readonly with_counts?: boolean | undefined
4080
- }
3944
+ export const GuildMFALevel = {
3945
+ /**
3946
+ * Guild has no MFA/2FA requirement for moderation actions
3947
+ */
3948
+ NONE: 0,
3949
+ /**
3950
+ * Guild has a 2FA requirement for moderation actions
3951
+ */
3952
+ ELEVATED: 1,
3953
+ } as const
3954
+ export type GuildMFALevel = (typeof GuildMFALevel)[keyof typeof GuildMFALevel]
3955
+
3956
+ export const PremiumGuildTiers = {
3957
+ /**
3958
+ * Guild has not unlocked any Server Boost perks
3959
+ */
3960
+ NONE: 0,
3961
+ /**
3962
+ * Guild has unlocked Server Boost level 1 perks
3963
+ */
3964
+ TIER_1: 1,
3965
+ /**
3966
+ * Guild has unlocked Server Boost level 2 perks
3967
+ */
3968
+ TIER_2: 2,
3969
+ /**
3970
+ * Guild has unlocked Server Boost level 3 perks
3971
+ */
3972
+ TIER_3: 3,
3973
+ } as const
3974
+ export type PremiumGuildTiers =
3975
+ (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers]
4081
3976
 
4082
3977
  export interface GuildWithCountsResponse {
4083
3978
  readonly id: SnowflakeType
@@ -4104,9 +3999,9 @@ export interface GuildWithCountsResponse {
4104
3999
  readonly mfa_level: GuildMFALevel
4105
4000
  readonly explicit_content_filter: GuildExplicitContentFilterTypes
4106
4001
  readonly max_presences?: number | null | undefined
4107
- readonly max_members?: number | null | undefined
4108
- readonly max_stage_video_channel_users?: number | null | undefined
4109
- readonly max_video_channel_users?: number | null | undefined
4002
+ readonly max_members: number
4003
+ readonly max_stage_video_channel_users: number
4004
+ readonly max_video_channel_users: number
4110
4005
  readonly vanity_url_code?: string | null | undefined
4111
4006
  readonly premium_tier: PremiumGuildTiers
4112
4007
  readonly premium_subscription_count: number
@@ -4154,13 +4049,46 @@ export interface GuildPatchRequestPartial {
4154
4049
  readonly premium_progress_bar_enabled?: boolean | null | undefined
4155
4050
  }
4156
4051
 
4157
- export interface ListGuildAuditLogEntriesParams {
4158
- readonly user_id?: SnowflakeType | undefined
4159
- readonly target_id?: SnowflakeType | undefined
4160
- readonly action_type?: number | undefined
4161
- readonly before?: SnowflakeType | undefined
4162
- readonly after?: SnowflakeType | undefined
4163
- readonly limit?: number | undefined
4052
+ export interface GuildResponse {
4053
+ readonly id: SnowflakeType
4054
+ readonly name: string
4055
+ readonly icon?: string | null | undefined
4056
+ readonly description?: string | null | undefined
4057
+ readonly home_header?: string | null | undefined
4058
+ readonly splash?: string | null | undefined
4059
+ readonly discovery_splash?: string | null | undefined
4060
+ readonly features: ReadonlyArray<GuildFeatures>
4061
+ readonly banner?: string | null | undefined
4062
+ readonly owner_id: SnowflakeType
4063
+ readonly application_id?: SnowflakeType | null | undefined
4064
+ readonly region: string
4065
+ readonly afk_channel_id?: SnowflakeType | null | undefined
4066
+ readonly afk_timeout: AfkTimeouts
4067
+ readonly system_channel_id?: SnowflakeType | null | undefined
4068
+ readonly system_channel_flags: number
4069
+ readonly widget_enabled: boolean
4070
+ readonly widget_channel_id?: SnowflakeType | null | undefined
4071
+ readonly verification_level: VerificationLevels
4072
+ readonly roles: ReadonlyArray<GuildRoleResponse>
4073
+ readonly default_message_notifications: UserNotificationSettings
4074
+ readonly mfa_level: GuildMFALevel
4075
+ readonly explicit_content_filter: GuildExplicitContentFilterTypes
4076
+ readonly max_presences?: number | null | undefined
4077
+ readonly max_members: number
4078
+ readonly max_stage_video_channel_users: number
4079
+ readonly max_video_channel_users: number
4080
+ readonly vanity_url_code?: string | null | undefined
4081
+ readonly premium_tier: PremiumGuildTiers
4082
+ readonly premium_subscription_count: number
4083
+ readonly preferred_locale: AvailableLocalesEnum
4084
+ readonly rules_channel_id?: SnowflakeType | null | undefined
4085
+ readonly safety_alerts_channel_id?: SnowflakeType | null | undefined
4086
+ readonly public_updates_channel_id?: SnowflakeType | null | undefined
4087
+ readonly premium_progress_bar_enabled: boolean
4088
+ readonly nsfw: boolean
4089
+ readonly nsfw_level: GuildNSFWContentLevel
4090
+ readonly emojis: ReadonlyArray<EmojiResponse>
4091
+ readonly stickers: ReadonlyArray<GuildStickerResponse>
4164
4092
  }
4165
4093
 
4166
4094
  export const AuditLogActionTypes = {
@@ -4241,6 +4169,15 @@ export const AuditLogActionTypes = {
4241
4169
  export type AuditLogActionTypes =
4242
4170
  (typeof AuditLogActionTypes)[keyof typeof AuditLogActionTypes]
4243
4171
 
4172
+ export interface ListGuildAuditLogEntriesParams {
4173
+ readonly user_id?: SnowflakeType | undefined
4174
+ readonly target_id?: SnowflakeType | undefined
4175
+ readonly action_type?: AuditLogActionTypes | undefined
4176
+ readonly before?: SnowflakeType | undefined
4177
+ readonly after?: SnowflakeType | undefined
4178
+ readonly limit?: number | undefined
4179
+ }
4180
+
4244
4181
  export interface AuditLogObjectChangeResponse {
4245
4182
  readonly key?: string | null | undefined
4246
4183
  }
@@ -4250,12 +4187,9 @@ export interface AuditLogEntryResponse {
4250
4187
  readonly action_type: AuditLogActionTypes
4251
4188
  readonly user_id?: SnowflakeType | null | undefined
4252
4189
  readonly target_id?: SnowflakeType | null | undefined
4253
- readonly changes?:
4254
- | ReadonlyArray<AuditLogObjectChangeResponse>
4255
- | null
4256
- | undefined
4257
- readonly options?: Record<string, unknown> | null | undefined
4258
- readonly reason?: string | null | undefined
4190
+ readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined
4191
+ readonly options?: Record<string, unknown> | undefined
4192
+ readonly reason?: string | undefined
4259
4193
  }
4260
4194
 
4261
4195
  export const IntegrationTypes = {
@@ -4276,7 +4210,7 @@ export interface PartialDiscordIntegrationResponse {
4276
4210
  readonly id: SnowflakeType
4277
4211
  readonly type: "discord"
4278
4212
  readonly name?: string | null | undefined
4279
- readonly account?: AccountResponse | null | undefined
4213
+ readonly account: AccountResponse
4280
4214
  readonly application_id: SnowflakeType
4281
4215
  }
4282
4216
 
@@ -4284,14 +4218,14 @@ export interface PartialExternalConnectionIntegrationResponse {
4284
4218
  readonly id: SnowflakeType
4285
4219
  readonly type: "twitch" | "youtube"
4286
4220
  readonly name?: string | null | undefined
4287
- readonly account?: AccountResponse | null | undefined
4221
+ readonly account: AccountResponse
4288
4222
  }
4289
4223
 
4290
4224
  export interface PartialGuildSubscriptionIntegrationResponse {
4291
4225
  readonly id: SnowflakeType
4292
4226
  readonly type: "guild_subscription"
4293
4227
  readonly name?: string | null | undefined
4294
- readonly account?: AccountResponse | null | undefined
4228
+ readonly account: AccountResponse
4295
4229
  }
4296
4230
 
4297
4231
  export interface EntityMetadataExternalResponse {
@@ -4305,14 +4239,14 @@ export interface ExternalScheduledEventResponse {
4305
4239
  readonly description?: string | null | undefined
4306
4240
  readonly channel_id?: SnowflakeType | null | undefined
4307
4241
  readonly creator_id?: SnowflakeType | null | undefined
4308
- readonly creator?: UserResponse | null | undefined
4242
+ readonly creator?: UserResponse | undefined
4309
4243
  readonly image?: string | null | undefined
4310
4244
  readonly scheduled_start_time: string
4311
4245
  readonly scheduled_end_time?: string | null | undefined
4312
4246
  readonly status: GuildScheduledEventStatuses
4313
4247
  readonly entity_type: 3
4314
4248
  readonly entity_id?: SnowflakeType | null | undefined
4315
- readonly user_count?: number | null | undefined
4249
+ readonly user_count?: number | undefined
4316
4250
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4317
4251
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4318
4252
  readonly entity_metadata: EntityMetadataExternalResponse
@@ -4327,14 +4261,14 @@ export interface StageScheduledEventResponse {
4327
4261
  readonly description?: string | null | undefined
4328
4262
  readonly channel_id?: SnowflakeType | null | undefined
4329
4263
  readonly creator_id?: SnowflakeType | null | undefined
4330
- readonly creator?: UserResponse | null | undefined
4264
+ readonly creator?: UserResponse | undefined
4331
4265
  readonly image?: string | null | undefined
4332
4266
  readonly scheduled_start_time: string
4333
4267
  readonly scheduled_end_time?: string | null | undefined
4334
4268
  readonly status: GuildScheduledEventStatuses
4335
4269
  readonly entity_type: 1
4336
4270
  readonly entity_id?: SnowflakeType | null | undefined
4337
- readonly user_count?: number | null | undefined
4271
+ readonly user_count?: number | undefined
4338
4272
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4339
4273
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4340
4274
  readonly entity_metadata?:
@@ -4352,14 +4286,14 @@ export interface VoiceScheduledEventResponse {
4352
4286
  readonly description?: string | null | undefined
4353
4287
  readonly channel_id?: SnowflakeType | null | undefined
4354
4288
  readonly creator_id?: SnowflakeType | null | undefined
4355
- readonly creator?: UserResponse | null | undefined
4289
+ readonly creator?: UserResponse | undefined
4356
4290
  readonly image?: string | null | undefined
4357
4291
  readonly scheduled_start_time: string
4358
4292
  readonly scheduled_end_time?: string | null | undefined
4359
4293
  readonly status: GuildScheduledEventStatuses
4360
4294
  readonly entity_type: 2
4361
4295
  readonly entity_id?: SnowflakeType | null | undefined
4362
- readonly user_count?: number | null | undefined
4296
+ readonly user_count?: number | undefined
4363
4297
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4364
4298
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4365
4299
  readonly entity_metadata?: EntityMetadataVoiceResponse | null | undefined
@@ -4400,7 +4334,7 @@ export type AutomodActionType =
4400
4334
  (typeof AutomodActionType)[keyof typeof AutomodActionType]
4401
4335
 
4402
4336
  export interface BlockMessageActionMetadataResponse {
4403
- readonly custom_message?: string | null | undefined
4337
+ readonly custom_message?: string | undefined
4404
4338
  }
4405
4339
 
4406
4340
  export interface BlockMessageActionResponse {
@@ -4493,9 +4427,9 @@ export interface DefaultKeywordRuleResponse {
4493
4427
  | UserCommunicationDisabledActionResponse
4494
4428
  >
4495
4429
  readonly trigger_type: 4
4496
- readonly enabled?: boolean | null | undefined
4497
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4498
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4430
+ readonly enabled: boolean
4431
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4432
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4499
4433
  readonly trigger_metadata: DefaultKeywordListTriggerMetadataResponse
4500
4434
  }
4501
4435
 
@@ -4518,9 +4452,9 @@ export interface KeywordRuleResponse {
4518
4452
  | UserCommunicationDisabledActionResponse
4519
4453
  >
4520
4454
  readonly trigger_type: 1
4521
- readonly enabled?: boolean | null | undefined
4522
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4523
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4455
+ readonly enabled: boolean
4456
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4457
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4524
4458
  readonly trigger_metadata: KeywordTriggerMetadataResponse
4525
4459
  }
4526
4460
 
@@ -4539,15 +4473,15 @@ export interface MLSpamRuleResponse {
4539
4473
  | UserCommunicationDisabledActionResponse
4540
4474
  >
4541
4475
  readonly trigger_type: 3
4542
- readonly enabled?: boolean | null | undefined
4543
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4544
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4476
+ readonly enabled: boolean
4477
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4478
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4545
4479
  readonly trigger_metadata: MLSpamTriggerMetadataResponse
4546
4480
  }
4547
4481
 
4548
4482
  export interface MentionSpamTriggerMetadataResponse {
4549
4483
  readonly mention_total_limit: number
4550
- readonly mention_raid_protection_enabled?: boolean | null | undefined
4484
+ readonly mention_raid_protection_enabled: boolean
4551
4485
  }
4552
4486
 
4553
4487
  export interface MentionSpamRuleResponse {
@@ -4563,9 +4497,9 @@ export interface MentionSpamRuleResponse {
4563
4497
  | UserCommunicationDisabledActionResponse
4564
4498
  >
4565
4499
  readonly trigger_type: 5
4566
- readonly enabled?: boolean | null | undefined
4567
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4568
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4500
+ readonly enabled: boolean
4501
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4502
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4569
4503
  readonly trigger_metadata: MentionSpamTriggerMetadataResponse
4570
4504
  }
4571
4505
 
@@ -4584,9 +4518,9 @@ export interface SpamLinkRuleResponse {
4584
4518
  | UserCommunicationDisabledActionResponse
4585
4519
  >
4586
4520
  readonly trigger_type: 2
4587
- readonly enabled?: boolean | null | undefined
4588
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4589
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4521
+ readonly enabled: boolean
4522
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4523
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4590
4524
  readonly trigger_metadata: SpamLinkTriggerMetadataResponse
4591
4525
  }
4592
4526
 
@@ -4734,7 +4668,7 @@ export interface MLSpamUpsertRequest {
4734
4668
  }
4735
4669
 
4736
4670
  export interface MentionSpamTriggerMetadata {
4737
- readonly mention_total_limit: number
4671
+ readonly mention_total_limit?: number | null | undefined
4738
4672
  readonly mention_raid_protection_enabled?: boolean | null | undefined
4739
4673
  }
4740
4674
 
@@ -4884,7 +4818,9 @@ export interface BanUserFromGuildRequest {
4884
4818
  readonly delete_message_days?: number | null | undefined
4885
4819
  }
4886
4820
 
4887
- export interface BulkBanUsersFromGuildRequest {
4821
+ export interface UnbanUserFromGuildRequest {}
4822
+
4823
+ export interface BulkBanUsersRequest {
4888
4824
  readonly user_ids: ReadonlyArray<SnowflakeType>
4889
4825
  readonly delete_message_seconds?: number | null | undefined
4890
4826
  }
@@ -4901,6 +4837,13 @@ export type ListGuildChannels200 = ReadonlyArray<
4901
4837
  | ThreadResponse
4902
4838
  >
4903
4839
 
4840
+ export interface CreateOrUpdateThreadTagRequest {
4841
+ readonly name: string
4842
+ readonly emoji_id?: SnowflakeType | null | undefined
4843
+ readonly emoji_name?: string | null | undefined
4844
+ readonly moderated?: boolean | null | undefined
4845
+ }
4846
+
4904
4847
  export interface CreateGuildChannelRequest {
4905
4848
  readonly type?: 0 | 2 | 4 | 5 | 13 | 14 | 15 | null | undefined
4906
4849
  readonly name: string
@@ -4936,7 +4879,7 @@ export interface CreateGuildChannelRequest {
4936
4879
  }
4937
4880
 
4938
4881
  export type BulkUpdateGuildChannelsRequest = ReadonlyArray<{
4939
- readonly id?: SnowflakeType | undefined
4882
+ readonly id?: SnowflakeType | null | undefined
4940
4883
  readonly position?: number | null | undefined
4941
4884
  readonly parent_id?: SnowflakeType | null | undefined
4942
4885
  readonly lock_permissions?: boolean | null | undefined
@@ -4961,22 +4904,22 @@ export interface IntegrationApplicationResponse {
4961
4904
  readonly icon?: string | null | undefined
4962
4905
  readonly description: string
4963
4906
  readonly type?: ApplicationTypes | null | undefined
4964
- readonly cover_image?: string | null | undefined
4965
- readonly primary_sku_id?: SnowflakeType | null | undefined
4966
- readonly bot?: UserResponse | null | undefined
4907
+ readonly cover_image?: string | undefined
4908
+ readonly primary_sku_id?: SnowflakeType | undefined
4909
+ readonly bot?: UserResponse | undefined
4967
4910
  }
4968
4911
 
4969
4912
  export interface DiscordIntegrationResponse {
4970
4913
  readonly type: "discord"
4971
4914
  readonly name?: string | null | undefined
4972
- readonly account?: AccountResponse | null | undefined
4973
- readonly enabled?: boolean | null | undefined
4915
+ readonly account: AccountResponse
4916
+ readonly enabled: boolean
4974
4917
  readonly id: SnowflakeType
4975
4918
  readonly application: IntegrationApplicationResponse
4976
4919
  readonly scopes: ReadonlyArray<
4977
4920
  "applications.commands" | "bot" | "webhook.incoming"
4978
4921
  >
4979
- readonly user?: UserResponse | null | undefined
4922
+ readonly user?: UserResponse | undefined
4980
4923
  }
4981
4924
 
4982
4925
  export const IntegrationExpireBehaviorTypes = {
@@ -5020,28 +4963,25 @@ export type IntegrationExpireGracePeriodTypes =
5020
4963
  export interface ExternalConnectionIntegrationResponse {
5021
4964
  readonly type: "twitch" | "youtube"
5022
4965
  readonly name?: string | null | undefined
5023
- readonly account?: AccountResponse | null | undefined
5024
- readonly enabled?: boolean | null | undefined
4966
+ readonly account: AccountResponse
4967
+ readonly enabled: boolean
5025
4968
  readonly id: string
5026
4969
  readonly user: UserResponse
5027
- readonly revoked?: boolean | null | undefined
5028
- readonly expire_behavior?: IntegrationExpireBehaviorTypes | null | undefined
5029
- readonly expire_grace_period?:
5030
- | IntegrationExpireGracePeriodTypes
5031
- | null
5032
- | undefined
5033
- readonly subscriber_count?: number | null | undefined
5034
- readonly synced_at?: string | null | undefined
4970
+ readonly revoked?: boolean | undefined
4971
+ readonly expire_behavior?: IntegrationExpireBehaviorTypes | undefined
4972
+ readonly expire_grace_period?: IntegrationExpireGracePeriodTypes | undefined
4973
+ readonly subscriber_count?: number | undefined
4974
+ readonly synced_at?: string | undefined
5035
4975
  readonly role_id?: SnowflakeType | null | undefined
5036
- readonly syncing?: boolean | null | undefined
5037
- readonly enable_emoticons?: boolean | null | undefined
4976
+ readonly syncing?: boolean | undefined
4977
+ readonly enable_emoticons?: boolean | undefined
5038
4978
  }
5039
4979
 
5040
4980
  export interface GuildSubscriptionIntegrationResponse {
5041
4981
  readonly type: "guild_subscription"
5042
4982
  readonly name?: string | null | undefined
5043
- readonly account?: AccountResponse | null | undefined
5044
- readonly enabled?: boolean | null | undefined
4983
+ readonly account: AccountResponse
4984
+ readonly enabled: boolean
5045
4985
  readonly id: SnowflakeType
5046
4986
  }
5047
4987
 
@@ -5052,7 +4992,7 @@ export type ListGuildIntegrations200 = ReadonlyArray<
5052
4992
  >
5053
4993
 
5054
4994
  export type ListGuildInvites200 = ReadonlyArray<
5055
- FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
4995
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null
5056
4996
  >
5057
4997
 
5058
4998
  export interface ListGuildMembersParams {
@@ -5080,13 +5020,14 @@ export interface PrivateGuildMemberResponse {
5080
5020
  readonly pending: boolean
5081
5021
  readonly premium_since?: string | null | undefined
5082
5022
  readonly roles: ReadonlyArray<SnowflakeType>
5023
+ readonly collectibles?: UserCollectiblesResponse | null | undefined
5083
5024
  readonly user: UserResponse
5084
5025
  readonly mute: boolean
5085
5026
  readonly deaf: boolean
5086
5027
  }
5087
5028
 
5088
5029
  export interface SearchGuildMembersParams {
5089
- readonly limit: number
5030
+ readonly limit?: number | undefined
5090
5031
  readonly query: string
5091
5032
  }
5092
5033
 
@@ -5111,7 +5052,7 @@ export interface UpdateGuildMemberRequest {
5111
5052
  readonly flags?: number | null | undefined
5112
5053
  }
5113
5054
 
5114
- export interface SetGuildMfaLevelRequest {
5055
+ export interface GuildMFARequest {
5115
5056
  readonly level: GuildMFALevel
5116
5057
  }
5117
5058
 
@@ -5134,7 +5075,7 @@ export type NewMemberActionType =
5134
5075
  export interface SettingsEmojiResponse {
5135
5076
  readonly id?: SnowflakeType | null | undefined
5136
5077
  readonly name?: string | null | undefined
5137
- readonly animated?: boolean | null | undefined
5078
+ readonly animated: boolean
5138
5079
  }
5139
5080
 
5140
5081
  export interface NewMemberActionResponse {
@@ -5142,30 +5083,24 @@ export interface NewMemberActionResponse {
5142
5083
  readonly action_type: NewMemberActionType
5143
5084
  readonly title: string
5144
5085
  readonly description: string
5145
- readonly emoji?: SettingsEmojiResponse | null | undefined
5146
- readonly icon?: string | null | undefined
5086
+ readonly emoji?: SettingsEmojiResponse | undefined
5087
+ readonly icon?: string | undefined
5147
5088
  }
5148
5089
 
5149
5090
  export interface ResourceChannelResponse {
5150
5091
  readonly channel_id: SnowflakeType
5151
5092
  readonly title: string
5152
- readonly emoji?: SettingsEmojiResponse | null | undefined
5153
- readonly icon?: string | null | undefined
5093
+ readonly emoji?: SettingsEmojiResponse | undefined
5094
+ readonly icon?: string | undefined
5154
5095
  readonly description: string
5155
5096
  }
5156
5097
 
5157
5098
  export interface GuildHomeSettingsResponse {
5158
5099
  readonly guild_id: SnowflakeType
5159
5100
  readonly enabled: boolean
5160
- readonly welcome_message?: WelcomeMessageResponse | null | undefined
5161
- readonly new_member_actions?:
5162
- | ReadonlyArray<null | NewMemberActionResponse>
5163
- | null
5164
- | undefined
5165
- readonly resource_channels?:
5166
- | ReadonlyArray<null | ResourceChannelResponse>
5167
- | null
5168
- | undefined
5101
+ readonly welcome_message?: WelcomeMessageResponse | undefined
5102
+ readonly new_member_actions: ReadonlyArray<null | NewMemberActionResponse>
5103
+ readonly resource_channels: ReadonlyArray<null | ResourceChannelResponse>
5169
5104
  }
5170
5105
 
5171
5106
  export interface OnboardingPromptOptionResponse {
@@ -5290,7 +5225,7 @@ export interface PruneGuildRequest {
5290
5225
  readonly compute_prune_count?: boolean | null | undefined
5291
5226
  readonly include_roles?:
5292
5227
  | string
5293
- | ReadonlyArray<null | SnowflakeType>
5228
+ | ReadonlyArray<SnowflakeType>
5294
5229
  | null
5295
5230
  | undefined
5296
5231
  }
@@ -5307,7 +5242,7 @@ export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
5307
5242
 
5308
5243
  export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>
5309
5244
 
5310
- export interface CreateGuildRoleRequest {
5245
+ export interface CreateRoleRequest {
5311
5246
  readonly name?: string | null | undefined
5312
5247
  readonly permissions?: number | null | undefined
5313
5248
  readonly color?: number | null | undefined
@@ -5317,14 +5252,17 @@ export interface CreateGuildRoleRequest {
5317
5252
  readonly unicode_emoji?: string | null | undefined
5318
5253
  }
5319
5254
 
5320
- export type BulkUpdateGuildRolesRequest = ReadonlyArray<{
5255
+ export interface UpdateRolePositionsRequest {
5321
5256
  readonly id?: SnowflakeType | null | undefined
5322
5257
  readonly position?: number | null | undefined
5323
- }>
5258
+ }
5259
+
5260
+ export type BulkUpdateGuildRolesRequest =
5261
+ ReadonlyArray<UpdateRolePositionsRequest>
5324
5262
 
5325
5263
  export type BulkUpdateGuildRoles200 = ReadonlyArray<GuildRoleResponse>
5326
5264
 
5327
- export interface UpdateGuildRoleRequest {
5265
+ export interface UpdateRoleRequestPartial {
5328
5266
  readonly name?: string | null | undefined
5329
5267
  readonly permissions?: number | null | undefined
5330
5268
  readonly color?: number | null | undefined
@@ -5472,9 +5410,9 @@ export interface SoundboardSoundResponse {
5472
5410
  readonly volume: number
5473
5411
  readonly emoji_id?: SnowflakeType | null | undefined
5474
5412
  readonly emoji_name?: string | null | undefined
5475
- readonly guild_id?: SnowflakeType | null | undefined
5413
+ readonly guild_id?: SnowflakeType | undefined
5476
5414
  readonly available: boolean
5477
- readonly user?: UserResponse | null | undefined
5415
+ readonly user?: UserResponse | undefined
5478
5416
  }
5479
5417
 
5480
5418
  export interface ListGuildSoundboardSoundsResponse {
@@ -5538,7 +5476,7 @@ export interface VoiceStateResponse {
5538
5476
  readonly channel_id?: SnowflakeType | null | undefined
5539
5477
  readonly deaf: boolean
5540
5478
  readonly guild_id?: SnowflakeType | null | undefined
5541
- readonly member?: GuildMemberResponse | null | undefined
5479
+ readonly member?: GuildMemberResponse | undefined
5542
5480
  readonly mute: boolean
5543
5481
  readonly request_to_speak_timestamp?: string | null | undefined
5544
5482
  readonly suppress: boolean
@@ -5550,13 +5488,13 @@ export interface VoiceStateResponse {
5550
5488
  readonly user_id: SnowflakeType
5551
5489
  }
5552
5490
 
5553
- export interface UpdateSelfVoiceStateRequest {
5491
+ export interface UpdateSelfVoiceStateRequestPartial {
5554
5492
  readonly request_to_speak_timestamp?: string | null | undefined
5555
5493
  readonly suppress?: boolean | null | undefined
5556
5494
  readonly channel_id?: SnowflakeType | null | undefined
5557
5495
  }
5558
5496
 
5559
- export interface UpdateVoiceStateRequest {
5497
+ export interface UpdateVoiceStateRequestPartial {
5560
5498
  readonly suppress?: boolean | null | undefined
5561
5499
  readonly channel_id?: SnowflakeType | null | undefined
5562
5500
  }
@@ -5624,13 +5562,13 @@ export interface WidgetMember {
5624
5562
  readonly avatar?: null | undefined
5625
5563
  readonly status: string
5626
5564
  readonly avatar_url: string
5627
- readonly activity?: WidgetActivity | null | undefined
5628
- readonly deaf?: boolean | null | undefined
5629
- readonly mute?: boolean | null | undefined
5630
- readonly self_deaf?: boolean | null | undefined
5631
- readonly self_mute?: boolean | null | undefined
5632
- readonly suppress?: boolean | null | undefined
5633
- readonly channel_id?: SnowflakeType | null | undefined
5565
+ readonly activity?: WidgetActivity | undefined
5566
+ readonly deaf?: boolean | undefined
5567
+ readonly mute?: boolean | undefined
5568
+ readonly self_deaf?: boolean | undefined
5569
+ readonly self_mute?: boolean | undefined
5570
+ readonly suppress?: boolean | undefined
5571
+ readonly channel_id?: SnowflakeType | undefined
5634
5572
  }
5635
5573
 
5636
5574
  export interface WidgetResponse {
@@ -5753,9 +5691,10 @@ export interface LaunchActivityInteractionCallbackRequest {
5753
5691
 
5754
5692
  export interface TextInputComponentForModalRequest {
5755
5693
  readonly type: 4
5694
+ readonly id?: number | null | undefined
5756
5695
  readonly custom_id: string
5757
5696
  readonly style: TextInputStyleTypes
5758
- readonly label: string
5697
+ readonly label?: string | null | undefined
5759
5698
  readonly value?: string | null | undefined
5760
5699
  readonly placeholder?: string | null | undefined
5761
5700
  readonly required?: boolean | null | undefined
@@ -5765,13 +5704,111 @@ export interface TextInputComponentForModalRequest {
5765
5704
 
5766
5705
  export interface ActionRowComponentForModalRequest {
5767
5706
  readonly type: 1
5707
+ readonly id?: number | null | undefined
5768
5708
  readonly components: ReadonlyArray<TextInputComponentForModalRequest>
5769
5709
  }
5770
5710
 
5711
+ export interface ChannelSelectComponentForModalRequest {
5712
+ readonly type: 8
5713
+ readonly id?: number | null | undefined
5714
+ readonly custom_id: string
5715
+ readonly placeholder?: string | null | undefined
5716
+ readonly min_values?: number | null | undefined
5717
+ readonly max_values?: number | null | undefined
5718
+ readonly disabled?: boolean | null | undefined
5719
+ readonly required?: boolean | null | undefined
5720
+ readonly default_values?:
5721
+ | ReadonlyArray<ChannelSelectDefaultValue>
5722
+ | null
5723
+ | undefined
5724
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
5725
+ }
5726
+
5727
+ export interface MentionableSelectComponentForModalRequest {
5728
+ readonly type: 7
5729
+ readonly id?: number | null | undefined
5730
+ readonly custom_id: string
5731
+ readonly placeholder?: string | null | undefined
5732
+ readonly min_values?: number | null | undefined
5733
+ readonly max_values?: number | null | undefined
5734
+ readonly disabled?: boolean | null | undefined
5735
+ readonly required?: boolean | null | undefined
5736
+ readonly default_values?:
5737
+ | ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue>
5738
+ | null
5739
+ | undefined
5740
+ }
5741
+
5742
+ export interface RoleSelectComponentForModalRequest {
5743
+ readonly type: 6
5744
+ readonly id?: number | null | undefined
5745
+ readonly custom_id: string
5746
+ readonly placeholder?: string | null | undefined
5747
+ readonly min_values?: number | null | undefined
5748
+ readonly max_values?: number | null | undefined
5749
+ readonly disabled?: boolean | null | undefined
5750
+ readonly required?: boolean | null | undefined
5751
+ readonly default_values?:
5752
+ | ReadonlyArray<RoleSelectDefaultValue>
5753
+ | null
5754
+ | undefined
5755
+ }
5756
+
5757
+ export interface StringSelectComponentForModalRequest {
5758
+ readonly type: 3
5759
+ readonly id?: number | null | undefined
5760
+ readonly custom_id: string
5761
+ readonly placeholder?: string | null | undefined
5762
+ readonly min_values?: number | null | undefined
5763
+ readonly max_values?: number | null | undefined
5764
+ readonly disabled?: boolean | null | undefined
5765
+ readonly required?: boolean | null | undefined
5766
+ readonly options: ReadonlyArray<StringSelectOptionForRequest>
5767
+ }
5768
+
5769
+ export interface UserSelectComponentForModalRequest {
5770
+ readonly type: 5
5771
+ readonly id?: number | null | undefined
5772
+ readonly custom_id: string
5773
+ readonly placeholder?: string | null | undefined
5774
+ readonly min_values?: number | null | undefined
5775
+ readonly max_values?: number | null | undefined
5776
+ readonly disabled?: boolean | null | undefined
5777
+ readonly required?: boolean | null | undefined
5778
+ readonly default_values?:
5779
+ | ReadonlyArray<UserSelectDefaultValue>
5780
+ | null
5781
+ | undefined
5782
+ }
5783
+
5784
+ export interface LabelComponentForModalRequest {
5785
+ readonly type: 18
5786
+ readonly id?: number | null | undefined
5787
+ readonly label: string
5788
+ readonly description?: string | null | undefined
5789
+ readonly component:
5790
+ | ChannelSelectComponentForModalRequest
5791
+ | MentionableSelectComponentForModalRequest
5792
+ | RoleSelectComponentForModalRequest
5793
+ | StringSelectComponentForModalRequest
5794
+ | TextInputComponentForModalRequest
5795
+ | UserSelectComponentForModalRequest
5796
+ }
5797
+
5798
+ export interface TextDisplayComponentForModalRequest {
5799
+ readonly type: 10
5800
+ readonly id?: number | null | undefined
5801
+ readonly content: string
5802
+ }
5803
+
5771
5804
  export interface ModalInteractionCallbackRequestData {
5772
5805
  readonly custom_id: string
5773
5806
  readonly title: string
5774
- readonly components: ReadonlyArray<ActionRowComponentForModalRequest>
5807
+ readonly components: ReadonlyArray<
5808
+ | ActionRowComponentForModalRequest
5809
+ | LabelComponentForModalRequest
5810
+ | TextDisplayComponentForModalRequest
5811
+ >
5775
5812
  }
5776
5813
 
5777
5814
  export interface ModalInteractionCallbackRequest {
@@ -5825,11 +5862,11 @@ export type CreateInteractionResponseRequest =
5825
5862
  export interface InteractionResponse {
5826
5863
  readonly id: SnowflakeType
5827
5864
  readonly type: InteractionTypes
5828
- readonly response_message_id?: SnowflakeType | null | undefined
5829
- readonly response_message_loading?: boolean | null | undefined
5830
- readonly response_message_ephemeral?: boolean | null | undefined
5831
- readonly channel_id?: SnowflakeType | null | undefined
5832
- readonly guild_id?: SnowflakeType | null | undefined
5865
+ readonly response_message_id?: SnowflakeType | undefined
5866
+ readonly response_message_loading?: boolean | undefined
5867
+ readonly response_message_ephemeral?: boolean | undefined
5868
+ readonly channel_id?: SnowflakeType | undefined
5869
+ readonly guild_id?: SnowflakeType | undefined
5833
5870
  }
5834
5871
 
5835
5872
  export interface CreateMessageInteractionCallbackResponse {
@@ -5852,7 +5889,6 @@ export interface InteractionCallbackResponse {
5852
5889
  | CreateMessageInteractionCallbackResponse
5853
5890
  | LaunchActivityInteractionCallbackResponse
5854
5891
  | UpdateMessageInteractionCallbackResponse
5855
- | null
5856
5892
  | undefined
5857
5893
  }
5858
5894
 
@@ -5871,11 +5907,14 @@ export type InviteRevoke200 =
5871
5907
  | GroupDMInviteResponse
5872
5908
  | GuildInviteResponse
5873
5909
 
5910
+ export type CreateOrJoinLobbyRequestFlagsEnum = 1
5911
+
5874
5912
  export interface CreateOrJoinLobbyRequest {
5875
5913
  readonly idle_timeout_seconds?: number | null | undefined
5876
5914
  readonly lobby_metadata?: Record<string, unknown> | null | undefined
5877
5915
  readonly member_metadata?: Record<string, unknown> | null | undefined
5878
5916
  readonly secret: string
5917
+ readonly flags?: CreateOrJoinLobbyRequestFlagsEnum | null | undefined
5879
5918
  }
5880
5919
 
5881
5920
  export interface LobbyMemberResponse {
@@ -5888,8 +5927,9 @@ export interface LobbyResponse {
5888
5927
  readonly id: SnowflakeType
5889
5928
  readonly application_id: SnowflakeType
5890
5929
  readonly metadata?: Record<string, unknown> | null | undefined
5891
- readonly members?: ReadonlyArray<LobbyMemberResponse> | null | undefined
5892
- readonly linked_channel?: GuildChannelResponse | null | undefined
5930
+ readonly members: ReadonlyArray<LobbyMemberResponse>
5931
+ readonly linked_channel?: GuildChannelResponse | undefined
5932
+ readonly flags: UInt32Type
5893
5933
  }
5894
5934
 
5895
5935
  export type LobbyMemberRequestFlagsEnum = 1
@@ -5900,16 +5940,22 @@ export interface LobbyMemberRequest {
5900
5940
  readonly flags?: LobbyMemberRequestFlagsEnum | null | undefined
5901
5941
  }
5902
5942
 
5943
+ export type CreateLobbyRequestFlagsEnum = 1
5944
+
5903
5945
  export interface CreateLobbyRequest {
5904
5946
  readonly idle_timeout_seconds?: number | null | undefined
5905
5947
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined
5906
5948
  readonly metadata?: Record<string, unknown> | null | undefined
5949
+ readonly flags?: CreateLobbyRequestFlagsEnum | null | undefined
5907
5950
  }
5908
5951
 
5952
+ export type EditLobbyRequestFlagsEnum = 1
5953
+
5909
5954
  export interface EditLobbyRequest {
5910
5955
  readonly idle_timeout_seconds?: number | null | undefined
5911
5956
  readonly metadata?: Record<string, unknown> | null | undefined
5912
5957
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined
5958
+ readonly flags?: EditLobbyRequestFlagsEnum | null | undefined
5913
5959
  }
5914
5960
 
5915
5961
  export interface EditLobbyChannelLinkRequest {
@@ -5952,9 +5998,9 @@ export interface LobbyMessageResponse {
5952
5998
  readonly lobby_id: SnowflakeType
5953
5999
  readonly channel_id: SnowflakeType
5954
6000
  readonly author: UserResponse
5955
- readonly metadata?: Record<string, unknown> | null | undefined
6001
+ readonly metadata?: Record<string, unknown> | undefined
5956
6002
  readonly flags: number
5957
- readonly application_id?: SnowflakeType | null | undefined
6003
+ readonly application_id?: SnowflakeType | undefined
5958
6004
  }
5959
6005
 
5960
6006
  export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse>
@@ -5982,6 +6028,10 @@ export interface SDKMessageRequest {
5982
6028
  | null
5983
6029
  | undefined
5984
6030
  readonly poll?: PollCreateRequest | null | undefined
6031
+ readonly shared_client_theme?:
6032
+ | CustomClientThemeShareRequest
6033
+ | null
6034
+ | undefined
5985
6035
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
5986
6036
  readonly message_reference?: MessageReferenceRequest | null | undefined
5987
6037
  readonly nonce?: number | string | null | undefined
@@ -5993,7 +6043,7 @@ export interface OAuth2GetAuthorizationResponse {
5993
6043
  readonly application: ApplicationResponse
5994
6044
  readonly expires: string
5995
6045
  readonly scopes: ReadonlyArray<OAuth2Scopes>
5996
- readonly user?: UserResponse | null | undefined
6046
+ readonly user?: UserResponse | undefined
5997
6047
  }
5998
6048
 
5999
6049
  export interface OAuth2Key {
@@ -6012,11 +6062,11 @@ export interface OAuth2GetKeys {
6012
6062
  export interface OAuth2GetOpenIDConnectUserInfoResponse {
6013
6063
  readonly sub: string
6014
6064
  readonly email?: string | null | undefined
6015
- readonly email_verified?: boolean | null | undefined
6016
- readonly preferred_username?: string | null | undefined
6065
+ readonly email_verified?: boolean | undefined
6066
+ readonly preferred_username?: string | undefined
6017
6067
  readonly nickname?: string | null | undefined
6018
- readonly picture?: string | null | undefined
6019
- readonly locale?: string | null | undefined
6068
+ readonly picture?: string | undefined
6069
+ readonly locale?: string | undefined
6020
6070
  }
6021
6071
 
6022
6072
  export const ApplicationIdentityProviderAuthType = {
@@ -6089,7 +6139,7 @@ export interface StageInstanceResponse {
6089
6139
  readonly topic: string
6090
6140
  readonly privacy_level: StageInstancesPrivacyLevels
6091
6141
  readonly id: SnowflakeType
6092
- readonly discoverable_disabled?: boolean | null | undefined
6142
+ readonly discoverable_disabled: boolean
6093
6143
  readonly guild_scheduled_event_id?: SnowflakeType | null | undefined
6094
6144
  }
6095
6145
 
@@ -6104,8 +6154,8 @@ export interface StickerPackResponse {
6104
6154
  readonly name: string
6105
6155
  readonly description?: string | null | undefined
6106
6156
  readonly stickers: ReadonlyArray<StandardStickerResponse>
6107
- readonly cover_sticker_id?: SnowflakeType | null | undefined
6108
- readonly banner_asset_id?: SnowflakeType | null | undefined
6157
+ readonly cover_sticker_id?: SnowflakeType | undefined
6158
+ readonly banner_asset_id?: SnowflakeType | undefined
6109
6159
  }
6110
6160
 
6111
6161
  export interface StickerPackCollectionResponse {
@@ -6141,8 +6191,8 @@ export interface UserPIIResponse {
6141
6191
  readonly discriminator: string
6142
6192
  readonly public_flags: number
6143
6193
  readonly flags: Int53Type
6144
- readonly bot?: boolean | null | undefined
6145
- readonly system?: boolean | null | undefined
6194
+ readonly bot?: boolean | undefined
6195
+ readonly system?: boolean | undefined
6146
6196
  readonly banner?: string | null | undefined
6147
6197
  readonly accent_color?: number | null | undefined
6148
6198
  readonly global_name?: string | null | undefined
@@ -6154,9 +6204,9 @@ export interface UserPIIResponse {
6154
6204
  readonly primary_guild?: UserPrimaryGuildResponse | null | undefined
6155
6205
  readonly mfa_enabled: boolean
6156
6206
  readonly locale: AvailableLocalesEnum
6157
- readonly premium_type?: PremiumTypes | null | undefined
6207
+ readonly premium_type?: PremiumTypes | undefined
6158
6208
  readonly email?: string | null | undefined
6159
- readonly verified?: boolean | null | undefined
6209
+ readonly verified?: boolean | undefined
6160
6210
  }
6161
6211
 
6162
6212
  export interface BotAccountPatchRequest {
@@ -6168,7 +6218,7 @@ export interface BotAccountPatchRequest {
6168
6218
  export interface ApplicationUserRoleConnectionResponse {
6169
6219
  readonly platform_name?: string | null | undefined
6170
6220
  readonly platform_username?: string | null | undefined
6171
- readonly metadata?: Record<string, unknown> | null | undefined
6221
+ readonly metadata?: Record<string, unknown> | undefined
6172
6222
  }
6173
6223
 
6174
6224
  export interface UpdateApplicationUserRoleConnectionRequest {
@@ -6241,13 +6291,12 @@ export interface ConnectedAccountResponse {
6241
6291
  readonly friend_sync: boolean
6242
6292
  readonly integrations?:
6243
6293
  | ReadonlyArray<ConnectedAccountIntegrationResponse>
6244
- | null
6245
6294
  | undefined
6246
6295
  readonly show_activity: boolean
6247
6296
  readonly two_way_link: boolean
6248
6297
  readonly verified: boolean
6249
6298
  readonly visibility: ConnectedAccountVisibility
6250
- readonly revoked?: boolean | null | undefined
6299
+ readonly revoked?: boolean | undefined
6251
6300
  }
6252
6301
 
6253
6302
  export type ListMyConnections200 = ReadonlyArray<ConnectedAccountResponse>
@@ -7343,14 +7392,6 @@ export const make = (
7343
7392
  "4xx": "ErrorResponse",
7344
7393
  }),
7345
7394
  ),
7346
- createGuild: options =>
7347
- HttpClientRequest.post(`/guilds`).pipe(
7348
- HttpClientRequest.bodyUnsafeJson(options),
7349
- onRequest(["2xx"], {
7350
- "429": "RatelimitedResponse",
7351
- "4xx": "ErrorResponse",
7352
- }),
7353
- ),
7354
7395
  getGuildTemplate: code =>
7355
7396
  HttpClientRequest.get(`/guilds/templates/${code}`).pipe(
7356
7397
  onRequest(["2xx"], {
@@ -7358,14 +7399,6 @@ export const make = (
7358
7399
  "4xx": "ErrorResponse",
7359
7400
  }),
7360
7401
  ),
7361
- createGuildFromTemplate: (code, options) =>
7362
- HttpClientRequest.post(`/guilds/templates/${code}`).pipe(
7363
- HttpClientRequest.bodyUnsafeJson(options),
7364
- onRequest(["2xx"], {
7365
- "429": "RatelimitedResponse",
7366
- "4xx": "ErrorResponse",
7367
- }),
7368
- ),
7369
7402
  getGuild: (guildId, options) =>
7370
7403
  HttpClientRequest.get(`/guilds/${guildId}`).pipe(
7371
7404
  HttpClientRequest.setUrlParams({
@@ -7467,8 +7500,9 @@ export const make = (
7467
7500
  HttpClientRequest.bodyUnsafeJson(options),
7468
7501
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7469
7502
  ),
7470
- unbanUserFromGuild: (guildId, userId) =>
7503
+ unbanUserFromGuild: (guildId, userId, options) =>
7471
7504
  HttpClientRequest.del(`/guilds/${guildId}/bans/${userId}`).pipe(
7505
+ HttpClientRequest.bodyUnsafeJson(options),
7472
7506
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7473
7507
  ),
7474
7508
  bulkBanUsersFromGuild: (guildId, options) =>
@@ -8613,7 +8647,7 @@ export interface DiscordRest {
8613
8647
  >
8614
8648
  readonly getEntitlements: (
8615
8649
  applicationId: string,
8616
- options: GetEntitlementsParams,
8650
+ options?: GetEntitlementsParams | undefined,
8617
8651
  ) => Effect.Effect<
8618
8652
  GetEntitlements200,
8619
8653
  | HttpClientError.HttpClientError
@@ -9205,14 +9239,6 @@ export interface DiscordRest {
9205
9239
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9206
9240
  | DiscordRestError<"ErrorResponse", ErrorResponse>
9207
9241
  >
9208
- readonly createGuild: (
9209
- options: GuildCreateRequest,
9210
- ) => Effect.Effect<
9211
- GuildResponse,
9212
- | HttpClientError.HttpClientError
9213
- | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9214
- | DiscordRestError<"ErrorResponse", ErrorResponse>
9215
- >
9216
9242
  readonly getGuildTemplate: (
9217
9243
  code: string,
9218
9244
  ) => Effect.Effect<
@@ -9221,15 +9247,6 @@ export interface DiscordRest {
9221
9247
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9222
9248
  | DiscordRestError<"ErrorResponse", ErrorResponse>
9223
9249
  >
9224
- readonly createGuildFromTemplate: (
9225
- code: string,
9226
- options: CreateGuildFromTemplateRequest,
9227
- ) => Effect.Effect<
9228
- GuildResponse,
9229
- | HttpClientError.HttpClientError
9230
- | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9231
- | DiscordRestError<"ErrorResponse", ErrorResponse>
9232
- >
9233
9250
  readonly getGuild: (
9234
9251
  guildId: string,
9235
9252
  options?: GetGuildParams | undefined,
@@ -9341,6 +9358,7 @@ export interface DiscordRest {
9341
9358
  readonly unbanUserFromGuild: (
9342
9359
  guildId: string,
9343
9360
  userId: string,
9361
+ options: UnbanUserFromGuildRequest,
9344
9362
  ) => Effect.Effect<
9345
9363
  void,
9346
9364
  | HttpClientError.HttpClientError
@@ -9349,7 +9367,7 @@ export interface DiscordRest {
9349
9367
  >
9350
9368
  readonly bulkBanUsersFromGuild: (
9351
9369
  guildId: string,
9352
- options: BulkBanUsersFromGuildRequest,
9370
+ options: BulkBanUsersRequest,
9353
9371
  ) => Effect.Effect<
9354
9372
  BulkBanUsersResponse,
9355
9373
  | HttpClientError.HttpClientError
@@ -9539,7 +9557,7 @@ export interface DiscordRest {
9539
9557
  >
9540
9558
  readonly setGuildMfaLevel: (
9541
9559
  guildId: string,
9542
- options: SetGuildMfaLevelRequest,
9560
+ options: GuildMFARequest,
9543
9561
  ) => Effect.Effect<
9544
9562
  GuildMFALevelResponse,
9545
9563
  | HttpClientError.HttpClientError
@@ -9615,7 +9633,7 @@ export interface DiscordRest {
9615
9633
  >
9616
9634
  readonly createGuildRole: (
9617
9635
  guildId: string,
9618
- options: CreateGuildRoleRequest,
9636
+ options: CreateRoleRequest,
9619
9637
  ) => Effect.Effect<
9620
9638
  GuildRoleResponse,
9621
9639
  | HttpClientError.HttpClientError
@@ -9652,7 +9670,7 @@ export interface DiscordRest {
9652
9670
  readonly updateGuildRole: (
9653
9671
  guildId: string,
9654
9672
  roleId: string,
9655
- options: UpdateGuildRoleRequest,
9673
+ options: UpdateRoleRequestPartial,
9656
9674
  ) => Effect.Effect<
9657
9675
  GuildRoleResponse,
9658
9676
  | HttpClientError.HttpClientError
@@ -9877,7 +9895,7 @@ export interface DiscordRest {
9877
9895
  >
9878
9896
  readonly updateSelfVoiceState: (
9879
9897
  guildId: string,
9880
- options: UpdateSelfVoiceStateRequest,
9898
+ options: UpdateSelfVoiceStateRequestPartial,
9881
9899
  ) => Effect.Effect<
9882
9900
  void,
9883
9901
  | HttpClientError.HttpClientError
@@ -9896,7 +9914,7 @@ export interface DiscordRest {
9896
9914
  readonly updateVoiceState: (
9897
9915
  guildId: string,
9898
9916
  userId: string,
9899
- options: UpdateVoiceStateRequest,
9917
+ options: UpdateVoiceStateRequestPartial,
9900
9918
  ) => Effect.Effect<
9901
9919
  void,
9902
9920
  | HttpClientError.HttpClientError