dfx 0.124.1 → 0.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1510,25 +1493,21 @@ export interface GuildChannelResponse {
1510
1493
  readonly guild_id: SnowflakeType
1511
1494
  readonly name: string
1512
1495
  readonly parent_id?: SnowflakeType | null | undefined
1513
- readonly rate_limit_per_user?: number | null | undefined
1514
- readonly bitrate?: number | null | undefined
1515
- 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
1516
1499
  readonly rtc_region?: string | null | undefined
1517
- readonly video_quality_mode?: VideoQualityModes | null | undefined
1500
+ readonly video_quality_mode?: VideoQualityModes | undefined
1518
1501
  readonly permissions?: string | null | undefined
1519
1502
  readonly topic?: string | null | undefined
1520
- readonly default_auto_archive_duration?:
1521
- | ThreadAutoArchiveDuration
1522
- | null
1523
- | undefined
1524
- 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
1525
1505
  readonly position: number
1526
1506
  readonly permission_overwrites?:
1527
1507
  | ReadonlyArray<ChannelPermissionOverwriteResponse>
1528
- | null
1529
1508
  | undefined
1530
- readonly nsfw?: boolean | null | undefined
1531
- readonly available_tags?: ReadonlyArray<ForumTagResponse> | null | undefined
1509
+ readonly nsfw?: boolean | undefined
1510
+ readonly available_tags?: ReadonlyArray<ForumTagResponse> | undefined
1532
1511
  readonly default_reaction_emoji?:
1533
1512
  | DefaultReactionEmojiResponse
1534
1513
  | null
@@ -1536,8 +1515,8 @@ export interface GuildChannelResponse {
1536
1515
  readonly default_sort_order?: ThreadSortOrder | null | undefined
1537
1516
  readonly default_forum_layout?: ForumLayout | null | undefined
1538
1517
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
1539
- readonly hd_streaming_until?: string | null | undefined
1540
- readonly hd_streaming_buyer_id?: SnowflakeType | null | undefined
1518
+ readonly hd_streaming_until?: string | undefined
1519
+ readonly hd_streaming_buyer_id?: SnowflakeType | undefined
1541
1520
  }
1542
1521
 
1543
1522
  export interface PrivateChannelResponse {
@@ -1558,9 +1537,9 @@ export interface PrivateGroupChannelResponse {
1558
1537
  readonly recipients: ReadonlyArray<UserResponse>
1559
1538
  readonly name?: string | null | undefined
1560
1539
  readonly icon?: string | null | undefined
1561
- readonly owner_id?: SnowflakeType | null | undefined
1562
- readonly managed?: boolean | null | undefined
1563
- readonly application_id?: SnowflakeType | null | undefined
1540
+ readonly owner_id: SnowflakeType
1541
+ readonly managed?: boolean | undefined
1542
+ readonly application_id?: SnowflakeType | undefined
1564
1543
  }
1565
1544
 
1566
1545
  export interface ThreadMetadataResponse {
@@ -1568,8 +1547,8 @@ export interface ThreadMetadataResponse {
1568
1547
  readonly archive_timestamp?: string | null | undefined
1569
1548
  readonly auto_archive_duration: ThreadAutoArchiveDuration
1570
1549
  readonly locked: boolean
1571
- readonly create_timestamp?: string | null | undefined
1572
- readonly invitable?: boolean | null | undefined
1550
+ readonly create_timestamp?: string | undefined
1551
+ readonly invitable?: boolean | undefined
1573
1552
  }
1574
1553
 
1575
1554
  export interface GuildMemberResponse {
@@ -1597,7 +1576,7 @@ export interface ThreadMemberResponse {
1597
1576
  readonly user_id: SnowflakeType
1598
1577
  readonly join_timestamp: string
1599
1578
  readonly flags: number
1600
- readonly member?: GuildMemberResponse | null | undefined
1579
+ readonly member?: GuildMemberResponse | undefined
1601
1580
  }
1602
1581
 
1603
1582
  export interface ThreadResponse {
@@ -1609,19 +1588,19 @@ export interface ThreadResponse {
1609
1588
  readonly guild_id: SnowflakeType
1610
1589
  readonly name: string
1611
1590
  readonly parent_id?: SnowflakeType | null | undefined
1612
- readonly rate_limit_per_user?: number | null | undefined
1613
- readonly bitrate?: number | null | undefined
1614
- 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
1615
1594
  readonly rtc_region?: string | null | undefined
1616
- readonly video_quality_mode?: VideoQualityModes | null | undefined
1595
+ readonly video_quality_mode?: VideoQualityModes | undefined
1617
1596
  readonly permissions?: string | null | undefined
1618
1597
  readonly owner_id: SnowflakeType
1619
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined
1598
+ readonly thread_metadata: ThreadMetadataResponse
1620
1599
  readonly message_count: number
1621
1600
  readonly member_count: number
1622
1601
  readonly total_message_sent: number
1623
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined
1624
- readonly member?: ThreadMemberResponse | null | undefined
1602
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined
1603
+ readonly member?: ThreadMemberResponse | undefined
1625
1604
  }
1626
1605
 
1627
1606
  export type GetChannel200 =
@@ -1751,36 +1730,35 @@ export interface InviteChannelResponse {
1751
1730
  readonly id: SnowflakeType
1752
1731
  readonly type: ChannelTypes
1753
1732
  readonly name?: string | null | undefined
1754
- readonly icon?: string | null | undefined
1733
+ readonly icon?: string | undefined
1755
1734
  readonly recipients?:
1756
1735
  | ReadonlyArray<InviteChannelRecipientResponse>
1757
- | null
1758
1736
  | undefined
1759
1737
  }
1760
1738
 
1761
1739
  export interface FriendInviteResponse {
1762
- readonly type?: 2 | null | undefined
1740
+ readonly type: 2
1763
1741
  readonly code: string
1764
- readonly inviter?: UserResponse | null | undefined
1765
- readonly max_age?: number | null | undefined
1766
- readonly created_at?: string | null | undefined
1742
+ readonly inviter?: UserResponse | undefined
1743
+ readonly max_age?: number | undefined
1744
+ readonly created_at?: string | undefined
1767
1745
  readonly expires_at?: string | null | undefined
1768
- readonly friends_count?: number | null | undefined
1746
+ readonly friends_count?: number | undefined
1769
1747
  readonly channel?: InviteChannelResponse | null | undefined
1770
- readonly is_contact?: boolean | null | undefined
1771
- readonly uses?: number | null | undefined
1772
- readonly max_uses?: number | null | undefined
1773
- 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
1774
1752
  }
1775
1753
 
1776
1754
  export interface GroupDMInviteResponse {
1777
- readonly type?: 1 | null | undefined
1755
+ readonly type: 1
1778
1756
  readonly code: string
1779
- readonly inviter?: UserResponse | null | undefined
1780
- readonly max_age?: number | null | undefined
1781
- readonly created_at?: string | null | undefined
1757
+ readonly inviter?: UserResponse | undefined
1758
+ readonly max_age?: number | undefined
1759
+ readonly created_at?: string | undefined
1782
1760
  readonly expires_at?: string | null | undefined
1783
- readonly channel?: InviteChannelResponse | null | undefined
1761
+ readonly channel: InviteChannelResponse
1784
1762
  readonly approximate_member_count?: number | null | undefined
1785
1763
  }
1786
1764
 
@@ -1943,7 +1921,7 @@ export interface InviteGuildResponse {
1943
1921
  readonly vanity_url_code?: string | null | undefined
1944
1922
  readonly nsfw_level?: GuildNSFWContentLevel | null | undefined
1945
1923
  readonly nsfw?: boolean | null | undefined
1946
- readonly premium_subscription_count?: number | null | undefined
1924
+ readonly premium_subscription_count: number
1947
1925
  }
1948
1926
 
1949
1927
  export const InviteTargetTypes = {
@@ -1960,26 +1938,23 @@ export interface InviteApplicationResponse {
1960
1938
  readonly icon?: string | null | undefined
1961
1939
  readonly description: string
1962
1940
  readonly type?: ApplicationTypes | null | undefined
1963
- readonly cover_image?: string | null | undefined
1964
- readonly primary_sku_id?: SnowflakeType | null | undefined
1965
- readonly bot?: UserResponse | null | undefined
1966
- readonly slug?: string | null | undefined
1967
- readonly guild_id?: SnowflakeType | null | undefined
1968
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined
1969
- readonly bot_public?: boolean | null | undefined
1970
- readonly bot_require_code_grant?: boolean | null | undefined
1971
- readonly terms_of_service_url?: string | null | undefined
1972
- readonly privacy_policy_url?: string | null | undefined
1973
- readonly custom_install_url?: string | null | undefined
1974
- readonly install_params?:
1975
- | ApplicationOAuth2InstallParamsResponse
1976
- | null
1977
- | undefined
1978
- 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
1979
1954
  readonly verify_key: string
1980
1955
  readonly flags: number
1981
1956
  readonly max_participants?: number | null | undefined
1982
- readonly tags?: ReadonlyArray<string> | null | undefined
1957
+ readonly tags?: ReadonlyArray<string> | undefined
1983
1958
  }
1984
1959
 
1985
1960
  export const GuildScheduledEventStatuses = {
@@ -2005,8 +1980,8 @@ export type GuildScheduledEventPrivacyLevels = 2
2005
1980
  export interface ScheduledEventUserResponse {
2006
1981
  readonly guild_scheduled_event_id: SnowflakeType
2007
1982
  readonly user_id: SnowflakeType
2008
- readonly user?: UserResponse | null | undefined
2009
- readonly member?: GuildMemberResponse | null | undefined
1983
+ readonly user?: UserResponse | undefined
1984
+ readonly member?: GuildMemberResponse | undefined
2010
1985
  }
2011
1986
 
2012
1987
  export interface ScheduledEventResponse {
@@ -2016,44 +1991,44 @@ export interface ScheduledEventResponse {
2016
1991
  readonly description?: string | null | undefined
2017
1992
  readonly channel_id?: SnowflakeType | null | undefined
2018
1993
  readonly creator_id?: SnowflakeType | null | undefined
2019
- readonly creator?: UserResponse | null | undefined
1994
+ readonly creator?: UserResponse | undefined
2020
1995
  readonly image?: string | null | undefined
2021
1996
  readonly scheduled_start_time: string
2022
1997
  readonly scheduled_end_time?: string | null | undefined
2023
1998
  readonly status: GuildScheduledEventStatuses
2024
1999
  readonly entity_type: GuildScheduledEventEntityTypes
2025
2000
  readonly entity_id?: SnowflakeType | null | undefined
2026
- readonly user_count?: number | null | undefined
2001
+ readonly user_count?: number | undefined
2027
2002
  readonly privacy_level: GuildScheduledEventPrivacyLevels
2028
2003
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
2029
2004
  }
2030
2005
 
2031
2006
  export interface GuildInviteResponse {
2032
- readonly type?: 0 | null | undefined
2007
+ readonly type: 0
2033
2008
  readonly code: string
2034
- readonly inviter?: UserResponse | null | undefined
2035
- readonly max_age?: number | null | undefined
2036
- readonly created_at?: string | null | undefined
2009
+ readonly inviter?: UserResponse | undefined
2010
+ readonly max_age?: number | undefined
2011
+ readonly created_at?: string | undefined
2037
2012
  readonly expires_at?: string | null | undefined
2038
- readonly is_contact?: boolean | null | undefined
2039
- readonly flags?: number | null | undefined
2040
- readonly guild?: InviteGuildResponse | null | undefined
2041
- readonly guild_id?: SnowflakeType | null | undefined
2042
- readonly channel?: InviteChannelResponse | null | undefined
2043
- readonly target_type?: InviteTargetTypes | null | undefined
2044
- readonly target_user?: UserResponse | null | undefined
2045
- readonly target_application?: InviteApplicationResponse | null | undefined
2046
- readonly guild_scheduled_event?: ScheduledEventResponse | null | undefined
2047
- readonly uses?: number | null | undefined
2048
- readonly max_uses?: number | null | undefined
2049
- 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
2050
2025
  readonly approximate_member_count?: number | null | undefined
2051
2026
  readonly approximate_presence_count?: number | null | undefined
2052
- readonly is_nickname_changeable?: boolean | null | undefined
2027
+ readonly is_nickname_changeable?: boolean | undefined
2053
2028
  }
2054
2029
 
2055
2030
  export type ListChannelInvites200 = ReadonlyArray<
2056
- FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
2031
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null
2057
2032
  >
2058
2033
 
2059
2034
  export interface CreateGroupDMInviteRequest {
@@ -2133,17 +2108,17 @@ export interface MessageAttachmentResponse {
2133
2108
  readonly size: number
2134
2109
  readonly url: string
2135
2110
  readonly proxy_url: string
2136
- readonly width?: number | null | undefined
2137
- readonly height?: number | null | undefined
2138
- readonly duration_secs?: number | null | undefined
2139
- readonly waveform?: string | null | undefined
2140
- readonly description?: string | null | undefined
2141
- readonly content_type?: string | null | undefined
2142
- 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
2143
2118
  readonly title?: string | null | undefined
2144
- readonly application?: ApplicationResponse | null | undefined
2145
- readonly clip_created_at?: string | null | undefined
2146
- 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
2147
2122
  }
2148
2123
 
2149
2124
  export interface MessageEmbedFieldResponse {
@@ -2154,62 +2129,62 @@ export interface MessageEmbedFieldResponse {
2154
2129
 
2155
2130
  export interface MessageEmbedAuthorResponse {
2156
2131
  readonly name: string
2157
- readonly url?: string | null | undefined
2158
- readonly icon_url?: string | null | undefined
2159
- 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
2160
2135
  }
2161
2136
 
2162
2137
  export interface MessageEmbedProviderResponse {
2163
2138
  readonly name: string
2164
- readonly url?: string | null | undefined
2139
+ readonly url?: string | undefined
2165
2140
  }
2166
2141
 
2167
2142
  export type UInt32Type = number
2168
2143
 
2169
2144
  export interface MessageEmbedImageResponse {
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
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
2179
2154
  }
2180
2155
 
2181
2156
  export interface MessageEmbedVideoResponse {
2182
- readonly url?: string | null | undefined
2183
- readonly proxy_url?: string | null | undefined
2184
- readonly width?: UInt32Type | null | undefined
2185
- readonly height?: UInt32Type | null | undefined
2186
- readonly content_type?: string | null | undefined
2187
- readonly placeholder?: string | null | undefined
2188
- readonly placeholder_version?: UInt32Type | null | undefined
2189
- readonly description?: string | null | undefined
2190
- 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
2191
2166
  }
2192
2167
 
2193
2168
  export interface MessageEmbedFooterResponse {
2194
2169
  readonly text: string
2195
- readonly icon_url?: string | null | undefined
2196
- readonly proxy_icon_url?: string | null | undefined
2170
+ readonly icon_url?: string | undefined
2171
+ readonly proxy_icon_url?: string | undefined
2197
2172
  }
2198
2173
 
2199
2174
  export interface MessageEmbedResponse {
2200
2175
  readonly type: string
2201
- readonly url?: string | null | undefined
2202
- readonly title?: string | null | undefined
2203
- readonly description?: string | null | undefined
2204
- readonly color?: number | null | undefined
2205
- readonly timestamp?: string | null | undefined
2206
- readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | null | undefined
2207
- readonly author?: MessageEmbedAuthorResponse | null | undefined
2208
- readonly provider?: MessageEmbedProviderResponse | null | undefined
2209
- readonly image?: MessageEmbedImageResponse | null | undefined
2210
- readonly thumbnail?: MessageEmbedImageResponse | null | undefined
2211
- readonly video?: MessageEmbedVideoResponse | null | undefined
2212
- 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
2213
2188
  }
2214
2189
 
2215
2190
  export const MessageComponentTypes = {
@@ -2273,6 +2248,10 @@ export const MessageComponentTypes = {
2273
2248
  * Container component
2274
2249
  */
2275
2250
  CONTAINER: 17,
2251
+ /**
2252
+ * Label component
2253
+ */
2254
+ LABEL: 18,
2276
2255
  } as const
2277
2256
  export type MessageComponentTypes =
2278
2257
  (typeof MessageComponentTypes)[keyof typeof MessageComponentTypes]
@@ -2289,21 +2268,21 @@ export type ButtonStyleTypes =
2289
2268
  (typeof ButtonStyleTypes)[keyof typeof ButtonStyleTypes]
2290
2269
 
2291
2270
  export interface ComponentEmojiResponse {
2292
- readonly id?: SnowflakeType | null | undefined
2271
+ readonly id?: SnowflakeType | undefined
2293
2272
  readonly name: string
2294
- readonly animated?: boolean | null | undefined
2273
+ readonly animated?: boolean | undefined
2295
2274
  }
2296
2275
 
2297
2276
  export interface ButtonComponentResponse {
2298
2277
  readonly type: 2
2299
2278
  readonly id: number
2300
- readonly custom_id?: string | null | undefined
2279
+ readonly custom_id?: string | undefined
2301
2280
  readonly style: ButtonStyleTypes
2302
- readonly label?: string | null | undefined
2303
- readonly disabled?: boolean | null | undefined
2304
- readonly emoji?: ComponentEmojiResponse | null | undefined
2281
+ readonly label?: string | undefined
2282
+ readonly disabled?: boolean | undefined
2283
+ readonly emoji?: ComponentEmojiResponse | undefined
2305
2284
  readonly url?: string | null | undefined
2306
- readonly sku_id?: SnowflakeType | null | undefined
2285
+ readonly sku_id?: SnowflakeType | undefined
2307
2286
  }
2308
2287
 
2309
2288
  export const SnowflakeSelectDefaultValueTypes = {
@@ -2323,14 +2302,13 @@ export interface ChannelSelectComponentResponse {
2323
2302
  readonly type: 8
2324
2303
  readonly id: number
2325
2304
  readonly custom_id: string
2326
- readonly placeholder?: string | null | undefined
2305
+ readonly placeholder?: string | undefined
2327
2306
  readonly min_values?: number | null | undefined
2328
2307
  readonly max_values?: number | null | undefined
2329
- readonly disabled?: boolean | null | undefined
2330
- readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
2308
+ readonly disabled?: boolean | undefined
2309
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
2331
2310
  readonly default_values?:
2332
2311
  | ReadonlyArray<ChannelSelectDefaultValueResponse>
2333
- | null
2334
2312
  | undefined
2335
2313
  }
2336
2314
 
@@ -2348,15 +2326,14 @@ export interface MentionableSelectComponentResponse {
2348
2326
  readonly type: 7
2349
2327
  readonly id: number
2350
2328
  readonly custom_id: string
2351
- readonly placeholder?: string | null | undefined
2329
+ readonly placeholder?: string | undefined
2352
2330
  readonly min_values?: number | null | undefined
2353
2331
  readonly max_values?: number | null | undefined
2354
- readonly disabled?: boolean | null | undefined
2332
+ readonly disabled?: boolean | undefined
2355
2333
  readonly default_values?:
2356
2334
  | ReadonlyArray<
2357
2335
  RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse
2358
2336
  >
2359
- | null
2360
2337
  | undefined
2361
2338
  }
2362
2339
 
@@ -2364,32 +2341,31 @@ export interface RoleSelectComponentResponse {
2364
2341
  readonly type: 6
2365
2342
  readonly id: number
2366
2343
  readonly custom_id: string
2367
- readonly placeholder?: string | null | undefined
2344
+ readonly placeholder?: string | undefined
2368
2345
  readonly min_values?: number | null | undefined
2369
2346
  readonly max_values?: number | null | undefined
2370
- readonly disabled?: boolean | null | undefined
2347
+ readonly disabled?: boolean | undefined
2371
2348
  readonly default_values?:
2372
2349
  | ReadonlyArray<RoleSelectDefaultValueResponse>
2373
- | null
2374
2350
  | undefined
2375
2351
  }
2376
2352
 
2377
2353
  export interface StringSelectOptionResponse {
2378
2354
  readonly label: string
2379
2355
  readonly value: string
2380
- readonly description?: string | null | undefined
2381
- readonly emoji?: ComponentEmojiResponse | null | undefined
2382
- readonly default?: boolean | null | undefined
2356
+ readonly description?: string | undefined
2357
+ readonly emoji?: ComponentEmojiResponse | undefined
2358
+ readonly default?: boolean | undefined
2383
2359
  }
2384
2360
 
2385
2361
  export interface StringSelectComponentResponse {
2386
2362
  readonly type: 3
2387
2363
  readonly id: number
2388
2364
  readonly custom_id: string
2389
- readonly placeholder?: string | null | undefined
2365
+ readonly placeholder?: string | undefined
2390
2366
  readonly min_values?: number | null | undefined
2391
2367
  readonly max_values?: number | null | undefined
2392
- readonly disabled?: boolean | null | undefined
2368
+ readonly disabled?: boolean | undefined
2393
2369
  readonly options: ReadonlyArray<StringSelectOptionResponse>
2394
2370
  }
2395
2371
 
@@ -2412,9 +2388,9 @@ export interface TextInputComponentResponse {
2412
2388
  readonly custom_id: string
2413
2389
  readonly style: TextInputStyleTypes
2414
2390
  readonly label?: string | null | undefined
2415
- readonly value?: string | null | undefined
2416
- readonly placeholder?: string | null | undefined
2417
- readonly required?: boolean | null | undefined
2391
+ readonly value?: string | undefined
2392
+ readonly placeholder?: string | undefined
2393
+ readonly required?: boolean | undefined
2418
2394
  readonly min_length?: number | null | undefined
2419
2395
  readonly max_length?: number | null | undefined
2420
2396
  }
@@ -2423,31 +2399,27 @@ export interface UserSelectComponentResponse {
2423
2399
  readonly type: 5
2424
2400
  readonly id: number
2425
2401
  readonly custom_id: string
2426
- readonly placeholder?: string | null | undefined
2402
+ readonly placeholder?: string | undefined
2427
2403
  readonly min_values?: number | null | undefined
2428
2404
  readonly max_values?: number | null | undefined
2429
- readonly disabled?: boolean | null | undefined
2405
+ readonly disabled?: boolean | undefined
2430
2406
  readonly default_values?:
2431
2407
  | ReadonlyArray<UserSelectDefaultValueResponse>
2432
- | null
2433
2408
  | undefined
2434
2409
  }
2435
2410
 
2436
2411
  export interface ActionRowComponentResponse {
2437
2412
  readonly type: 1
2438
2413
  readonly id: number
2439
- readonly components?:
2440
- | ReadonlyArray<
2441
- | ButtonComponentResponse
2442
- | ChannelSelectComponentResponse
2443
- | MentionableSelectComponentResponse
2444
- | RoleSelectComponentResponse
2445
- | StringSelectComponentResponse
2446
- | TextInputComponentResponse
2447
- | UserSelectComponentResponse
2448
- >
2449
- | null
2450
- | undefined
2414
+ readonly components: ReadonlyArray<
2415
+ | ButtonComponentResponse
2416
+ | ChannelSelectComponentResponse
2417
+ | MentionableSelectComponentResponse
2418
+ | RoleSelectComponentResponse
2419
+ | StringSelectComponentResponse
2420
+ | TextInputComponentResponse
2421
+ | UserSelectComponentResponse
2422
+ >
2451
2423
  }
2452
2424
 
2453
2425
  export interface UnfurledMediaResponse {
@@ -2457,7 +2429,7 @@ export interface UnfurledMediaResponse {
2457
2429
  readonly width?: number | null | undefined
2458
2430
  readonly height?: number | null | undefined
2459
2431
  readonly content_type?: string | null | undefined
2460
- readonly attachment_id?: SnowflakeType | null | undefined
2432
+ readonly attachment_id?: SnowflakeType | undefined
2461
2433
  }
2462
2434
 
2463
2435
  export interface FileComponentResponse {
@@ -2537,13 +2509,6 @@ export interface ContainerComponentResponse {
2537
2509
  readonly spoiler: boolean
2538
2510
  }
2539
2511
 
2540
- export interface ResolvedObjectsResponse {
2541
- readonly users: Record<string, unknown>
2542
- readonly members: Record<string, unknown>
2543
- readonly channels: Record<string, unknown>
2544
- readonly roles: Record<string, unknown>
2545
- }
2546
-
2547
2512
  export const StickerTypes = {
2548
2513
  /**
2549
2514
  * an official sticker in a pack, part of Nitro or in a removed purchasable pack
@@ -2574,7 +2539,7 @@ export interface GuildStickerResponse {
2574
2539
  readonly description?: string | null | undefined
2575
2540
  readonly available: boolean
2576
2541
  readonly guild_id: SnowflakeType
2577
- readonly user?: UserResponse | null | undefined
2542
+ readonly user?: UserResponse | undefined
2578
2543
  }
2579
2544
 
2580
2545
  export interface StandardStickerResponse {
@@ -2607,9 +2572,9 @@ export interface BasicApplicationResponse {
2607
2572
  readonly icon?: string | null | undefined
2608
2573
  readonly description: string
2609
2574
  readonly type?: ApplicationTypes | null | undefined
2610
- readonly cover_image?: string | null | undefined
2611
- readonly primary_sku_id?: SnowflakeType | null | undefined
2612
- readonly bot?: UserResponse | null | undefined
2575
+ readonly cover_image?: string | undefined
2576
+ readonly primary_sku_id?: SnowflakeType | undefined
2577
+ readonly bot?: UserResponse | undefined
2613
2578
  }
2614
2579
 
2615
2580
  export const InteractionTypes = {
@@ -2641,17 +2606,17 @@ export interface MessageInteractionResponse {
2641
2606
  readonly id: SnowflakeType
2642
2607
  readonly type: InteractionTypes
2643
2608
  readonly name: string
2644
- readonly user?: UserResponse | null | undefined
2645
- readonly name_localized?: string | null | undefined
2609
+ readonly user?: UserResponse | undefined
2610
+ readonly name_localized?: string | undefined
2646
2611
  }
2647
2612
 
2648
2613
  export type MessageReferenceType = 0
2649
2614
 
2650
2615
  export interface MessageReferenceResponse {
2651
- readonly type?: MessageReferenceType | null | undefined
2616
+ readonly type: MessageReferenceType
2652
2617
  readonly channel_id: SnowflakeType
2653
- readonly message_id?: SnowflakeType | null | undefined
2654
- readonly guild_id?: SnowflakeType | null | undefined
2618
+ readonly message_id?: SnowflakeType | undefined
2619
+ readonly guild_id?: SnowflakeType | undefined
2655
2620
  }
2656
2621
 
2657
2622
  export interface MessageMentionChannelResponse {
@@ -2677,21 +2642,25 @@ export interface GuildProductPurchaseResponse {
2677
2642
 
2678
2643
  export interface PurchaseNotificationResponse {
2679
2644
  readonly type: PurchaseType
2680
- readonly guild_product_purchase?:
2681
- | GuildProductPurchaseResponse
2682
- | null
2683
- | 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
2684
2653
  }
2685
2654
 
2686
2655
  export interface MessageReactionEmojiResponse {
2687
2656
  readonly id?: SnowflakeType | null | undefined
2688
2657
  readonly name?: string | null | undefined
2689
- readonly animated?: boolean | null | undefined
2658
+ readonly animated?: boolean | undefined
2690
2659
  }
2691
2660
 
2692
2661
  export interface PollMediaResponse {
2693
- readonly text?: string | null | undefined
2694
- readonly emoji?: MessageReactionEmojiResponse | null | undefined
2662
+ readonly text?: string | undefined
2663
+ readonly emoji?: MessageReactionEmojiResponse | undefined
2695
2664
  }
2696
2665
 
2697
2666
  export interface PollAnswerResponse {
@@ -2704,14 +2673,11 @@ export type PollLayoutTypes = number
2704
2673
  export interface PollResultsEntryResponse {
2705
2674
  readonly id: number
2706
2675
  readonly count: number
2707
- readonly me_voted?: boolean | null | undefined
2676
+ readonly me_voted: boolean
2708
2677
  }
2709
2678
 
2710
2679
  export interface PollResultsResponse {
2711
- readonly answer_counts?:
2712
- | ReadonlyArray<PollResultsEntryResponse>
2713
- | null
2714
- | undefined
2680
+ readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>
2715
2681
  readonly is_finalized: boolean
2716
2682
  }
2717
2683
 
@@ -2724,31 +2690,63 @@ export interface PollResponse {
2724
2690
  readonly results: PollResultsResponse
2725
2691
  }
2726
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
+
2727
2725
  export interface ApplicationCommandInteractionMetadataResponse {
2728
2726
  readonly id: SnowflakeType
2729
2727
  readonly type: 2
2730
- readonly user?: UserResponse | null | undefined
2728
+ readonly user?: UserResponse | undefined
2731
2729
  readonly authorizing_integration_owners: Record<string, unknown>
2732
- readonly original_response_message_id?: SnowflakeType | null | undefined
2733
- readonly target_user?: UserResponse | null | undefined
2734
- 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
2735
2733
  }
2736
2734
 
2737
2735
  export interface MessageComponentInteractionMetadataResponse {
2738
2736
  readonly id: SnowflakeType
2739
2737
  readonly type: 3
2740
- readonly user?: UserResponse | null | undefined
2738
+ readonly user?: UserResponse | undefined
2741
2739
  readonly authorizing_integration_owners: Record<string, unknown>
2742
- readonly original_response_message_id?: SnowflakeType | null | undefined
2740
+ readonly original_response_message_id?: SnowflakeType | undefined
2743
2741
  readonly interacted_message_id: SnowflakeType
2744
2742
  }
2745
2743
 
2746
2744
  export interface ModalSubmitInteractionMetadataResponse {
2747
2745
  readonly id: SnowflakeType
2748
2746
  readonly type: 5
2749
- readonly user?: UserResponse | null | undefined
2747
+ readonly user?: UserResponse | undefined
2750
2748
  readonly authorizing_integration_owners: Record<string, unknown>
2751
- readonly original_response_message_id?: SnowflakeType | null | undefined
2749
+ readonly original_response_message_id?: SnowflakeType | undefined
2752
2750
  readonly triggering_interaction_metadata:
2753
2751
  | ApplicationCommandInteractionMetadataResponse
2754
2752
  | MessageComponentInteractionMetadataResponse
@@ -2773,19 +2771,14 @@ export interface MinimalContentMessageResponse {
2773
2771
  | SeparatorComponentResponse
2774
2772
  | TextDisplayComponentResponse
2775
2773
  >
2776
- readonly resolved?: ResolvedObjectsResponse | null | undefined
2777
2774
  readonly stickers?:
2778
2775
  | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
2779
- | null
2780
- | undefined
2781
- readonly sticker_items?:
2782
- | ReadonlyArray<MessageStickerItemResponse>
2783
- | null
2784
2776
  | undefined
2777
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
2785
2778
  }
2786
2779
 
2787
2780
  export interface MessageSnapshotResponse {
2788
- readonly message?: MinimalContentMessageResponse | null | undefined
2781
+ readonly message: MinimalContentMessageResponse
2789
2782
  }
2790
2783
 
2791
2784
  export interface MessageReactionCountDetailsResponse {
@@ -2821,53 +2814,43 @@ export interface BasicMessageResponse {
2821
2814
  | SeparatorComponentResponse
2822
2815
  | TextDisplayComponentResponse
2823
2816
  >
2824
- readonly resolved?: ResolvedObjectsResponse | null | undefined
2825
2817
  readonly stickers?:
2826
2818
  | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
2827
- | null
2828
- | undefined
2829
- readonly sticker_items?:
2830
- | ReadonlyArray<MessageStickerItemResponse>
2831
- | null
2832
2819
  | undefined
2820
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
2833
2821
  readonly id: SnowflakeType
2834
2822
  readonly channel_id: SnowflakeType
2835
2823
  readonly author: UserResponse
2836
2824
  readonly pinned: boolean
2837
2825
  readonly mention_everyone: boolean
2838
2826
  readonly tts: boolean
2839
- readonly call?: MessageCallResponse | null | undefined
2840
- readonly activity?: MessageActivityResponse | null | undefined
2841
- readonly application?: BasicApplicationResponse | null | undefined
2842
- readonly application_id?: SnowflakeType | null | undefined
2843
- 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
2844
2832
  readonly nonce?: number | string | null | undefined
2845
- readonly webhook_id?: SnowflakeType | null | undefined
2846
- readonly message_reference?: MessageReferenceResponse | null | undefined
2847
- readonly thread?: ThreadResponse | null | undefined
2833
+ readonly webhook_id?: SnowflakeType | undefined
2834
+ readonly message_reference?: MessageReferenceResponse | undefined
2835
+ readonly thread?: ThreadResponse | undefined
2848
2836
  readonly mention_channels?:
2849
2837
  | ReadonlyArray<null | MessageMentionChannelResponse>
2850
- | null
2851
2838
  | undefined
2852
2839
  readonly role_subscription_data?:
2853
2840
  | MessageRoleSubscriptionDataResponse
2854
- | null
2855
2841
  | undefined
2856
- readonly purchase_notification?:
2857
- | PurchaseNotificationResponse
2858
- | null
2859
- | undefined
2860
- readonly position?: number | null | undefined
2861
- 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
2862
2847
  readonly interaction_metadata?:
2863
2848
  | ApplicationCommandInteractionMetadataResponse
2864
2849
  | MessageComponentInteractionMetadataResponse
2865
2850
  | ModalSubmitInteractionMetadataResponse
2866
- | null
2867
2851
  | undefined
2868
2852
  readonly message_snapshots?:
2869
2853
  | ReadonlyArray<MessageSnapshotResponse>
2870
- | null
2871
2854
  | undefined
2872
2855
  }
2873
2856
 
@@ -2890,55 +2873,45 @@ export interface MessageResponse {
2890
2873
  | SeparatorComponentResponse
2891
2874
  | TextDisplayComponentResponse
2892
2875
  >
2893
- readonly resolved?: ResolvedObjectsResponse | null | undefined
2894
2876
  readonly stickers?:
2895
2877
  | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
2896
- | null
2897
- | undefined
2898
- readonly sticker_items?:
2899
- | ReadonlyArray<MessageStickerItemResponse>
2900
- | null
2901
2878
  | undefined
2879
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
2902
2880
  readonly id: SnowflakeType
2903
2881
  readonly channel_id: SnowflakeType
2904
2882
  readonly author: UserResponse
2905
2883
  readonly pinned: boolean
2906
2884
  readonly mention_everyone: boolean
2907
2885
  readonly tts: boolean
2908
- readonly call?: MessageCallResponse | null | undefined
2909
- readonly activity?: MessageActivityResponse | null | undefined
2910
- readonly application?: BasicApplicationResponse | null | undefined
2911
- readonly application_id?: SnowflakeType | null | undefined
2912
- 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
2913
2891
  readonly nonce?: number | string | null | undefined
2914
- readonly webhook_id?: SnowflakeType | null | undefined
2915
- readonly message_reference?: MessageReferenceResponse | null | undefined
2916
- readonly thread?: ThreadResponse | null | undefined
2892
+ readonly webhook_id?: SnowflakeType | undefined
2893
+ readonly message_reference?: MessageReferenceResponse | undefined
2894
+ readonly thread?: ThreadResponse | undefined
2917
2895
  readonly mention_channels?:
2918
2896
  | ReadonlyArray<null | MessageMentionChannelResponse>
2919
- | null
2920
2897
  | undefined
2921
2898
  readonly role_subscription_data?:
2922
2899
  | MessageRoleSubscriptionDataResponse
2923
- | null
2924
- | undefined
2925
- readonly purchase_notification?:
2926
- | PurchaseNotificationResponse
2927
- | null
2928
2900
  | undefined
2929
- readonly position?: number | null | undefined
2930
- 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
2931
2906
  readonly interaction_metadata?:
2932
2907
  | ApplicationCommandInteractionMetadataResponse
2933
2908
  | MessageComponentInteractionMetadataResponse
2934
2909
  | ModalSubmitInteractionMetadataResponse
2935
- | null
2936
2910
  | undefined
2937
2911
  readonly message_snapshots?:
2938
2912
  | ReadonlyArray<MessageSnapshotResponse>
2939
- | null
2940
2913
  | undefined
2941
- readonly reactions?: ReadonlyArray<MessageReactionResponse> | null | undefined
2914
+ readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
2942
2915
  readonly referenced_message?: BasicMessageResponse | null | undefined
2943
2916
  }
2944
2917
 
@@ -3043,6 +3016,7 @@ export interface ComponentEmojiForRequest {
3043
3016
 
3044
3017
  export interface ButtonComponentForMessageRequest {
3045
3018
  readonly type: 2
3019
+ readonly id?: number | null | undefined
3046
3020
  readonly custom_id?: string | null | undefined
3047
3021
  readonly style: ButtonStyleTypes
3048
3022
  readonly label?: string | null | undefined
@@ -3059,11 +3033,13 @@ export interface ChannelSelectDefaultValue {
3059
3033
 
3060
3034
  export interface ChannelSelectComponentForMessageRequest {
3061
3035
  readonly type: 8
3036
+ readonly id?: number | null | undefined
3062
3037
  readonly custom_id: string
3063
3038
  readonly placeholder?: string | null | undefined
3064
3039
  readonly min_values?: number | null | undefined
3065
3040
  readonly max_values?: number | null | undefined
3066
3041
  readonly disabled?: boolean | null | undefined
3042
+ readonly required?: boolean | null | undefined
3067
3043
  readonly default_values?:
3068
3044
  | ReadonlyArray<ChannelSelectDefaultValue>
3069
3045
  | null
@@ -3083,11 +3059,13 @@ export interface UserSelectDefaultValue {
3083
3059
 
3084
3060
  export interface MentionableSelectComponentForMessageRequest {
3085
3061
  readonly type: 7
3062
+ readonly id?: number | null | undefined
3086
3063
  readonly custom_id: string
3087
3064
  readonly placeholder?: string | null | undefined
3088
3065
  readonly min_values?: number | null | undefined
3089
3066
  readonly max_values?: number | null | undefined
3090
3067
  readonly disabled?: boolean | null | undefined
3068
+ readonly required?: boolean | null | undefined
3091
3069
  readonly default_values?:
3092
3070
  | ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue>
3093
3071
  | null
@@ -3096,11 +3074,13 @@ export interface MentionableSelectComponentForMessageRequest {
3096
3074
 
3097
3075
  export interface RoleSelectComponentForMessageRequest {
3098
3076
  readonly type: 6
3077
+ readonly id?: number | null | undefined
3099
3078
  readonly custom_id: string
3100
3079
  readonly placeholder?: string | null | undefined
3101
3080
  readonly min_values?: number | null | undefined
3102
3081
  readonly max_values?: number | null | undefined
3103
3082
  readonly disabled?: boolean | null | undefined
3083
+ readonly required?: boolean | null | undefined
3104
3084
  readonly default_values?:
3105
3085
  | ReadonlyArray<RoleSelectDefaultValue>
3106
3086
  | null
@@ -3117,21 +3097,25 @@ export interface StringSelectOptionForRequest {
3117
3097
 
3118
3098
  export interface StringSelectComponentForMessageRequest {
3119
3099
  readonly type: 3
3100
+ readonly id?: number | null | undefined
3120
3101
  readonly custom_id: string
3121
3102
  readonly placeholder?: string | null | undefined
3122
3103
  readonly min_values?: number | null | undefined
3123
3104
  readonly max_values?: number | null | undefined
3124
3105
  readonly disabled?: boolean | null | undefined
3106
+ readonly required?: boolean | null | undefined
3125
3107
  readonly options: ReadonlyArray<StringSelectOptionForRequest>
3126
3108
  }
3127
3109
 
3128
3110
  export interface UserSelectComponentForMessageRequest {
3129
3111
  readonly type: 5
3112
+ readonly id?: number | null | undefined
3130
3113
  readonly custom_id: string
3131
3114
  readonly placeholder?: string | null | undefined
3132
3115
  readonly min_values?: number | null | undefined
3133
3116
  readonly max_values?: number | null | undefined
3134
3117
  readonly disabled?: boolean | null | undefined
3118
+ readonly required?: boolean | null | undefined
3135
3119
  readonly default_values?:
3136
3120
  | ReadonlyArray<UserSelectDefaultValue>
3137
3121
  | null
@@ -3140,6 +3124,7 @@ export interface UserSelectComponentForMessageRequest {
3140
3124
 
3141
3125
  export interface ActionRowComponentForMessageRequest {
3142
3126
  readonly type: 1
3127
+ readonly id?: number | null | undefined
3143
3128
  readonly components: ReadonlyArray<
3144
3129
  | ButtonComponentForMessageRequest
3145
3130
  | ChannelSelectComponentForMessageRequest
@@ -3156,6 +3141,7 @@ export interface UnfurledMediaRequestWithAttachmentReferenceRequired {
3156
3141
 
3157
3142
  export interface FileComponentForMessageRequest {
3158
3143
  readonly type: 13
3144
+ readonly id?: number | null | undefined
3159
3145
  readonly spoiler?: boolean | null | undefined
3160
3146
  readonly file: UnfurledMediaRequestWithAttachmentReferenceRequired
3161
3147
  }
@@ -3172,16 +3158,19 @@ export interface MediaGalleryItemRequest {
3172
3158
 
3173
3159
  export interface MediaGalleryComponentForMessageRequest {
3174
3160
  readonly type: 12
3161
+ readonly id?: number | null | undefined
3175
3162
  readonly items: ReadonlyArray<MediaGalleryItemRequest>
3176
3163
  }
3177
3164
 
3178
3165
  export interface TextDisplayComponentForMessageRequest {
3179
3166
  readonly type: 10
3167
+ readonly id?: number | null | undefined
3180
3168
  readonly content: string
3181
3169
  }
3182
3170
 
3183
3171
  export interface ThumbnailComponentForMessageRequest {
3184
3172
  readonly type: 11
3173
+ readonly id?: number | null | undefined
3185
3174
  readonly description?: string | null | undefined
3186
3175
  readonly spoiler?: boolean | null | undefined
3187
3176
  readonly media: UnfurledMediaRequest
@@ -3189,6 +3178,7 @@ export interface ThumbnailComponentForMessageRequest {
3189
3178
 
3190
3179
  export interface SectionComponentForMessageRequest {
3191
3180
  readonly type: 9
3181
+ readonly id?: number | null | undefined
3192
3182
  readonly components: ReadonlyArray<TextDisplayComponentForMessageRequest>
3193
3183
  readonly accessory:
3194
3184
  | ButtonComponentForMessageRequest
@@ -3197,12 +3187,14 @@ export interface SectionComponentForMessageRequest {
3197
3187
 
3198
3188
  export interface SeparatorComponentForMessageRequest {
3199
3189
  readonly type: 14
3190
+ readonly id?: number | null | undefined
3200
3191
  readonly spacing?: MessageComponentSeparatorSpacingSize | null | undefined
3201
3192
  readonly divider?: boolean | null | undefined
3202
3193
  }
3203
3194
 
3204
3195
  export interface ContainerComponentForMessageRequest {
3205
3196
  readonly type: 17
3197
+ readonly id?: number | null | undefined
3206
3198
  readonly accent_color?: number | null | undefined
3207
3199
  readonly components: ReadonlyArray<
3208
3200
  | ActionRowComponentForMessageRequest
@@ -3259,6 +3251,13 @@ export interface PollCreateRequest {
3259
3251
  readonly duration?: number | null | undefined
3260
3252
  }
3261
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
+
3262
3261
  export interface ConfettiPotionCreateRequest {}
3263
3262
 
3264
3263
  export interface MessageReferenceRequest {
@@ -3292,6 +3291,10 @@ export interface MessageCreateRequest {
3292
3291
  | null
3293
3292
  | undefined
3294
3293
  readonly poll?: PollCreateRequest | null | undefined
3294
+ readonly shared_client_theme?:
3295
+ | CustomClientThemeShareRequest
3296
+ | null
3297
+ | undefined
3295
3298
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
3296
3299
  readonly message_reference?: MessageReferenceRequest | null | undefined
3297
3300
  readonly nonce?: number | string | null | undefined
@@ -3314,7 +3317,7 @@ export interface PinnedMessageResponse {
3314
3317
  }
3315
3318
 
3316
3319
  export interface PinnedMessagesResponse {
3317
- readonly items?: ReadonlyArray<PinnedMessageResponse> | null | undefined
3320
+ readonly items: ReadonlyArray<PinnedMessageResponse>
3318
3321
  readonly has_more: boolean
3319
3322
  }
3320
3323
 
@@ -3382,7 +3385,7 @@ export interface GetAnswerVotersParams {
3382
3385
  }
3383
3386
 
3384
3387
  export interface PollAnswerDetailsResponse {
3385
- readonly users?: ReadonlyArray<UserResponse> | null | undefined
3388
+ readonly users: ReadonlyArray<UserResponse>
3386
3389
  }
3387
3390
 
3388
3391
  export interface AddGroupDmUserRequest {
@@ -3434,6 +3437,10 @@ export interface BaseCreateMessageCreateRequest {
3434
3437
  | null
3435
3438
  | undefined
3436
3439
  readonly poll?: PollCreateRequest | null | undefined
3440
+ readonly shared_client_theme?:
3441
+ | CustomClientThemeShareRequest
3442
+ | null
3443
+ | undefined
3437
3444
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
3438
3445
  }
3439
3446
 
@@ -3466,19 +3473,19 @@ export interface CreatedThreadResponse {
3466
3473
  readonly guild_id: SnowflakeType
3467
3474
  readonly name: string
3468
3475
  readonly parent_id?: SnowflakeType | null | undefined
3469
- readonly rate_limit_per_user?: number | null | undefined
3470
- readonly bitrate?: number | null | undefined
3471
- 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
3472
3479
  readonly rtc_region?: string | null | undefined
3473
- readonly video_quality_mode?: VideoQualityModes | null | undefined
3480
+ readonly video_quality_mode?: VideoQualityModes | undefined
3474
3481
  readonly permissions?: string | null | undefined
3475
3482
  readonly owner_id: SnowflakeType
3476
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined
3483
+ readonly thread_metadata: ThreadMetadataResponse
3477
3484
  readonly message_count: number
3478
3485
  readonly member_count: number
3479
3486
  readonly total_message_sent: number
3480
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined
3481
- readonly member?: ThreadMemberResponse | null | undefined
3487
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined
3488
+ readonly member?: ThreadMemberResponse | undefined
3482
3489
  }
3483
3490
 
3484
3491
  export interface ListPrivateArchivedThreadsParams {
@@ -3489,8 +3496,8 @@ export interface ListPrivateArchivedThreadsParams {
3489
3496
  export interface ThreadsResponse {
3490
3497
  readonly threads: ReadonlyArray<ThreadResponse>
3491
3498
  readonly members: ReadonlyArray<ThreadMemberResponse>
3492
- readonly has_more?: boolean | null | undefined
3493
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined
3499
+ readonly has_more: boolean
3500
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined
3494
3501
  }
3495
3502
 
3496
3503
  export interface ListPublicArchivedThreadsParams {
@@ -3530,9 +3537,9 @@ export interface ThreadSearchParams {
3530
3537
  export interface ThreadSearchResponse {
3531
3538
  readonly threads: ReadonlyArray<ThreadResponse>
3532
3539
  readonly members: ReadonlyArray<ThreadMemberResponse>
3533
- readonly has_more?: boolean | null | undefined
3534
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined
3535
- readonly total_results?: number | null | undefined
3540
+ readonly has_more: boolean
3541
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined
3542
+ readonly total_results: number
3536
3543
  }
3537
3544
 
3538
3545
  export interface TypingIndicatorResponse {}
@@ -3566,7 +3573,7 @@ export interface ApplicationIncomingWebhookResponse {
3566
3573
  readonly id: SnowflakeType
3567
3574
  readonly name: string
3568
3575
  readonly type: 3
3569
- readonly user?: UserResponse | null | undefined
3576
+ readonly user?: UserResponse | undefined
3570
3577
  }
3571
3578
 
3572
3579
  export interface WebhookSourceGuildResponse {
@@ -3588,9 +3595,9 @@ export interface ChannelFollowerWebhookResponse {
3588
3595
  readonly id: SnowflakeType
3589
3596
  readonly name: string
3590
3597
  readonly type: 2
3591
- readonly user?: UserResponse | null | undefined
3592
- readonly source_guild?: WebhookSourceGuildResponse | null | undefined
3593
- readonly source_channel?: WebhookSourceChannelResponse | null | undefined
3598
+ readonly user?: UserResponse | undefined
3599
+ readonly source_guild?: WebhookSourceGuildResponse | undefined
3600
+ readonly source_channel?: WebhookSourceChannelResponse | undefined
3594
3601
  }
3595
3602
 
3596
3603
  export interface GuildIncomingWebhookResponse {
@@ -3601,9 +3608,9 @@ export interface GuildIncomingWebhookResponse {
3601
3608
  readonly id: SnowflakeType
3602
3609
  readonly name: string
3603
3610
  readonly type: 1
3604
- readonly user?: UserResponse | null | undefined
3605
- readonly token?: string | null | undefined
3606
- readonly url?: string | null | undefined
3611
+ readonly user?: UserResponse | undefined
3612
+ readonly token?: string | undefined
3613
+ readonly url?: string | undefined
3607
3614
  }
3608
3615
 
3609
3616
  export type ListChannelWebhooks200 = ReadonlyArray<
@@ -3814,11 +3821,18 @@ export const AfkTimeouts = {
3814
3821
  } as const
3815
3822
  export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts]
3816
3823
 
3824
+ export interface GuildTemplateRoleColorsResponse {
3825
+ readonly primary_color: number
3826
+ readonly secondary_color?: number | null | undefined
3827
+ readonly tertiary_color?: number | null | undefined
3828
+ }
3829
+
3817
3830
  export interface GuildTemplateRoleResponse {
3818
3831
  readonly id: number
3819
3832
  readonly name: string
3820
3833
  readonly permissions: string
3821
3834
  readonly color: number
3835
+ readonly colors?: GuildTemplateRoleColorsResponse | null | undefined
3822
3836
  readonly hoist: boolean
3823
3837
  readonly mentionable: boolean
3824
3838
  readonly icon?: string | null | undefined
@@ -3826,6 +3840,7 @@ export interface GuildTemplateRoleResponse {
3826
3840
  }
3827
3841
 
3828
3842
  export interface GuildTemplateChannelTags {
3843
+ readonly id?: number | null | undefined
3829
3844
  readonly name: string
3830
3845
  readonly emoji_id?: SnowflakeType | null | undefined
3831
3846
  readonly emoji_name?: string | null | undefined
@@ -3902,16 +3917,16 @@ export interface GetGuildParams {
3902
3917
  }
3903
3918
 
3904
3919
  export interface GuildRoleColorsResponse {
3905
- readonly primary_color?: number | null | undefined
3920
+ readonly primary_color: number
3906
3921
  readonly secondary_color?: number | null | undefined
3907
3922
  readonly tertiary_color?: number | null | undefined
3908
3923
  }
3909
3924
 
3910
3925
  export interface GuildRoleTagsResponse {
3911
3926
  readonly premium_subscriber?: null | undefined
3912
- readonly bot_id?: SnowflakeType | null | undefined
3913
- readonly integration_id?: SnowflakeType | null | undefined
3914
- readonly subscription_listing_id?: SnowflakeType | null | undefined
3927
+ readonly bot_id?: SnowflakeType | undefined
3928
+ readonly integration_id?: SnowflakeType | undefined
3929
+ readonly subscription_listing_id?: SnowflakeType | undefined
3915
3930
  readonly available_for_purchase?: null | undefined
3916
3931
  readonly guild_connections?: null | undefined
3917
3932
  }
@@ -3923,13 +3938,13 @@ export interface GuildRoleResponse {
3923
3938
  readonly permissions: string
3924
3939
  readonly position: number
3925
3940
  readonly color: number
3926
- readonly colors?: GuildRoleColorsResponse | null | undefined
3941
+ readonly colors: GuildRoleColorsResponse
3927
3942
  readonly hoist: boolean
3928
3943
  readonly managed: boolean
3929
3944
  readonly mentionable: boolean
3930
3945
  readonly icon?: string | null | undefined
3931
3946
  readonly unicode_emoji?: string | null | undefined
3932
- readonly tags?: GuildRoleTagsResponse | null | undefined
3947
+ readonly tags?: GuildRoleTagsResponse | undefined
3933
3948
  readonly flags: number
3934
3949
  }
3935
3950
 
@@ -3991,9 +4006,9 @@ export interface GuildWithCountsResponse {
3991
4006
  readonly mfa_level: GuildMFALevel
3992
4007
  readonly explicit_content_filter: GuildExplicitContentFilterTypes
3993
4008
  readonly max_presences?: number | null | undefined
3994
- readonly max_members?: number | null | undefined
3995
- readonly max_stage_video_channel_users?: number | null | undefined
3996
- readonly max_video_channel_users?: number | null | undefined
4009
+ readonly max_members: number
4010
+ readonly max_stage_video_channel_users: number
4011
+ readonly max_video_channel_users: number
3997
4012
  readonly vanity_url_code?: string | null | undefined
3998
4013
  readonly premium_tier: PremiumGuildTiers
3999
4014
  readonly premium_subscription_count: number
@@ -4066,9 +4081,9 @@ export interface GuildResponse {
4066
4081
  readonly mfa_level: GuildMFALevel
4067
4082
  readonly explicit_content_filter: GuildExplicitContentFilterTypes
4068
4083
  readonly max_presences?: number | null | undefined
4069
- readonly max_members?: number | null | undefined
4070
- readonly max_stage_video_channel_users?: number | null | undefined
4071
- readonly max_video_channel_users?: number | null | undefined
4084
+ readonly max_members: number
4085
+ readonly max_stage_video_channel_users: number
4086
+ readonly max_video_channel_users: number
4072
4087
  readonly vanity_url_code?: string | null | undefined
4073
4088
  readonly premium_tier: PremiumGuildTiers
4074
4089
  readonly premium_subscription_count: number
@@ -4083,15 +4098,6 @@ export interface GuildResponse {
4083
4098
  readonly stickers: ReadonlyArray<GuildStickerResponse>
4084
4099
  }
4085
4100
 
4086
- export interface ListGuildAuditLogEntriesParams {
4087
- readonly user_id?: SnowflakeType | undefined
4088
- readonly target_id?: SnowflakeType | undefined
4089
- readonly action_type?: number | undefined
4090
- readonly before?: SnowflakeType | undefined
4091
- readonly after?: SnowflakeType | undefined
4092
- readonly limit?: number | undefined
4093
- }
4094
-
4095
4101
  export const AuditLogActionTypes = {
4096
4102
  GUILD_UPDATE: 1,
4097
4103
  CHANNEL_CREATE: 10,
@@ -4170,6 +4176,15 @@ export const AuditLogActionTypes = {
4170
4176
  export type AuditLogActionTypes =
4171
4177
  (typeof AuditLogActionTypes)[keyof typeof AuditLogActionTypes]
4172
4178
 
4179
+ export interface ListGuildAuditLogEntriesParams {
4180
+ readonly user_id?: SnowflakeType | undefined
4181
+ readonly target_id?: SnowflakeType | undefined
4182
+ readonly action_type?: AuditLogActionTypes | undefined
4183
+ readonly before?: SnowflakeType | undefined
4184
+ readonly after?: SnowflakeType | undefined
4185
+ readonly limit?: number | undefined
4186
+ }
4187
+
4173
4188
  export interface AuditLogObjectChangeResponse {
4174
4189
  readonly key?: string | null | undefined
4175
4190
  }
@@ -4179,12 +4194,9 @@ export interface AuditLogEntryResponse {
4179
4194
  readonly action_type: AuditLogActionTypes
4180
4195
  readonly user_id?: SnowflakeType | null | undefined
4181
4196
  readonly target_id?: SnowflakeType | null | undefined
4182
- readonly changes?:
4183
- | ReadonlyArray<AuditLogObjectChangeResponse>
4184
- | null
4185
- | undefined
4186
- readonly options?: Record<string, unknown> | null | undefined
4187
- readonly reason?: string | null | undefined
4197
+ readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined
4198
+ readonly options?: Record<string, unknown> | undefined
4199
+ readonly reason?: string | undefined
4188
4200
  }
4189
4201
 
4190
4202
  export const IntegrationTypes = {
@@ -4205,7 +4217,7 @@ export interface PartialDiscordIntegrationResponse {
4205
4217
  readonly id: SnowflakeType
4206
4218
  readonly type: "discord"
4207
4219
  readonly name?: string | null | undefined
4208
- readonly account?: AccountResponse | null | undefined
4220
+ readonly account: AccountResponse
4209
4221
  readonly application_id: SnowflakeType
4210
4222
  }
4211
4223
 
@@ -4213,14 +4225,14 @@ export interface PartialExternalConnectionIntegrationResponse {
4213
4225
  readonly id: SnowflakeType
4214
4226
  readonly type: "twitch" | "youtube"
4215
4227
  readonly name?: string | null | undefined
4216
- readonly account?: AccountResponse | null | undefined
4228
+ readonly account: AccountResponse
4217
4229
  }
4218
4230
 
4219
4231
  export interface PartialGuildSubscriptionIntegrationResponse {
4220
4232
  readonly id: SnowflakeType
4221
4233
  readonly type: "guild_subscription"
4222
4234
  readonly name?: string | null | undefined
4223
- readonly account?: AccountResponse | null | undefined
4235
+ readonly account: AccountResponse
4224
4236
  }
4225
4237
 
4226
4238
  export interface EntityMetadataExternalResponse {
@@ -4234,14 +4246,14 @@ export interface ExternalScheduledEventResponse {
4234
4246
  readonly description?: string | null | undefined
4235
4247
  readonly channel_id?: SnowflakeType | null | undefined
4236
4248
  readonly creator_id?: SnowflakeType | null | undefined
4237
- readonly creator?: UserResponse | null | undefined
4249
+ readonly creator?: UserResponse | undefined
4238
4250
  readonly image?: string | null | undefined
4239
4251
  readonly scheduled_start_time: string
4240
4252
  readonly scheduled_end_time?: string | null | undefined
4241
4253
  readonly status: GuildScheduledEventStatuses
4242
4254
  readonly entity_type: 3
4243
4255
  readonly entity_id?: SnowflakeType | null | undefined
4244
- readonly user_count?: number | null | undefined
4256
+ readonly user_count?: number | undefined
4245
4257
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4246
4258
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4247
4259
  readonly entity_metadata: EntityMetadataExternalResponse
@@ -4256,14 +4268,14 @@ export interface StageScheduledEventResponse {
4256
4268
  readonly description?: string | null | undefined
4257
4269
  readonly channel_id?: SnowflakeType | null | undefined
4258
4270
  readonly creator_id?: SnowflakeType | null | undefined
4259
- readonly creator?: UserResponse | null | undefined
4271
+ readonly creator?: UserResponse | undefined
4260
4272
  readonly image?: string | null | undefined
4261
4273
  readonly scheduled_start_time: string
4262
4274
  readonly scheduled_end_time?: string | null | undefined
4263
4275
  readonly status: GuildScheduledEventStatuses
4264
4276
  readonly entity_type: 1
4265
4277
  readonly entity_id?: SnowflakeType | null | undefined
4266
- readonly user_count?: number | null | undefined
4278
+ readonly user_count?: number | undefined
4267
4279
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4268
4280
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4269
4281
  readonly entity_metadata?:
@@ -4281,14 +4293,14 @@ export interface VoiceScheduledEventResponse {
4281
4293
  readonly description?: string | null | undefined
4282
4294
  readonly channel_id?: SnowflakeType | null | undefined
4283
4295
  readonly creator_id?: SnowflakeType | null | undefined
4284
- readonly creator?: UserResponse | null | undefined
4296
+ readonly creator?: UserResponse | undefined
4285
4297
  readonly image?: string | null | undefined
4286
4298
  readonly scheduled_start_time: string
4287
4299
  readonly scheduled_end_time?: string | null | undefined
4288
4300
  readonly status: GuildScheduledEventStatuses
4289
4301
  readonly entity_type: 2
4290
4302
  readonly entity_id?: SnowflakeType | null | undefined
4291
- readonly user_count?: number | null | undefined
4303
+ readonly user_count?: number | undefined
4292
4304
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4293
4305
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4294
4306
  readonly entity_metadata?: EntityMetadataVoiceResponse | null | undefined
@@ -4329,7 +4341,7 @@ export type AutomodActionType =
4329
4341
  (typeof AutomodActionType)[keyof typeof AutomodActionType]
4330
4342
 
4331
4343
  export interface BlockMessageActionMetadataResponse {
4332
- readonly custom_message?: string | null | undefined
4344
+ readonly custom_message?: string | undefined
4333
4345
  }
4334
4346
 
4335
4347
  export interface BlockMessageActionResponse {
@@ -4422,9 +4434,9 @@ export interface DefaultKeywordRuleResponse {
4422
4434
  | UserCommunicationDisabledActionResponse
4423
4435
  >
4424
4436
  readonly trigger_type: 4
4425
- readonly enabled?: boolean | null | undefined
4426
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4427
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4437
+ readonly enabled: boolean
4438
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4439
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4428
4440
  readonly trigger_metadata: DefaultKeywordListTriggerMetadataResponse
4429
4441
  }
4430
4442
 
@@ -4447,9 +4459,9 @@ export interface KeywordRuleResponse {
4447
4459
  | UserCommunicationDisabledActionResponse
4448
4460
  >
4449
4461
  readonly trigger_type: 1
4450
- readonly enabled?: boolean | null | undefined
4451
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4452
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4462
+ readonly enabled: boolean
4463
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4464
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4453
4465
  readonly trigger_metadata: KeywordTriggerMetadataResponse
4454
4466
  }
4455
4467
 
@@ -4468,15 +4480,15 @@ export interface MLSpamRuleResponse {
4468
4480
  | UserCommunicationDisabledActionResponse
4469
4481
  >
4470
4482
  readonly trigger_type: 3
4471
- readonly enabled?: boolean | null | undefined
4472
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4473
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4483
+ readonly enabled: boolean
4484
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4485
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4474
4486
  readonly trigger_metadata: MLSpamTriggerMetadataResponse
4475
4487
  }
4476
4488
 
4477
4489
  export interface MentionSpamTriggerMetadataResponse {
4478
4490
  readonly mention_total_limit: number
4479
- readonly mention_raid_protection_enabled?: boolean | null | undefined
4491
+ readonly mention_raid_protection_enabled: boolean
4480
4492
  }
4481
4493
 
4482
4494
  export interface MentionSpamRuleResponse {
@@ -4492,9 +4504,9 @@ export interface MentionSpamRuleResponse {
4492
4504
  | UserCommunicationDisabledActionResponse
4493
4505
  >
4494
4506
  readonly trigger_type: 5
4495
- readonly enabled?: boolean | null | undefined
4496
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4497
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4507
+ readonly enabled: boolean
4508
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4509
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4498
4510
  readonly trigger_metadata: MentionSpamTriggerMetadataResponse
4499
4511
  }
4500
4512
 
@@ -4513,9 +4525,9 @@ export interface SpamLinkRuleResponse {
4513
4525
  | UserCommunicationDisabledActionResponse
4514
4526
  >
4515
4527
  readonly trigger_type: 2
4516
- readonly enabled?: boolean | null | undefined
4517
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
4518
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
4528
+ readonly enabled: boolean
4529
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>
4530
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>
4519
4531
  readonly trigger_metadata: SpamLinkTriggerMetadataResponse
4520
4532
  }
4521
4533
 
@@ -4663,7 +4675,7 @@ export interface MLSpamUpsertRequest {
4663
4675
  }
4664
4676
 
4665
4677
  export interface MentionSpamTriggerMetadata {
4666
- readonly mention_total_limit: number
4678
+ readonly mention_total_limit?: number | null | undefined
4667
4679
  readonly mention_raid_protection_enabled?: boolean | null | undefined
4668
4680
  }
4669
4681
 
@@ -4813,7 +4825,9 @@ export interface BanUserFromGuildRequest {
4813
4825
  readonly delete_message_days?: number | null | undefined
4814
4826
  }
4815
4827
 
4816
- export interface BulkBanUsersFromGuildRequest {
4828
+ export interface UnbanUserFromGuildRequest {}
4829
+
4830
+ export interface BulkBanUsersRequest {
4817
4831
  readonly user_ids: ReadonlyArray<SnowflakeType>
4818
4832
  readonly delete_message_seconds?: number | null | undefined
4819
4833
  }
@@ -4872,7 +4886,7 @@ export interface CreateGuildChannelRequest {
4872
4886
  }
4873
4887
 
4874
4888
  export type BulkUpdateGuildChannelsRequest = ReadonlyArray<{
4875
- readonly id?: SnowflakeType | undefined
4889
+ readonly id?: SnowflakeType | null | undefined
4876
4890
  readonly position?: number | null | undefined
4877
4891
  readonly parent_id?: SnowflakeType | null | undefined
4878
4892
  readonly lock_permissions?: boolean | null | undefined
@@ -4897,22 +4911,22 @@ export interface IntegrationApplicationResponse {
4897
4911
  readonly icon?: string | null | undefined
4898
4912
  readonly description: string
4899
4913
  readonly type?: ApplicationTypes | null | undefined
4900
- readonly cover_image?: string | null | undefined
4901
- readonly primary_sku_id?: SnowflakeType | null | undefined
4902
- readonly bot?: UserResponse | null | undefined
4914
+ readonly cover_image?: string | undefined
4915
+ readonly primary_sku_id?: SnowflakeType | undefined
4916
+ readonly bot?: UserResponse | undefined
4903
4917
  }
4904
4918
 
4905
4919
  export interface DiscordIntegrationResponse {
4906
4920
  readonly type: "discord"
4907
4921
  readonly name?: string | null | undefined
4908
- readonly account?: AccountResponse | null | undefined
4909
- readonly enabled?: boolean | null | undefined
4922
+ readonly account: AccountResponse
4923
+ readonly enabled: boolean
4910
4924
  readonly id: SnowflakeType
4911
4925
  readonly application: IntegrationApplicationResponse
4912
4926
  readonly scopes: ReadonlyArray<
4913
4927
  "applications.commands" | "bot" | "webhook.incoming"
4914
4928
  >
4915
- readonly user?: UserResponse | null | undefined
4929
+ readonly user?: UserResponse | undefined
4916
4930
  }
4917
4931
 
4918
4932
  export const IntegrationExpireBehaviorTypes = {
@@ -4956,28 +4970,25 @@ export type IntegrationExpireGracePeriodTypes =
4956
4970
  export interface ExternalConnectionIntegrationResponse {
4957
4971
  readonly type: "twitch" | "youtube"
4958
4972
  readonly name?: string | null | undefined
4959
- readonly account?: AccountResponse | null | undefined
4960
- readonly enabled?: boolean | null | undefined
4973
+ readonly account: AccountResponse
4974
+ readonly enabled: boolean
4961
4975
  readonly id: string
4962
4976
  readonly user: UserResponse
4963
- readonly revoked?: boolean | null | undefined
4964
- readonly expire_behavior?: IntegrationExpireBehaviorTypes | null | undefined
4965
- readonly expire_grace_period?:
4966
- | IntegrationExpireGracePeriodTypes
4967
- | null
4968
- | undefined
4969
- readonly subscriber_count?: number | null | undefined
4970
- readonly synced_at?: string | null | undefined
4977
+ readonly revoked?: boolean | undefined
4978
+ readonly expire_behavior?: IntegrationExpireBehaviorTypes | undefined
4979
+ readonly expire_grace_period?: IntegrationExpireGracePeriodTypes | undefined
4980
+ readonly subscriber_count?: number | undefined
4981
+ readonly synced_at?: string | undefined
4971
4982
  readonly role_id?: SnowflakeType | null | undefined
4972
- readonly syncing?: boolean | null | undefined
4973
- readonly enable_emoticons?: boolean | null | undefined
4983
+ readonly syncing?: boolean | undefined
4984
+ readonly enable_emoticons?: boolean | undefined
4974
4985
  }
4975
4986
 
4976
4987
  export interface GuildSubscriptionIntegrationResponse {
4977
4988
  readonly type: "guild_subscription"
4978
4989
  readonly name?: string | null | undefined
4979
- readonly account?: AccountResponse | null | undefined
4980
- readonly enabled?: boolean | null | undefined
4990
+ readonly account: AccountResponse
4991
+ readonly enabled: boolean
4981
4992
  readonly id: SnowflakeType
4982
4993
  }
4983
4994
 
@@ -4988,7 +4999,7 @@ export type ListGuildIntegrations200 = ReadonlyArray<
4988
4999
  >
4989
5000
 
4990
5001
  export type ListGuildInvites200 = ReadonlyArray<
4991
- FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
5002
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null
4992
5003
  >
4993
5004
 
4994
5005
  export interface ListGuildMembersParams {
@@ -5020,10 +5031,11 @@ export interface PrivateGuildMemberResponse {
5020
5031
  readonly user: UserResponse
5021
5032
  readonly mute: boolean
5022
5033
  readonly deaf: boolean
5034
+ readonly permissions?: string | undefined
5023
5035
  }
5024
5036
 
5025
5037
  export interface SearchGuildMembersParams {
5026
- readonly limit: number
5038
+ readonly limit?: number | undefined
5027
5039
  readonly query: string
5028
5040
  }
5029
5041
 
@@ -5071,7 +5083,7 @@ export type NewMemberActionType =
5071
5083
  export interface SettingsEmojiResponse {
5072
5084
  readonly id?: SnowflakeType | null | undefined
5073
5085
  readonly name?: string | null | undefined
5074
- readonly animated?: boolean | null | undefined
5086
+ readonly animated: boolean
5075
5087
  }
5076
5088
 
5077
5089
  export interface NewMemberActionResponse {
@@ -5079,30 +5091,24 @@ export interface NewMemberActionResponse {
5079
5091
  readonly action_type: NewMemberActionType
5080
5092
  readonly title: string
5081
5093
  readonly description: string
5082
- readonly emoji?: SettingsEmojiResponse | null | undefined
5083
- readonly icon?: string | null | undefined
5094
+ readonly emoji?: SettingsEmojiResponse | undefined
5095
+ readonly icon?: string | undefined
5084
5096
  }
5085
5097
 
5086
5098
  export interface ResourceChannelResponse {
5087
5099
  readonly channel_id: SnowflakeType
5088
5100
  readonly title: string
5089
- readonly emoji?: SettingsEmojiResponse | null | undefined
5090
- readonly icon?: string | null | undefined
5101
+ readonly emoji?: SettingsEmojiResponse | undefined
5102
+ readonly icon?: string | undefined
5091
5103
  readonly description: string
5092
5104
  }
5093
5105
 
5094
5106
  export interface GuildHomeSettingsResponse {
5095
5107
  readonly guild_id: SnowflakeType
5096
5108
  readonly enabled: boolean
5097
- readonly welcome_message?: WelcomeMessageResponse | null | undefined
5098
- readonly new_member_actions?:
5099
- | ReadonlyArray<null | NewMemberActionResponse>
5100
- | null
5101
- | undefined
5102
- readonly resource_channels?:
5103
- | ReadonlyArray<null | ResourceChannelResponse>
5104
- | null
5105
- | undefined
5109
+ readonly welcome_message?: WelcomeMessageResponse | undefined
5110
+ readonly new_member_actions: ReadonlyArray<null | NewMemberActionResponse>
5111
+ readonly resource_channels: ReadonlyArray<null | ResourceChannelResponse>
5106
5112
  }
5107
5113
 
5108
5114
  export interface OnboardingPromptOptionResponse {
@@ -5227,7 +5233,7 @@ export interface PruneGuildRequest {
5227
5233
  readonly compute_prune_count?: boolean | null | undefined
5228
5234
  readonly include_roles?:
5229
5235
  | string
5230
- | ReadonlyArray<null | SnowflakeType>
5236
+ | ReadonlyArray<SnowflakeType>
5231
5237
  | null
5232
5238
  | undefined
5233
5239
  }
@@ -5412,9 +5418,9 @@ export interface SoundboardSoundResponse {
5412
5418
  readonly volume: number
5413
5419
  readonly emoji_id?: SnowflakeType | null | undefined
5414
5420
  readonly emoji_name?: string | null | undefined
5415
- readonly guild_id?: SnowflakeType | null | undefined
5421
+ readonly guild_id?: SnowflakeType | undefined
5416
5422
  readonly available: boolean
5417
- readonly user?: UserResponse | null | undefined
5423
+ readonly user?: UserResponse | undefined
5418
5424
  }
5419
5425
 
5420
5426
  export interface ListGuildSoundboardSoundsResponse {
@@ -5478,7 +5484,7 @@ export interface VoiceStateResponse {
5478
5484
  readonly channel_id?: SnowflakeType | null | undefined
5479
5485
  readonly deaf: boolean
5480
5486
  readonly guild_id?: SnowflakeType | null | undefined
5481
- readonly member?: GuildMemberResponse | null | undefined
5487
+ readonly member?: GuildMemberResponse | undefined
5482
5488
  readonly mute: boolean
5483
5489
  readonly request_to_speak_timestamp?: string | null | undefined
5484
5490
  readonly suppress: boolean
@@ -5490,13 +5496,13 @@ export interface VoiceStateResponse {
5490
5496
  readonly user_id: SnowflakeType
5491
5497
  }
5492
5498
 
5493
- export interface UpdateSelfVoiceStateRequest {
5499
+ export interface UpdateSelfVoiceStateRequestPartial {
5494
5500
  readonly request_to_speak_timestamp?: string | null | undefined
5495
5501
  readonly suppress?: boolean | null | undefined
5496
5502
  readonly channel_id?: SnowflakeType | null | undefined
5497
5503
  }
5498
5504
 
5499
- export interface UpdateVoiceStateRequest {
5505
+ export interface UpdateVoiceStateRequestPartial {
5500
5506
  readonly suppress?: boolean | null | undefined
5501
5507
  readonly channel_id?: SnowflakeType | null | undefined
5502
5508
  }
@@ -5564,13 +5570,13 @@ export interface WidgetMember {
5564
5570
  readonly avatar?: null | undefined
5565
5571
  readonly status: string
5566
5572
  readonly avatar_url: string
5567
- readonly activity?: WidgetActivity | null | undefined
5568
- readonly deaf?: boolean | null | undefined
5569
- readonly mute?: boolean | null | undefined
5570
- readonly self_deaf?: boolean | null | undefined
5571
- readonly self_mute?: boolean | null | undefined
5572
- readonly suppress?: boolean | null | undefined
5573
- readonly channel_id?: SnowflakeType | null | undefined
5573
+ readonly activity?: WidgetActivity | undefined
5574
+ readonly deaf?: boolean | undefined
5575
+ readonly mute?: boolean | undefined
5576
+ readonly self_deaf?: boolean | undefined
5577
+ readonly self_mute?: boolean | undefined
5578
+ readonly suppress?: boolean | undefined
5579
+ readonly channel_id?: SnowflakeType | undefined
5574
5580
  }
5575
5581
 
5576
5582
  export interface WidgetResponse {
@@ -5693,6 +5699,7 @@ export interface LaunchActivityInteractionCallbackRequest {
5693
5699
 
5694
5700
  export interface TextInputComponentForModalRequest {
5695
5701
  readonly type: 4
5702
+ readonly id?: number | null | undefined
5696
5703
  readonly custom_id: string
5697
5704
  readonly style: TextInputStyleTypes
5698
5705
  readonly label?: string | null | undefined
@@ -5705,13 +5712,111 @@ export interface TextInputComponentForModalRequest {
5705
5712
 
5706
5713
  export interface ActionRowComponentForModalRequest {
5707
5714
  readonly type: 1
5715
+ readonly id?: number | null | undefined
5708
5716
  readonly components: ReadonlyArray<TextInputComponentForModalRequest>
5709
5717
  }
5710
5718
 
5719
+ export interface ChannelSelectComponentForModalRequest {
5720
+ readonly type: 8
5721
+ readonly id?: number | null | undefined
5722
+ readonly custom_id: string
5723
+ readonly placeholder?: string | null | undefined
5724
+ readonly min_values?: number | null | undefined
5725
+ readonly max_values?: number | null | undefined
5726
+ readonly disabled?: boolean | null | undefined
5727
+ readonly required?: boolean | null | undefined
5728
+ readonly default_values?:
5729
+ | ReadonlyArray<ChannelSelectDefaultValue>
5730
+ | null
5731
+ | undefined
5732
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
5733
+ }
5734
+
5735
+ export interface MentionableSelectComponentForModalRequest {
5736
+ readonly type: 7
5737
+ readonly id?: number | null | undefined
5738
+ readonly custom_id: string
5739
+ readonly placeholder?: string | null | undefined
5740
+ readonly min_values?: number | null | undefined
5741
+ readonly max_values?: number | null | undefined
5742
+ readonly disabled?: boolean | null | undefined
5743
+ readonly required?: boolean | null | undefined
5744
+ readonly default_values?:
5745
+ | ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue>
5746
+ | null
5747
+ | undefined
5748
+ }
5749
+
5750
+ export interface RoleSelectComponentForModalRequest {
5751
+ readonly type: 6
5752
+ readonly id?: number | null | undefined
5753
+ readonly custom_id: string
5754
+ readonly placeholder?: string | null | undefined
5755
+ readonly min_values?: number | null | undefined
5756
+ readonly max_values?: number | null | undefined
5757
+ readonly disabled?: boolean | null | undefined
5758
+ readonly required?: boolean | null | undefined
5759
+ readonly default_values?:
5760
+ | ReadonlyArray<RoleSelectDefaultValue>
5761
+ | null
5762
+ | undefined
5763
+ }
5764
+
5765
+ export interface StringSelectComponentForModalRequest {
5766
+ readonly type: 3
5767
+ readonly id?: number | null | undefined
5768
+ readonly custom_id: string
5769
+ readonly placeholder?: string | null | undefined
5770
+ readonly min_values?: number | null | undefined
5771
+ readonly max_values?: number | null | undefined
5772
+ readonly disabled?: boolean | null | undefined
5773
+ readonly required?: boolean | null | undefined
5774
+ readonly options: ReadonlyArray<StringSelectOptionForRequest>
5775
+ }
5776
+
5777
+ export interface UserSelectComponentForModalRequest {
5778
+ readonly type: 5
5779
+ readonly id?: number | null | undefined
5780
+ readonly custom_id: string
5781
+ readonly placeholder?: string | null | undefined
5782
+ readonly min_values?: number | null | undefined
5783
+ readonly max_values?: number | null | undefined
5784
+ readonly disabled?: boolean | null | undefined
5785
+ readonly required?: boolean | null | undefined
5786
+ readonly default_values?:
5787
+ | ReadonlyArray<UserSelectDefaultValue>
5788
+ | null
5789
+ | undefined
5790
+ }
5791
+
5792
+ export interface LabelComponentForModalRequest {
5793
+ readonly type: 18
5794
+ readonly id?: number | null | undefined
5795
+ readonly label: string
5796
+ readonly description?: string | null | undefined
5797
+ readonly component:
5798
+ | ChannelSelectComponentForModalRequest
5799
+ | MentionableSelectComponentForModalRequest
5800
+ | RoleSelectComponentForModalRequest
5801
+ | StringSelectComponentForModalRequest
5802
+ | TextInputComponentForModalRequest
5803
+ | UserSelectComponentForModalRequest
5804
+ }
5805
+
5806
+ export interface TextDisplayComponentForModalRequest {
5807
+ readonly type: 10
5808
+ readonly id?: number | null | undefined
5809
+ readonly content: string
5810
+ }
5811
+
5711
5812
  export interface ModalInteractionCallbackRequestData {
5712
5813
  readonly custom_id: string
5713
5814
  readonly title: string
5714
- readonly components: ReadonlyArray<ActionRowComponentForModalRequest>
5815
+ readonly components: ReadonlyArray<
5816
+ | ActionRowComponentForModalRequest
5817
+ | LabelComponentForModalRequest
5818
+ | TextDisplayComponentForModalRequest
5819
+ >
5715
5820
  }
5716
5821
 
5717
5822
  export interface ModalInteractionCallbackRequest {
@@ -5765,11 +5870,11 @@ export type CreateInteractionResponseRequest =
5765
5870
  export interface InteractionResponse {
5766
5871
  readonly id: SnowflakeType
5767
5872
  readonly type: InteractionTypes
5768
- readonly response_message_id?: SnowflakeType | null | undefined
5769
- readonly response_message_loading?: boolean | null | undefined
5770
- readonly response_message_ephemeral?: boolean | null | undefined
5771
- readonly channel_id?: SnowflakeType | null | undefined
5772
- readonly guild_id?: SnowflakeType | null | undefined
5873
+ readonly response_message_id?: SnowflakeType | undefined
5874
+ readonly response_message_loading?: boolean | undefined
5875
+ readonly response_message_ephemeral?: boolean | undefined
5876
+ readonly channel_id?: SnowflakeType | undefined
5877
+ readonly guild_id?: SnowflakeType | undefined
5773
5878
  }
5774
5879
 
5775
5880
  export interface CreateMessageInteractionCallbackResponse {
@@ -5792,7 +5897,6 @@ export interface InteractionCallbackResponse {
5792
5897
  | CreateMessageInteractionCallbackResponse
5793
5898
  | LaunchActivityInteractionCallbackResponse
5794
5899
  | UpdateMessageInteractionCallbackResponse
5795
- | null
5796
5900
  | undefined
5797
5901
  }
5798
5902
 
@@ -5831,9 +5935,10 @@ export interface LobbyResponse {
5831
5935
  readonly id: SnowflakeType
5832
5936
  readonly application_id: SnowflakeType
5833
5937
  readonly metadata?: Record<string, unknown> | null | undefined
5834
- readonly members?: ReadonlyArray<LobbyMemberResponse> | null | undefined
5835
- readonly linked_channel?: GuildChannelResponse | null | undefined
5938
+ readonly members: ReadonlyArray<LobbyMemberResponse>
5939
+ readonly linked_channel?: GuildChannelResponse | undefined
5836
5940
  readonly flags: UInt32Type
5941
+ readonly override_event_webhooks_url?: string | null | undefined
5837
5942
  }
5838
5943
 
5839
5944
  export type LobbyMemberRequestFlagsEnum = 1
@@ -5851,6 +5956,7 @@ export interface CreateLobbyRequest {
5851
5956
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined
5852
5957
  readonly metadata?: Record<string, unknown> | null | undefined
5853
5958
  readonly flags?: CreateLobbyRequestFlagsEnum | null | undefined
5959
+ readonly override_event_webhooks_url?: string | null | undefined
5854
5960
  }
5855
5961
 
5856
5962
  export type EditLobbyRequestFlagsEnum = 1
@@ -5860,6 +5966,7 @@ export interface EditLobbyRequest {
5860
5966
  readonly metadata?: Record<string, unknown> | null | undefined
5861
5967
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined
5862
5968
  readonly flags?: EditLobbyRequestFlagsEnum | null | undefined
5969
+ readonly override_event_webhooks_url?: string | null | undefined
5863
5970
  }
5864
5971
 
5865
5972
  export interface EditLobbyChannelLinkRequest {
@@ -5902,9 +6009,9 @@ export interface LobbyMessageResponse {
5902
6009
  readonly lobby_id: SnowflakeType
5903
6010
  readonly channel_id: SnowflakeType
5904
6011
  readonly author: UserResponse
5905
- readonly metadata?: Record<string, unknown> | null | undefined
6012
+ readonly metadata?: Record<string, unknown> | undefined
5906
6013
  readonly flags: number
5907
- readonly application_id?: SnowflakeType | null | undefined
6014
+ readonly application_id?: SnowflakeType | undefined
5908
6015
  }
5909
6016
 
5910
6017
  export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse>
@@ -5932,6 +6039,10 @@ export interface SDKMessageRequest {
5932
6039
  | null
5933
6040
  | undefined
5934
6041
  readonly poll?: PollCreateRequest | null | undefined
6042
+ readonly shared_client_theme?:
6043
+ | CustomClientThemeShareRequest
6044
+ | null
6045
+ | undefined
5935
6046
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
5936
6047
  readonly message_reference?: MessageReferenceRequest | null | undefined
5937
6048
  readonly nonce?: number | string | null | undefined
@@ -5943,7 +6054,7 @@ export interface OAuth2GetAuthorizationResponse {
5943
6054
  readonly application: ApplicationResponse
5944
6055
  readonly expires: string
5945
6056
  readonly scopes: ReadonlyArray<OAuth2Scopes>
5946
- readonly user?: UserResponse | null | undefined
6057
+ readonly user?: UserResponse | undefined
5947
6058
  }
5948
6059
 
5949
6060
  export interface OAuth2Key {
@@ -5962,11 +6073,11 @@ export interface OAuth2GetKeys {
5962
6073
  export interface OAuth2GetOpenIDConnectUserInfoResponse {
5963
6074
  readonly sub: string
5964
6075
  readonly email?: string | null | undefined
5965
- readonly email_verified?: boolean | null | undefined
5966
- readonly preferred_username?: string | null | undefined
6076
+ readonly email_verified?: boolean | undefined
6077
+ readonly preferred_username?: string | undefined
5967
6078
  readonly nickname?: string | null | undefined
5968
- readonly picture?: string | null | undefined
5969
- readonly locale?: string | null | undefined
6079
+ readonly picture?: string | undefined
6080
+ readonly locale?: string | undefined
5970
6081
  }
5971
6082
 
5972
6083
  export const ApplicationIdentityProviderAuthType = {
@@ -5975,6 +6086,7 @@ export const ApplicationIdentityProviderAuthType = {
5975
6086
  EPIC_ONLINE_SERVICES_ID_TOKEN: "EPIC_ONLINE_SERVICES_ID_TOKEN",
5976
6087
  STEAM_SESSION_TICKET: "STEAM_SESSION_TICKET",
5977
6088
  UNITY_SERVICES_ID_TOKEN: "UNITY_SERVICES_ID_TOKEN",
6089
+ DISCORD_BOT_ISSUED_ACCESS_TOKEN: "DISCORD_BOT_ISSUED_ACCESS_TOKEN",
5978
6090
  } as const
5979
6091
  export type ApplicationIdentityProviderAuthType =
5980
6092
  (typeof ApplicationIdentityProviderAuthType)[keyof typeof ApplicationIdentityProviderAuthType]
@@ -6039,7 +6151,7 @@ export interface StageInstanceResponse {
6039
6151
  readonly topic: string
6040
6152
  readonly privacy_level: StageInstancesPrivacyLevels
6041
6153
  readonly id: SnowflakeType
6042
- readonly discoverable_disabled?: boolean | null | undefined
6154
+ readonly discoverable_disabled: boolean
6043
6155
  readonly guild_scheduled_event_id?: SnowflakeType | null | undefined
6044
6156
  }
6045
6157
 
@@ -6054,8 +6166,8 @@ export interface StickerPackResponse {
6054
6166
  readonly name: string
6055
6167
  readonly description?: string | null | undefined
6056
6168
  readonly stickers: ReadonlyArray<StandardStickerResponse>
6057
- readonly cover_sticker_id?: SnowflakeType | null | undefined
6058
- readonly banner_asset_id?: SnowflakeType | null | undefined
6169
+ readonly cover_sticker_id?: SnowflakeType | undefined
6170
+ readonly banner_asset_id?: SnowflakeType | undefined
6059
6171
  }
6060
6172
 
6061
6173
  export interface StickerPackCollectionResponse {
@@ -6091,8 +6203,8 @@ export interface UserPIIResponse {
6091
6203
  readonly discriminator: string
6092
6204
  readonly public_flags: number
6093
6205
  readonly flags: Int53Type
6094
- readonly bot?: boolean | null | undefined
6095
- readonly system?: boolean | null | undefined
6206
+ readonly bot?: boolean | undefined
6207
+ readonly system?: boolean | undefined
6096
6208
  readonly banner?: string | null | undefined
6097
6209
  readonly accent_color?: number | null | undefined
6098
6210
  readonly global_name?: string | null | undefined
@@ -6104,9 +6216,9 @@ export interface UserPIIResponse {
6104
6216
  readonly primary_guild?: UserPrimaryGuildResponse | null | undefined
6105
6217
  readonly mfa_enabled: boolean
6106
6218
  readonly locale: AvailableLocalesEnum
6107
- readonly premium_type?: PremiumTypes | null | undefined
6219
+ readonly premium_type?: PremiumTypes | undefined
6108
6220
  readonly email?: string | null | undefined
6109
- readonly verified?: boolean | null | undefined
6221
+ readonly verified?: boolean | undefined
6110
6222
  }
6111
6223
 
6112
6224
  export interface BotAccountPatchRequest {
@@ -6118,7 +6230,7 @@ export interface BotAccountPatchRequest {
6118
6230
  export interface ApplicationUserRoleConnectionResponse {
6119
6231
  readonly platform_name?: string | null | undefined
6120
6232
  readonly platform_username?: string | null | undefined
6121
- readonly metadata?: Record<string, unknown> | null | undefined
6233
+ readonly metadata?: Record<string, unknown> | undefined
6122
6234
  }
6123
6235
 
6124
6236
  export interface UpdateApplicationUserRoleConnectionRequest {
@@ -6191,13 +6303,12 @@ export interface ConnectedAccountResponse {
6191
6303
  readonly friend_sync: boolean
6192
6304
  readonly integrations?:
6193
6305
  | ReadonlyArray<ConnectedAccountIntegrationResponse>
6194
- | null
6195
6306
  | undefined
6196
6307
  readonly show_activity: boolean
6197
6308
  readonly two_way_link: boolean
6198
6309
  readonly verified: boolean
6199
6310
  readonly visibility: ConnectedAccountVisibility
6200
- readonly revoked?: boolean | null | undefined
6311
+ readonly revoked?: boolean | undefined
6201
6312
  }
6202
6313
 
6203
6314
  export type ListMyConnections200 = ReadonlyArray<ConnectedAccountResponse>
@@ -7401,8 +7512,9 @@ export const make = (
7401
7512
  HttpClientRequest.bodyUnsafeJson(options),
7402
7513
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7403
7514
  ),
7404
- unbanUserFromGuild: (guildId, userId) =>
7515
+ unbanUserFromGuild: (guildId, userId, options) =>
7405
7516
  HttpClientRequest.del(`/guilds/${guildId}/bans/${userId}`).pipe(
7517
+ HttpClientRequest.bodyUnsafeJson(options),
7406
7518
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7407
7519
  ),
7408
7520
  bulkBanUsersFromGuild: (guildId, options) =>
@@ -8547,7 +8659,7 @@ export interface DiscordRest {
8547
8659
  >
8548
8660
  readonly getEntitlements: (
8549
8661
  applicationId: string,
8550
- options: GetEntitlementsParams,
8662
+ options?: GetEntitlementsParams | undefined,
8551
8663
  ) => Effect.Effect<
8552
8664
  GetEntitlements200,
8553
8665
  | HttpClientError.HttpClientError
@@ -9258,6 +9370,7 @@ export interface DiscordRest {
9258
9370
  readonly unbanUserFromGuild: (
9259
9371
  guildId: string,
9260
9372
  userId: string,
9373
+ options: UnbanUserFromGuildRequest,
9261
9374
  ) => Effect.Effect<
9262
9375
  void,
9263
9376
  | HttpClientError.HttpClientError
@@ -9266,7 +9379,7 @@ export interface DiscordRest {
9266
9379
  >
9267
9380
  readonly bulkBanUsersFromGuild: (
9268
9381
  guildId: string,
9269
- options: BulkBanUsersFromGuildRequest,
9382
+ options: BulkBanUsersRequest,
9270
9383
  ) => Effect.Effect<
9271
9384
  BulkBanUsersResponse,
9272
9385
  | HttpClientError.HttpClientError
@@ -9794,7 +9907,7 @@ export interface DiscordRest {
9794
9907
  >
9795
9908
  readonly updateSelfVoiceState: (
9796
9909
  guildId: string,
9797
- options: UpdateSelfVoiceStateRequest,
9910
+ options: UpdateSelfVoiceStateRequestPartial,
9798
9911
  ) => Effect.Effect<
9799
9912
  void,
9800
9913
  | HttpClientError.HttpClientError
@@ -9813,7 +9926,7 @@ export interface DiscordRest {
9813
9926
  readonly updateVoiceState: (
9814
9927
  guildId: string,
9815
9928
  userId: string,
9816
- options: UpdateVoiceStateRequest,
9929
+ options: UpdateVoiceStateRequestPartial,
9817
9930
  ) => Effect.Effect<
9818
9931
  void,
9819
9932
  | HttpClientError.HttpClientError