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.
@@ -13,9 +13,9 @@ export interface UserAvatarDecorationResponse {
13
13
  export type NameplatePalette = string;
14
14
  export interface UserNameplateResponse {
15
15
  readonly sku_id?: SnowflakeType | null | undefined;
16
- readonly asset?: string | null | undefined;
17
- readonly label?: string | null | undefined;
18
- readonly palette?: NameplatePalette | null | undefined;
16
+ readonly asset: string;
17
+ readonly label: string;
18
+ readonly palette: NameplatePalette;
19
19
  }
20
20
  export interface UserCollectiblesResponse {
21
21
  readonly nameplate?: UserNameplateResponse | null | undefined;
@@ -33,8 +33,8 @@ export interface UserResponse {
33
33
  readonly discriminator: string;
34
34
  readonly public_flags: number;
35
35
  readonly flags: Int53Type;
36
- readonly bot?: boolean | null | undefined;
37
- readonly system?: boolean | null | undefined;
36
+ readonly bot?: boolean | undefined;
37
+ readonly system?: boolean | undefined;
38
38
  readonly banner?: string | null | undefined;
39
39
  readonly accent_color?: number | null | undefined;
40
40
  readonly global_name?: string | null | undefined;
@@ -225,23 +225,23 @@ export interface PrivateApplicationResponse {
225
225
  readonly icon?: string | null | undefined;
226
226
  readonly description: string;
227
227
  readonly type?: ApplicationTypes | null | undefined;
228
- readonly cover_image?: string | null | undefined;
229
- readonly primary_sku_id?: SnowflakeType | null | undefined;
230
- readonly bot?: UserResponse | null | undefined;
231
- readonly slug?: string | null | undefined;
232
- readonly guild_id?: SnowflakeType | null | undefined;
233
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined;
234
- readonly bot_public?: boolean | null | undefined;
235
- readonly bot_require_code_grant?: boolean | null | undefined;
236
- readonly terms_of_service_url?: string | null | undefined;
237
- readonly privacy_policy_url?: string | null | undefined;
238
- readonly custom_install_url?: string | null | undefined;
239
- readonly install_params?: ApplicationOAuth2InstallParamsResponse | null | undefined;
240
- readonly integration_types_config?: Record<string, unknown> | null | undefined;
228
+ readonly cover_image?: string | undefined;
229
+ readonly primary_sku_id?: SnowflakeType | undefined;
230
+ readonly bot?: UserResponse | undefined;
231
+ readonly slug?: string | undefined;
232
+ readonly guild_id?: SnowflakeType | undefined;
233
+ readonly rpc_origins?: ReadonlyArray<string> | undefined;
234
+ readonly bot_public?: boolean | undefined;
235
+ readonly bot_require_code_grant?: boolean | undefined;
236
+ readonly terms_of_service_url?: string | undefined;
237
+ readonly privacy_policy_url?: string | undefined;
238
+ readonly custom_install_url?: string | undefined;
239
+ readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined;
240
+ readonly integration_types_config?: Record<string, unknown> | undefined;
241
241
  readonly verify_key: string;
242
242
  readonly flags: number;
243
243
  readonly max_participants?: number | null | undefined;
244
- readonly tags?: ReadonlyArray<string> | null | undefined;
244
+ readonly tags?: ReadonlyArray<string> | undefined;
245
245
  readonly redirect_uris: ReadonlyArray<string>;
246
246
  readonly interactions_endpoint_url?: string | null | undefined;
247
247
  readonly role_connections_verification_url?: string | null | undefined;
@@ -356,7 +356,7 @@ export interface EmbeddedActivityInstance {
356
356
  readonly application_id: SnowflakeType;
357
357
  readonly instance_id: string;
358
358
  readonly launch_id: string;
359
- readonly location?: GuildChannelLocation | PrivateChannelLocation | null | undefined;
359
+ readonly location: GuildChannelLocation | PrivateChannelLocation;
360
360
  readonly users: ReadonlyArray<SnowflakeType>;
361
361
  }
362
362
  export interface UploadApplicationAttachmentRequest {
@@ -368,23 +368,23 @@ export interface ApplicationResponse {
368
368
  readonly icon?: string | null | undefined;
369
369
  readonly description: string;
370
370
  readonly type?: ApplicationTypes | null | undefined;
371
- readonly cover_image?: string | null | undefined;
372
- readonly primary_sku_id?: SnowflakeType | null | undefined;
373
- readonly bot?: UserResponse | null | undefined;
374
- readonly slug?: string | null | undefined;
375
- readonly guild_id?: SnowflakeType | null | undefined;
376
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined;
377
- readonly bot_public?: boolean | null | undefined;
378
- readonly bot_require_code_grant?: boolean | null | undefined;
379
- readonly terms_of_service_url?: string | null | undefined;
380
- readonly privacy_policy_url?: string | null | undefined;
381
- readonly custom_install_url?: string | null | undefined;
382
- readonly install_params?: ApplicationOAuth2InstallParamsResponse | null | undefined;
383
- readonly integration_types_config?: Record<string, unknown> | null | undefined;
371
+ readonly cover_image?: string | undefined;
372
+ readonly primary_sku_id?: SnowflakeType | undefined;
373
+ readonly bot?: UserResponse | undefined;
374
+ readonly slug?: string | undefined;
375
+ readonly guild_id?: SnowflakeType | undefined;
376
+ readonly rpc_origins?: ReadonlyArray<string> | undefined;
377
+ readonly bot_public?: boolean | undefined;
378
+ readonly bot_require_code_grant?: boolean | undefined;
379
+ readonly terms_of_service_url?: string | undefined;
380
+ readonly privacy_policy_url?: string | undefined;
381
+ readonly custom_install_url?: string | undefined;
382
+ readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined;
383
+ readonly integration_types_config?: Record<string, unknown> | undefined;
384
384
  readonly verify_key: string;
385
385
  readonly flags: number;
386
386
  readonly max_participants?: number | null | undefined;
387
- readonly tags?: ReadonlyArray<string> | null | undefined;
387
+ readonly tags?: ReadonlyArray<string> | undefined;
388
388
  }
389
389
  export interface AttachmentResponse {
390
390
  readonly id: SnowflakeType;
@@ -392,17 +392,17 @@ export interface AttachmentResponse {
392
392
  readonly size: number;
393
393
  readonly url: string;
394
394
  readonly proxy_url: string;
395
- readonly width?: number | null | undefined;
396
- readonly height?: number | null | undefined;
397
- readonly duration_secs?: number | null | undefined;
398
- readonly waveform?: string | null | undefined;
399
- readonly description?: string | null | undefined;
400
- readonly content_type?: string | null | undefined;
401
- readonly ephemeral?: boolean | null | undefined;
395
+ readonly width?: number | undefined;
396
+ readonly height?: number | undefined;
397
+ readonly duration_secs?: number | undefined;
398
+ readonly waveform?: string | undefined;
399
+ readonly description?: string | undefined;
400
+ readonly content_type?: string | undefined;
401
+ readonly ephemeral?: boolean | undefined;
402
402
  readonly title?: string | null | undefined;
403
- readonly application?: ApplicationResponse | null | undefined;
404
- readonly clip_created_at?: string | null | undefined;
405
- readonly clip_participants?: ReadonlyArray<UserResponse> | null | undefined;
403
+ readonly application?: ApplicationResponse | undefined;
404
+ readonly clip_created_at?: string | undefined;
405
+ readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
406
406
  }
407
407
  export interface ActivitiesAttachmentResponse {
408
408
  readonly attachment: AttachmentResponse;
@@ -505,22 +505,22 @@ export type ApplicationCommandOptionType = (typeof ApplicationCommandOptionType)
505
505
  export interface ApplicationCommandAttachmentOptionResponse {
506
506
  readonly type: 11;
507
507
  readonly name: string;
508
- readonly name_localized?: string | null | undefined;
508
+ readonly name_localized?: string | undefined;
509
509
  readonly name_localizations?: Record<string, unknown> | null | undefined;
510
510
  readonly description: string;
511
- readonly description_localized?: string | null | undefined;
511
+ readonly description_localized?: string | undefined;
512
512
  readonly description_localizations?: Record<string, unknown> | null | undefined;
513
- readonly required?: boolean | null | undefined;
513
+ readonly required?: boolean | undefined;
514
514
  }
515
515
  export interface ApplicationCommandBooleanOptionResponse {
516
516
  readonly type: 5;
517
517
  readonly name: string;
518
- readonly name_localized?: string | null | undefined;
518
+ readonly name_localized?: string | undefined;
519
519
  readonly name_localizations?: Record<string, unknown> | null | undefined;
520
520
  readonly description: string;
521
- readonly description_localized?: string | null | undefined;
521
+ readonly description_localized?: string | undefined;
522
522
  readonly description_localizations?: Record<string, unknown> | null | undefined;
523
- readonly required?: boolean | null | undefined;
523
+ readonly required?: boolean | undefined;
524
524
  }
525
525
  export declare const ChannelTypes: {
526
526
  /**
@@ -576,125 +576,125 @@ export type ChannelTypes = (typeof ChannelTypes)[keyof typeof ChannelTypes];
576
576
  export interface ApplicationCommandChannelOptionResponse {
577
577
  readonly type: 7;
578
578
  readonly name: string;
579
- readonly name_localized?: string | null | undefined;
579
+ readonly name_localized?: string | undefined;
580
580
  readonly name_localizations?: Record<string, unknown> | null | undefined;
581
581
  readonly description: string;
582
- readonly description_localized?: string | null | undefined;
582
+ readonly description_localized?: string | undefined;
583
583
  readonly description_localizations?: Record<string, unknown> | null | undefined;
584
- readonly required?: boolean | null | undefined;
585
- readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
584
+ readonly required?: boolean | undefined;
585
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined;
586
586
  }
587
587
  export interface ApplicationCommandOptionIntegerChoiceResponse {
588
588
  readonly name: string;
589
- readonly name_localized?: string | null | undefined;
589
+ readonly name_localized?: string | undefined;
590
590
  readonly name_localizations?: Record<string, unknown> | null | undefined;
591
591
  readonly value: Int53Type;
592
592
  }
593
593
  export interface ApplicationCommandIntegerOptionResponse {
594
594
  readonly type: 4;
595
595
  readonly name: string;
596
- readonly name_localized?: string | null | undefined;
596
+ readonly name_localized?: string | undefined;
597
597
  readonly name_localizations?: Record<string, unknown> | null | undefined;
598
598
  readonly description: string;
599
- readonly description_localized?: string | null | undefined;
599
+ readonly description_localized?: string | undefined;
600
600
  readonly description_localizations?: Record<string, unknown> | null | undefined;
601
- readonly required?: boolean | null | undefined;
602
- readonly autocomplete?: boolean | null | undefined;
603
- readonly choices?: ReadonlyArray<ApplicationCommandOptionIntegerChoiceResponse> | null | undefined;
604
- readonly min_value?: Int53Type | null | undefined;
605
- readonly max_value?: Int53Type | null | undefined;
601
+ readonly required?: boolean | undefined;
602
+ readonly autocomplete?: boolean | undefined;
603
+ readonly choices?: ReadonlyArray<ApplicationCommandOptionIntegerChoiceResponse> | undefined;
604
+ readonly min_value?: Int53Type | undefined;
605
+ readonly max_value?: Int53Type | undefined;
606
606
  }
607
607
  export interface ApplicationCommandMentionableOptionResponse {
608
608
  readonly type: 9;
609
609
  readonly name: string;
610
- readonly name_localized?: string | null | undefined;
610
+ readonly name_localized?: string | undefined;
611
611
  readonly name_localizations?: Record<string, unknown> | null | undefined;
612
612
  readonly description: string;
613
- readonly description_localized?: string | null | undefined;
613
+ readonly description_localized?: string | undefined;
614
614
  readonly description_localizations?: Record<string, unknown> | null | undefined;
615
- readonly required?: boolean | null | undefined;
615
+ readonly required?: boolean | undefined;
616
616
  }
617
617
  export interface ApplicationCommandOptionNumberChoiceResponse {
618
618
  readonly name: string;
619
- readonly name_localized?: string | null | undefined;
619
+ readonly name_localized?: string | undefined;
620
620
  readonly name_localizations?: Record<string, unknown> | null | undefined;
621
621
  readonly value: number;
622
622
  }
623
623
  export interface ApplicationCommandNumberOptionResponse {
624
624
  readonly type: 10;
625
625
  readonly name: string;
626
- readonly name_localized?: string | null | undefined;
626
+ readonly name_localized?: string | undefined;
627
627
  readonly name_localizations?: Record<string, unknown> | null | undefined;
628
628
  readonly description: string;
629
- readonly description_localized?: string | null | undefined;
629
+ readonly description_localized?: string | undefined;
630
630
  readonly description_localizations?: Record<string, unknown> | null | undefined;
631
- readonly required?: boolean | null | undefined;
632
- readonly autocomplete?: boolean | null | undefined;
633
- readonly choices?: ReadonlyArray<ApplicationCommandOptionNumberChoiceResponse> | null | undefined;
634
- readonly min_value?: number | null | undefined;
635
- readonly max_value?: number | null | undefined;
631
+ readonly required?: boolean | undefined;
632
+ readonly autocomplete?: boolean | undefined;
633
+ readonly choices?: ReadonlyArray<ApplicationCommandOptionNumberChoiceResponse> | undefined;
634
+ readonly min_value?: number | undefined;
635
+ readonly max_value?: number | undefined;
636
636
  }
637
637
  export interface ApplicationCommandRoleOptionResponse {
638
638
  readonly type: 8;
639
639
  readonly name: string;
640
- readonly name_localized?: string | null | undefined;
640
+ readonly name_localized?: string | undefined;
641
641
  readonly name_localizations?: Record<string, unknown> | null | undefined;
642
642
  readonly description: string;
643
- readonly description_localized?: string | null | undefined;
643
+ readonly description_localized?: string | undefined;
644
644
  readonly description_localizations?: Record<string, unknown> | null | undefined;
645
- readonly required?: boolean | null | undefined;
645
+ readonly required?: boolean | undefined;
646
646
  }
647
647
  export interface ApplicationCommandOptionStringChoiceResponse {
648
648
  readonly name: string;
649
- readonly name_localized?: string | null | undefined;
649
+ readonly name_localized?: string | undefined;
650
650
  readonly name_localizations?: Record<string, unknown> | null | undefined;
651
651
  readonly value: string;
652
652
  }
653
653
  export interface ApplicationCommandStringOptionResponse {
654
654
  readonly type: 3;
655
655
  readonly name: string;
656
- readonly name_localized?: string | null | undefined;
656
+ readonly name_localized?: string | undefined;
657
657
  readonly name_localizations?: Record<string, unknown> | null | undefined;
658
658
  readonly description: string;
659
- readonly description_localized?: string | null | undefined;
659
+ readonly description_localized?: string | undefined;
660
660
  readonly description_localizations?: Record<string, unknown> | null | undefined;
661
- readonly required?: boolean | null | undefined;
662
- readonly autocomplete?: boolean | null | undefined;
663
- readonly choices?: ReadonlyArray<ApplicationCommandOptionStringChoiceResponse> | null | undefined;
664
- readonly min_length?: number | null | undefined;
665
- readonly max_length?: number | null | undefined;
661
+ readonly required?: boolean | undefined;
662
+ readonly autocomplete?: boolean | undefined;
663
+ readonly choices?: ReadonlyArray<ApplicationCommandOptionStringChoiceResponse> | undefined;
664
+ readonly min_length?: number | undefined;
665
+ readonly max_length?: number | undefined;
666
666
  }
667
667
  export interface ApplicationCommandUserOptionResponse {
668
668
  readonly type: 6;
669
669
  readonly name: string;
670
- readonly name_localized?: string | null | undefined;
670
+ readonly name_localized?: string | undefined;
671
671
  readonly name_localizations?: Record<string, unknown> | null | undefined;
672
672
  readonly description: string;
673
- readonly description_localized?: string | null | undefined;
673
+ readonly description_localized?: string | undefined;
674
674
  readonly description_localizations?: Record<string, unknown> | null | undefined;
675
- readonly required?: boolean | null | undefined;
675
+ readonly required?: boolean | undefined;
676
676
  }
677
677
  export interface ApplicationCommandSubcommandOptionResponse {
678
678
  readonly type: 1;
679
679
  readonly name: string;
680
- readonly name_localized?: string | null | undefined;
680
+ readonly name_localized?: string | undefined;
681
681
  readonly name_localizations?: Record<string, unknown> | null | undefined;
682
682
  readonly description: string;
683
- readonly description_localized?: string | null | undefined;
683
+ readonly description_localized?: string | undefined;
684
684
  readonly description_localizations?: Record<string, unknown> | null | undefined;
685
- readonly required?: boolean | null | undefined;
686
- readonly options?: ReadonlyArray<ApplicationCommandAttachmentOptionResponse | ApplicationCommandBooleanOptionResponse | ApplicationCommandChannelOptionResponse | ApplicationCommandIntegerOptionResponse | ApplicationCommandMentionableOptionResponse | ApplicationCommandNumberOptionResponse | ApplicationCommandRoleOptionResponse | ApplicationCommandStringOptionResponse | ApplicationCommandUserOptionResponse> | null | undefined;
685
+ readonly required?: boolean | undefined;
686
+ readonly options?: ReadonlyArray<ApplicationCommandAttachmentOptionResponse | ApplicationCommandBooleanOptionResponse | ApplicationCommandChannelOptionResponse | ApplicationCommandIntegerOptionResponse | ApplicationCommandMentionableOptionResponse | ApplicationCommandNumberOptionResponse | ApplicationCommandRoleOptionResponse | ApplicationCommandStringOptionResponse | ApplicationCommandUserOptionResponse> | undefined;
687
687
  }
688
688
  export interface ApplicationCommandSubcommandGroupOptionResponse {
689
689
  readonly type: 2;
690
690
  readonly name: string;
691
- readonly name_localized?: string | null | undefined;
691
+ readonly name_localized?: string | undefined;
692
692
  readonly name_localizations?: Record<string, unknown> | null | undefined;
693
693
  readonly description: string;
694
- readonly description_localized?: string | null | undefined;
694
+ readonly description_localized?: string | undefined;
695
695
  readonly description_localizations?: Record<string, unknown> | null | undefined;
696
- readonly required?: boolean | null | undefined;
697
- readonly options?: ReadonlyArray<ApplicationCommandSubcommandOptionResponse> | null | undefined;
696
+ readonly required?: boolean | undefined;
697
+ readonly options?: ReadonlyArray<ApplicationCommandSubcommandOptionResponse> | undefined;
698
698
  }
699
699
  export interface ApplicationCommandResponse {
700
700
  readonly id: SnowflakeType;
@@ -703,17 +703,17 @@ export interface ApplicationCommandResponse {
703
703
  readonly default_member_permissions?: string | null | undefined;
704
704
  readonly type: ApplicationCommandType;
705
705
  readonly name: string;
706
- readonly name_localized?: string | null | undefined;
706
+ readonly name_localized?: string | undefined;
707
707
  readonly name_localizations?: Record<string, unknown> | null | undefined;
708
708
  readonly description: string;
709
- readonly description_localized?: string | null | undefined;
709
+ readonly description_localized?: string | undefined;
710
710
  readonly description_localizations?: Record<string, unknown> | null | undefined;
711
- readonly guild_id?: SnowflakeType | null | undefined;
712
- readonly dm_permission?: boolean | null | undefined;
711
+ readonly guild_id?: SnowflakeType | undefined;
712
+ readonly dm_permission?: boolean | undefined;
713
713
  readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
714
- readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | null | undefined;
715
- readonly options?: ReadonlyArray<ApplicationCommandAttachmentOptionResponse | ApplicationCommandBooleanOptionResponse | ApplicationCommandChannelOptionResponse | ApplicationCommandIntegerOptionResponse | ApplicationCommandMentionableOptionResponse | ApplicationCommandNumberOptionResponse | ApplicationCommandRoleOptionResponse | ApplicationCommandStringOptionResponse | ApplicationCommandSubcommandGroupOptionResponse | ApplicationCommandSubcommandOptionResponse | ApplicationCommandUserOptionResponse> | null | undefined;
716
- readonly nsfw?: boolean | null | undefined;
714
+ readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | undefined;
715
+ readonly options?: ReadonlyArray<ApplicationCommandAttachmentOptionResponse | ApplicationCommandBooleanOptionResponse | ApplicationCommandChannelOptionResponse | ApplicationCommandIntegerOptionResponse | ApplicationCommandMentionableOptionResponse | ApplicationCommandNumberOptionResponse | ApplicationCommandRoleOptionResponse | ApplicationCommandStringOptionResponse | ApplicationCommandSubcommandGroupOptionResponse | ApplicationCommandSubcommandOptionResponse | ApplicationCommandUserOptionResponse> | undefined;
716
+ readonly nsfw?: boolean | undefined;
717
717
  }
718
718
  export type ListApplicationCommands200 = ReadonlyArray<ApplicationCommandResponse>;
719
719
  export interface ApplicationCommandAttachmentOption {
@@ -879,7 +879,7 @@ export interface ApplicationCommandPatchRequestPartial {
879
879
  export interface EmojiResponse {
880
880
  readonly id: SnowflakeType;
881
881
  readonly name: string;
882
- readonly user?: UserResponse | null | undefined;
882
+ readonly user?: UserResponse | undefined;
883
883
  readonly roles: ReadonlyArray<SnowflakeType>;
884
884
  readonly require_colons: boolean;
885
885
  readonly managed: boolean;
@@ -898,7 +898,7 @@ export interface UpdateApplicationEmojiRequest {
898
898
  }
899
899
  export interface GetEntitlementsParams {
900
900
  readonly user_id?: SnowflakeType | undefined;
901
- readonly sku_ids: string | ReadonlyArray<null | SnowflakeType>;
901
+ readonly sku_ids?: string | ReadonlyArray<null | SnowflakeType> | undefined;
902
902
  readonly guild_id?: SnowflakeType | undefined;
903
903
  readonly before?: SnowflakeType | undefined;
904
904
  readonly after?: SnowflakeType | undefined;
@@ -1137,25 +1137,25 @@ export interface GuildChannelResponse {
1137
1137
  readonly guild_id: SnowflakeType;
1138
1138
  readonly name: string;
1139
1139
  readonly parent_id?: SnowflakeType | null | undefined;
1140
- readonly rate_limit_per_user?: number | null | undefined;
1141
- readonly bitrate?: number | null | undefined;
1142
- readonly user_limit?: number | null | undefined;
1140
+ readonly rate_limit_per_user?: number | undefined;
1141
+ readonly bitrate?: number | undefined;
1142
+ readonly user_limit?: number | undefined;
1143
1143
  readonly rtc_region?: string | null | undefined;
1144
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
1144
+ readonly video_quality_mode?: VideoQualityModes | undefined;
1145
1145
  readonly permissions?: string | null | undefined;
1146
1146
  readonly topic?: string | null | undefined;
1147
- readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined;
1148
- readonly default_thread_rate_limit_per_user?: number | null | undefined;
1147
+ readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | undefined;
1148
+ readonly default_thread_rate_limit_per_user?: number | undefined;
1149
1149
  readonly position: number;
1150
- readonly permission_overwrites?: ReadonlyArray<ChannelPermissionOverwriteResponse> | null | undefined;
1151
- readonly nsfw?: boolean | null | undefined;
1152
- readonly available_tags?: ReadonlyArray<ForumTagResponse> | null | undefined;
1150
+ readonly permission_overwrites?: ReadonlyArray<ChannelPermissionOverwriteResponse> | undefined;
1151
+ readonly nsfw?: boolean | undefined;
1152
+ readonly available_tags?: ReadonlyArray<ForumTagResponse> | undefined;
1153
1153
  readonly default_reaction_emoji?: DefaultReactionEmojiResponse | null | undefined;
1154
1154
  readonly default_sort_order?: ThreadSortOrder | null | undefined;
1155
1155
  readonly default_forum_layout?: ForumLayout | null | undefined;
1156
1156
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
1157
- readonly hd_streaming_until?: string | null | undefined;
1158
- readonly hd_streaming_buyer_id?: SnowflakeType | null | undefined;
1157
+ readonly hd_streaming_until?: string | undefined;
1158
+ readonly hd_streaming_buyer_id?: SnowflakeType | undefined;
1159
1159
  }
1160
1160
  export interface PrivateChannelResponse {
1161
1161
  readonly id: SnowflakeType;
@@ -1174,17 +1174,17 @@ export interface PrivateGroupChannelResponse {
1174
1174
  readonly recipients: ReadonlyArray<UserResponse>;
1175
1175
  readonly name?: string | null | undefined;
1176
1176
  readonly icon?: string | null | undefined;
1177
- readonly owner_id?: SnowflakeType | null | undefined;
1178
- readonly managed?: boolean | null | undefined;
1179
- readonly application_id?: SnowflakeType | null | undefined;
1177
+ readonly owner_id: SnowflakeType;
1178
+ readonly managed?: boolean | undefined;
1179
+ readonly application_id?: SnowflakeType | undefined;
1180
1180
  }
1181
1181
  export interface ThreadMetadataResponse {
1182
1182
  readonly archived: boolean;
1183
1183
  readonly archive_timestamp?: string | null | undefined;
1184
1184
  readonly auto_archive_duration: ThreadAutoArchiveDuration;
1185
1185
  readonly locked: boolean;
1186
- readonly create_timestamp?: string | null | undefined;
1187
- readonly invitable?: boolean | null | undefined;
1186
+ readonly create_timestamp?: string | undefined;
1187
+ readonly invitable?: boolean | undefined;
1188
1188
  }
1189
1189
  export interface GuildMemberResponse {
1190
1190
  readonly avatar?: string | null | undefined;
@@ -1207,7 +1207,7 @@ export interface ThreadMemberResponse {
1207
1207
  readonly user_id: SnowflakeType;
1208
1208
  readonly join_timestamp: string;
1209
1209
  readonly flags: number;
1210
- readonly member?: GuildMemberResponse | null | undefined;
1210
+ readonly member?: GuildMemberResponse | undefined;
1211
1211
  }
1212
1212
  export interface ThreadResponse {
1213
1213
  readonly id: SnowflakeType;
@@ -1218,19 +1218,19 @@ export interface ThreadResponse {
1218
1218
  readonly guild_id: SnowflakeType;
1219
1219
  readonly name: string;
1220
1220
  readonly parent_id?: SnowflakeType | null | undefined;
1221
- readonly rate_limit_per_user?: number | null | undefined;
1222
- readonly bitrate?: number | null | undefined;
1223
- readonly user_limit?: number | null | undefined;
1221
+ readonly rate_limit_per_user?: number | undefined;
1222
+ readonly bitrate?: number | undefined;
1223
+ readonly user_limit?: number | undefined;
1224
1224
  readonly rtc_region?: string | null | undefined;
1225
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
1225
+ readonly video_quality_mode?: VideoQualityModes | undefined;
1226
1226
  readonly permissions?: string | null | undefined;
1227
1227
  readonly owner_id: SnowflakeType;
1228
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined;
1228
+ readonly thread_metadata: ThreadMetadataResponse;
1229
1229
  readonly message_count: number;
1230
1230
  readonly member_count: number;
1231
1231
  readonly total_message_sent: number;
1232
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined;
1233
- readonly member?: ThreadMemberResponse | null | undefined;
1232
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined;
1233
+ readonly member?: ThreadMemberResponse | undefined;
1234
1234
  }
1235
1235
  export type GetChannel200 = GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse;
1236
1236
  export type DeleteChannel200 = GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse;
@@ -1316,31 +1316,31 @@ export interface InviteChannelResponse {
1316
1316
  readonly id: SnowflakeType;
1317
1317
  readonly type: ChannelTypes;
1318
1318
  readonly name?: string | null | undefined;
1319
- readonly icon?: string | null | undefined;
1320
- readonly recipients?: ReadonlyArray<InviteChannelRecipientResponse> | null | undefined;
1319
+ readonly icon?: string | undefined;
1320
+ readonly recipients?: ReadonlyArray<InviteChannelRecipientResponse> | undefined;
1321
1321
  }
1322
1322
  export interface FriendInviteResponse {
1323
- readonly type?: 2 | null | undefined;
1323
+ readonly type: 2;
1324
1324
  readonly code: string;
1325
- readonly inviter?: UserResponse | null | undefined;
1326
- readonly max_age?: number | null | undefined;
1327
- readonly created_at?: string | null | undefined;
1325
+ readonly inviter?: UserResponse | undefined;
1326
+ readonly max_age?: number | undefined;
1327
+ readonly created_at?: string | undefined;
1328
1328
  readonly expires_at?: string | null | undefined;
1329
- readonly friends_count?: number | null | undefined;
1329
+ readonly friends_count?: number | undefined;
1330
1330
  readonly channel?: InviteChannelResponse | null | undefined;
1331
- readonly is_contact?: boolean | null | undefined;
1332
- readonly uses?: number | null | undefined;
1333
- readonly max_uses?: number | null | undefined;
1334
- readonly flags?: number | null | undefined;
1331
+ readonly is_contact?: boolean | undefined;
1332
+ readonly uses?: number | undefined;
1333
+ readonly max_uses?: number | undefined;
1334
+ readonly flags?: number | undefined;
1335
1335
  }
1336
1336
  export interface GroupDMInviteResponse {
1337
- readonly type?: 1 | null | undefined;
1337
+ readonly type: 1;
1338
1338
  readonly code: string;
1339
- readonly inviter?: UserResponse | null | undefined;
1340
- readonly max_age?: number | null | undefined;
1341
- readonly created_at?: string | null | undefined;
1339
+ readonly inviter?: UserResponse | undefined;
1340
+ readonly max_age?: number | undefined;
1341
+ readonly created_at?: string | undefined;
1342
1342
  readonly expires_at?: string | null | undefined;
1343
- readonly channel?: InviteChannelResponse | null | undefined;
1343
+ readonly channel: InviteChannelResponse;
1344
1344
  readonly approximate_member_count?: number | null | undefined;
1345
1345
  }
1346
1346
  export declare const GuildFeatures: {
@@ -1496,7 +1496,7 @@ export interface InviteGuildResponse {
1496
1496
  readonly vanity_url_code?: string | null | undefined;
1497
1497
  readonly nsfw_level?: GuildNSFWContentLevel | null | undefined;
1498
1498
  readonly nsfw?: boolean | null | undefined;
1499
- readonly premium_subscription_count?: number | null | undefined;
1499
+ readonly premium_subscription_count: number;
1500
1500
  }
1501
1501
  export declare const InviteTargetTypes: {
1502
1502
  readonly STREAM: 1;
@@ -1510,23 +1510,23 @@ export interface InviteApplicationResponse {
1510
1510
  readonly icon?: string | null | undefined;
1511
1511
  readonly description: string;
1512
1512
  readonly type?: ApplicationTypes | null | undefined;
1513
- readonly cover_image?: string | null | undefined;
1514
- readonly primary_sku_id?: SnowflakeType | null | undefined;
1515
- readonly bot?: UserResponse | null | undefined;
1516
- readonly slug?: string | null | undefined;
1517
- readonly guild_id?: SnowflakeType | null | undefined;
1518
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined;
1519
- readonly bot_public?: boolean | null | undefined;
1520
- readonly bot_require_code_grant?: boolean | null | undefined;
1521
- readonly terms_of_service_url?: string | null | undefined;
1522
- readonly privacy_policy_url?: string | null | undefined;
1523
- readonly custom_install_url?: string | null | undefined;
1524
- readonly install_params?: ApplicationOAuth2InstallParamsResponse | null | undefined;
1525
- readonly integration_types_config?: Record<string, unknown> | null | undefined;
1513
+ readonly cover_image?: string | undefined;
1514
+ readonly primary_sku_id?: SnowflakeType | undefined;
1515
+ readonly bot?: UserResponse | undefined;
1516
+ readonly slug?: string | undefined;
1517
+ readonly guild_id?: SnowflakeType | undefined;
1518
+ readonly rpc_origins?: ReadonlyArray<string> | undefined;
1519
+ readonly bot_public?: boolean | undefined;
1520
+ readonly bot_require_code_grant?: boolean | undefined;
1521
+ readonly terms_of_service_url?: string | undefined;
1522
+ readonly privacy_policy_url?: string | undefined;
1523
+ readonly custom_install_url?: string | undefined;
1524
+ readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined;
1525
+ readonly integration_types_config?: Record<string, unknown> | undefined;
1526
1526
  readonly verify_key: string;
1527
1527
  readonly flags: number;
1528
1528
  readonly max_participants?: number | null | undefined;
1529
- readonly tags?: ReadonlyArray<string> | null | undefined;
1529
+ readonly tags?: ReadonlyArray<string> | undefined;
1530
1530
  }
1531
1531
  export declare const GuildScheduledEventStatuses: {
1532
1532
  readonly SCHEDULED: 1;
@@ -1546,8 +1546,8 @@ export type GuildScheduledEventPrivacyLevels = 2;
1546
1546
  export interface ScheduledEventUserResponse {
1547
1547
  readonly guild_scheduled_event_id: SnowflakeType;
1548
1548
  readonly user_id: SnowflakeType;
1549
- readonly user?: UserResponse | null | undefined;
1550
- readonly member?: GuildMemberResponse | null | undefined;
1549
+ readonly user?: UserResponse | undefined;
1550
+ readonly member?: GuildMemberResponse | undefined;
1551
1551
  }
1552
1552
  export interface ScheduledEventResponse {
1553
1553
  readonly id: SnowflakeType;
@@ -1556,41 +1556,41 @@ export interface ScheduledEventResponse {
1556
1556
  readonly description?: string | null | undefined;
1557
1557
  readonly channel_id?: SnowflakeType | null | undefined;
1558
1558
  readonly creator_id?: SnowflakeType | null | undefined;
1559
- readonly creator?: UserResponse | null | undefined;
1559
+ readonly creator?: UserResponse | undefined;
1560
1560
  readonly image?: string | null | undefined;
1561
1561
  readonly scheduled_start_time: string;
1562
1562
  readonly scheduled_end_time?: string | null | undefined;
1563
1563
  readonly status: GuildScheduledEventStatuses;
1564
1564
  readonly entity_type: GuildScheduledEventEntityTypes;
1565
1565
  readonly entity_id?: SnowflakeType | null | undefined;
1566
- readonly user_count?: number | null | undefined;
1566
+ readonly user_count?: number | undefined;
1567
1567
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
1568
1568
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
1569
1569
  }
1570
1570
  export interface GuildInviteResponse {
1571
- readonly type?: 0 | null | undefined;
1571
+ readonly type: 0;
1572
1572
  readonly code: string;
1573
- readonly inviter?: UserResponse | null | undefined;
1574
- readonly max_age?: number | null | undefined;
1575
- readonly created_at?: string | null | undefined;
1573
+ readonly inviter?: UserResponse | undefined;
1574
+ readonly max_age?: number | undefined;
1575
+ readonly created_at?: string | undefined;
1576
1576
  readonly expires_at?: string | null | undefined;
1577
- readonly is_contact?: boolean | null | undefined;
1578
- readonly flags?: number | null | undefined;
1579
- readonly guild?: InviteGuildResponse | null | undefined;
1580
- readonly guild_id?: SnowflakeType | null | undefined;
1581
- readonly channel?: InviteChannelResponse | null | undefined;
1582
- readonly target_type?: InviteTargetTypes | null | undefined;
1583
- readonly target_user?: UserResponse | null | undefined;
1584
- readonly target_application?: InviteApplicationResponse | null | undefined;
1585
- readonly guild_scheduled_event?: ScheduledEventResponse | null | undefined;
1586
- readonly uses?: number | null | undefined;
1587
- readonly max_uses?: number | null | undefined;
1588
- readonly temporary?: boolean | null | undefined;
1577
+ readonly is_contact?: boolean | undefined;
1578
+ readonly flags?: number | undefined;
1579
+ readonly guild: InviteGuildResponse;
1580
+ readonly guild_id: SnowflakeType;
1581
+ readonly channel: InviteChannelResponse;
1582
+ readonly target_type?: InviteTargetTypes | undefined;
1583
+ readonly target_user?: UserResponse | undefined;
1584
+ readonly target_application?: InviteApplicationResponse | undefined;
1585
+ readonly guild_scheduled_event?: ScheduledEventResponse | undefined;
1586
+ readonly uses?: number | undefined;
1587
+ readonly max_uses?: number | undefined;
1588
+ readonly temporary?: boolean | undefined;
1589
1589
  readonly approximate_member_count?: number | null | undefined;
1590
1590
  readonly approximate_presence_count?: number | null | undefined;
1591
- readonly is_nickname_changeable?: boolean | null | undefined;
1591
+ readonly is_nickname_changeable?: boolean | undefined;
1592
1592
  }
1593
- export type ListChannelInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse>;
1593
+ export type ListChannelInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null>;
1594
1594
  export interface CreateGroupDMInviteRequest {
1595
1595
  readonly max_age?: number | null | undefined;
1596
1596
  }
@@ -1657,17 +1657,17 @@ export interface MessageAttachmentResponse {
1657
1657
  readonly size: number;
1658
1658
  readonly url: string;
1659
1659
  readonly proxy_url: string;
1660
- readonly width?: number | null | undefined;
1661
- readonly height?: number | null | undefined;
1662
- readonly duration_secs?: number | null | undefined;
1663
- readonly waveform?: string | null | undefined;
1664
- readonly description?: string | null | undefined;
1665
- readonly content_type?: string | null | undefined;
1666
- readonly ephemeral?: boolean | null | undefined;
1660
+ readonly width?: number | undefined;
1661
+ readonly height?: number | undefined;
1662
+ readonly duration_secs?: number | undefined;
1663
+ readonly waveform?: string | undefined;
1664
+ readonly description?: string | undefined;
1665
+ readonly content_type?: string | undefined;
1666
+ readonly ephemeral?: boolean | undefined;
1667
1667
  readonly title?: string | null | undefined;
1668
- readonly application?: ApplicationResponse | null | undefined;
1669
- readonly clip_created_at?: string | null | undefined;
1670
- readonly clip_participants?: ReadonlyArray<UserResponse> | null | undefined;
1668
+ readonly application?: ApplicationResponse | undefined;
1669
+ readonly clip_created_at?: string | undefined;
1670
+ readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
1671
1671
  }
1672
1672
  export interface MessageEmbedFieldResponse {
1673
1673
  readonly name: string;
@@ -1676,56 +1676,56 @@ export interface MessageEmbedFieldResponse {
1676
1676
  }
1677
1677
  export interface MessageEmbedAuthorResponse {
1678
1678
  readonly name: string;
1679
- readonly url?: string | null | undefined;
1680
- readonly icon_url?: string | null | undefined;
1681
- readonly proxy_icon_url?: string | null | undefined;
1679
+ readonly url?: string | undefined;
1680
+ readonly icon_url?: string | undefined;
1681
+ readonly proxy_icon_url?: string | undefined;
1682
1682
  }
1683
1683
  export interface MessageEmbedProviderResponse {
1684
1684
  readonly name: string;
1685
- readonly url?: string | null | undefined;
1685
+ readonly url?: string | undefined;
1686
1686
  }
1687
1687
  export type UInt32Type = number;
1688
1688
  export interface MessageEmbedImageResponse {
1689
- readonly url?: string | null | undefined;
1690
- readonly proxy_url?: string | null | undefined;
1691
- readonly width?: UInt32Type | null | undefined;
1692
- readonly height?: UInt32Type | null | undefined;
1693
- readonly content_type?: string | null | undefined;
1694
- readonly placeholder?: string | null | undefined;
1695
- readonly placeholder_version?: UInt32Type | null | undefined;
1696
- readonly description?: string | null | undefined;
1697
- readonly flags?: UInt32Type | null | undefined;
1689
+ readonly url?: string | undefined;
1690
+ readonly proxy_url?: string | undefined;
1691
+ readonly width?: UInt32Type | undefined;
1692
+ readonly height?: UInt32Type | undefined;
1693
+ readonly content_type?: string | undefined;
1694
+ readonly placeholder?: string | undefined;
1695
+ readonly placeholder_version?: UInt32Type | undefined;
1696
+ readonly description?: string | undefined;
1697
+ readonly flags?: UInt32Type | undefined;
1698
1698
  }
1699
1699
  export interface MessageEmbedVideoResponse {
1700
- readonly url?: string | null | undefined;
1701
- readonly proxy_url?: string | null | undefined;
1702
- readonly width?: UInt32Type | null | undefined;
1703
- readonly height?: UInt32Type | null | undefined;
1704
- readonly content_type?: string | null | undefined;
1705
- readonly placeholder?: string | null | undefined;
1706
- readonly placeholder_version?: UInt32Type | null | undefined;
1707
- readonly description?: string | null | undefined;
1708
- readonly flags?: UInt32Type | null | undefined;
1700
+ readonly url?: string | undefined;
1701
+ readonly proxy_url?: string | undefined;
1702
+ readonly width?: UInt32Type | undefined;
1703
+ readonly height?: UInt32Type | undefined;
1704
+ readonly content_type?: string | undefined;
1705
+ readonly placeholder?: string | undefined;
1706
+ readonly placeholder_version?: UInt32Type | undefined;
1707
+ readonly description?: string | undefined;
1708
+ readonly flags?: UInt32Type | undefined;
1709
1709
  }
1710
1710
  export interface MessageEmbedFooterResponse {
1711
1711
  readonly text: string;
1712
- readonly icon_url?: string | null | undefined;
1713
- readonly proxy_icon_url?: string | null | undefined;
1712
+ readonly icon_url?: string | undefined;
1713
+ readonly proxy_icon_url?: string | undefined;
1714
1714
  }
1715
1715
  export interface MessageEmbedResponse {
1716
1716
  readonly type: string;
1717
- readonly url?: string | null | undefined;
1718
- readonly title?: string | null | undefined;
1719
- readonly description?: string | null | undefined;
1720
- readonly color?: number | null | undefined;
1721
- readonly timestamp?: string | null | undefined;
1722
- readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | null | undefined;
1723
- readonly author?: MessageEmbedAuthorResponse | null | undefined;
1724
- readonly provider?: MessageEmbedProviderResponse | null | undefined;
1725
- readonly image?: MessageEmbedImageResponse | null | undefined;
1726
- readonly thumbnail?: MessageEmbedImageResponse | null | undefined;
1727
- readonly video?: MessageEmbedVideoResponse | null | undefined;
1728
- readonly footer?: MessageEmbedFooterResponse | null | undefined;
1717
+ readonly url?: string | undefined;
1718
+ readonly title?: string | undefined;
1719
+ readonly description?: string | undefined;
1720
+ readonly color?: number | undefined;
1721
+ readonly timestamp?: string | undefined;
1722
+ readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | undefined;
1723
+ readonly author?: MessageEmbedAuthorResponse | undefined;
1724
+ readonly provider?: MessageEmbedProviderResponse | undefined;
1725
+ readonly image?: MessageEmbedImageResponse | undefined;
1726
+ readonly thumbnail?: MessageEmbedImageResponse | undefined;
1727
+ readonly video?: MessageEmbedVideoResponse | undefined;
1728
+ readonly footer?: MessageEmbedFooterResponse | undefined;
1729
1729
  }
1730
1730
  export declare const MessageComponentTypes: {
1731
1731
  /**
@@ -1788,6 +1788,10 @@ export declare const MessageComponentTypes: {
1788
1788
  * Container component
1789
1789
  */
1790
1790
  readonly CONTAINER: 17;
1791
+ /**
1792
+ * Label component
1793
+ */
1794
+ readonly LABEL: 18;
1791
1795
  };
1792
1796
  export type MessageComponentTypes = (typeof MessageComponentTypes)[keyof typeof MessageComponentTypes];
1793
1797
  export declare const ButtonStyleTypes: {
@@ -1800,20 +1804,20 @@ export declare const ButtonStyleTypes: {
1800
1804
  };
1801
1805
  export type ButtonStyleTypes = (typeof ButtonStyleTypes)[keyof typeof ButtonStyleTypes];
1802
1806
  export interface ComponentEmojiResponse {
1803
- readonly id?: SnowflakeType | null | undefined;
1807
+ readonly id?: SnowflakeType | undefined;
1804
1808
  readonly name: string;
1805
- readonly animated?: boolean | null | undefined;
1809
+ readonly animated?: boolean | undefined;
1806
1810
  }
1807
1811
  export interface ButtonComponentResponse {
1808
1812
  readonly type: 2;
1809
1813
  readonly id: number;
1810
- readonly custom_id?: string | null | undefined;
1814
+ readonly custom_id?: string | undefined;
1811
1815
  readonly style: ButtonStyleTypes;
1812
- readonly label?: string | null | undefined;
1813
- readonly disabled?: boolean | null | undefined;
1814
- readonly emoji?: ComponentEmojiResponse | null | undefined;
1816
+ readonly label?: string | undefined;
1817
+ readonly disabled?: boolean | undefined;
1818
+ readonly emoji?: ComponentEmojiResponse | undefined;
1815
1819
  readonly url?: string | null | undefined;
1816
- readonly sku_id?: SnowflakeType | null | undefined;
1820
+ readonly sku_id?: SnowflakeType | undefined;
1817
1821
  }
1818
1822
  export declare const SnowflakeSelectDefaultValueTypes: {
1819
1823
  readonly USER: "user";
@@ -1829,12 +1833,12 @@ export interface ChannelSelectComponentResponse {
1829
1833
  readonly type: 8;
1830
1834
  readonly id: number;
1831
1835
  readonly custom_id: string;
1832
- readonly placeholder?: string | null | undefined;
1836
+ readonly placeholder?: string | undefined;
1833
1837
  readonly min_values?: number | null | undefined;
1834
1838
  readonly max_values?: number | null | undefined;
1835
- readonly disabled?: boolean | null | undefined;
1836
- readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
1837
- readonly default_values?: ReadonlyArray<ChannelSelectDefaultValueResponse> | null | undefined;
1839
+ readonly disabled?: boolean | undefined;
1840
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined;
1841
+ readonly default_values?: ReadonlyArray<ChannelSelectDefaultValueResponse> | undefined;
1838
1842
  }
1839
1843
  export interface RoleSelectDefaultValueResponse {
1840
1844
  readonly type: "role";
@@ -1848,37 +1852,37 @@ export interface MentionableSelectComponentResponse {
1848
1852
  readonly type: 7;
1849
1853
  readonly id: number;
1850
1854
  readonly custom_id: string;
1851
- readonly placeholder?: string | null | undefined;
1855
+ readonly placeholder?: string | undefined;
1852
1856
  readonly min_values?: number | null | undefined;
1853
1857
  readonly max_values?: number | null | undefined;
1854
- readonly disabled?: boolean | null | undefined;
1855
- readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse> | null | undefined;
1858
+ readonly disabled?: boolean | undefined;
1859
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse> | undefined;
1856
1860
  }
1857
1861
  export interface RoleSelectComponentResponse {
1858
1862
  readonly type: 6;
1859
1863
  readonly id: number;
1860
1864
  readonly custom_id: string;
1861
- readonly placeholder?: string | null | undefined;
1865
+ readonly placeholder?: string | undefined;
1862
1866
  readonly min_values?: number | null | undefined;
1863
1867
  readonly max_values?: number | null | undefined;
1864
- readonly disabled?: boolean | null | undefined;
1865
- readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse> | null | undefined;
1868
+ readonly disabled?: boolean | undefined;
1869
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse> | undefined;
1866
1870
  }
1867
1871
  export interface StringSelectOptionResponse {
1868
1872
  readonly label: string;
1869
1873
  readonly value: string;
1870
- readonly description?: string | null | undefined;
1871
- readonly emoji?: ComponentEmojiResponse | null | undefined;
1872
- readonly default?: boolean | null | undefined;
1874
+ readonly description?: string | undefined;
1875
+ readonly emoji?: ComponentEmojiResponse | undefined;
1876
+ readonly default?: boolean | undefined;
1873
1877
  }
1874
1878
  export interface StringSelectComponentResponse {
1875
1879
  readonly type: 3;
1876
1880
  readonly id: number;
1877
1881
  readonly custom_id: string;
1878
- readonly placeholder?: string | null | undefined;
1882
+ readonly placeholder?: string | undefined;
1879
1883
  readonly min_values?: number | null | undefined;
1880
1884
  readonly max_values?: number | null | undefined;
1881
- readonly disabled?: boolean | null | undefined;
1885
+ readonly disabled?: boolean | undefined;
1882
1886
  readonly options: ReadonlyArray<StringSelectOptionResponse>;
1883
1887
  }
1884
1888
  export declare const TextInputStyleTypes: {
@@ -1898,9 +1902,9 @@ export interface TextInputComponentResponse {
1898
1902
  readonly custom_id: string;
1899
1903
  readonly style: TextInputStyleTypes;
1900
1904
  readonly label?: string | null | undefined;
1901
- readonly value?: string | null | undefined;
1902
- readonly placeholder?: string | null | undefined;
1903
- readonly required?: boolean | null | undefined;
1905
+ readonly value?: string | undefined;
1906
+ readonly placeholder?: string | undefined;
1907
+ readonly required?: boolean | undefined;
1904
1908
  readonly min_length?: number | null | undefined;
1905
1909
  readonly max_length?: number | null | undefined;
1906
1910
  }
@@ -1908,16 +1912,16 @@ export interface UserSelectComponentResponse {
1908
1912
  readonly type: 5;
1909
1913
  readonly id: number;
1910
1914
  readonly custom_id: string;
1911
- readonly placeholder?: string | null | undefined;
1915
+ readonly placeholder?: string | undefined;
1912
1916
  readonly min_values?: number | null | undefined;
1913
1917
  readonly max_values?: number | null | undefined;
1914
- readonly disabled?: boolean | null | undefined;
1915
- readonly default_values?: ReadonlyArray<UserSelectDefaultValueResponse> | null | undefined;
1918
+ readonly disabled?: boolean | undefined;
1919
+ readonly default_values?: ReadonlyArray<UserSelectDefaultValueResponse> | undefined;
1916
1920
  }
1917
1921
  export interface ActionRowComponentResponse {
1918
1922
  readonly type: 1;
1919
1923
  readonly id: number;
1920
- readonly components?: ReadonlyArray<ButtonComponentResponse | ChannelSelectComponentResponse | MentionableSelectComponentResponse | RoleSelectComponentResponse | StringSelectComponentResponse | TextInputComponentResponse | UserSelectComponentResponse> | null | undefined;
1924
+ readonly components: ReadonlyArray<ButtonComponentResponse | ChannelSelectComponentResponse | MentionableSelectComponentResponse | RoleSelectComponentResponse | StringSelectComponentResponse | TextInputComponentResponse | UserSelectComponentResponse>;
1921
1925
  }
1922
1926
  export interface UnfurledMediaResponse {
1923
1927
  readonly id: SnowflakeType;
@@ -1926,7 +1930,7 @@ export interface UnfurledMediaResponse {
1926
1930
  readonly width?: number | null | undefined;
1927
1931
  readonly height?: number | null | undefined;
1928
1932
  readonly content_type?: string | null | undefined;
1929
- readonly attachment_id?: SnowflakeType | null | undefined;
1933
+ readonly attachment_id?: SnowflakeType | undefined;
1930
1934
  }
1931
1935
  export interface FileComponentResponse {
1932
1936
  readonly type: 13;
@@ -1988,12 +1992,6 @@ export interface ContainerComponentResponse {
1988
1992
  readonly components: ReadonlyArray<ActionRowComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
1989
1993
  readonly spoiler: boolean;
1990
1994
  }
1991
- export interface ResolvedObjectsResponse {
1992
- readonly users: Record<string, unknown>;
1993
- readonly members: Record<string, unknown>;
1994
- readonly channels: Record<string, unknown>;
1995
- readonly roles: Record<string, unknown>;
1996
- }
1997
1995
  export declare const StickerTypes: {
1998
1996
  /**
1999
1997
  * an official sticker in a pack, part of Nitro or in a removed purchasable pack
@@ -2021,7 +2019,7 @@ export interface GuildStickerResponse {
2021
2019
  readonly description?: string | null | undefined;
2022
2020
  readonly available: boolean;
2023
2021
  readonly guild_id: SnowflakeType;
2024
- readonly user?: UserResponse | null | undefined;
2022
+ readonly user?: UserResponse | undefined;
2025
2023
  }
2026
2024
  export interface StandardStickerResponse {
2027
2025
  readonly id: SnowflakeType;
@@ -2050,9 +2048,9 @@ export interface BasicApplicationResponse {
2050
2048
  readonly icon?: string | null | undefined;
2051
2049
  readonly description: string;
2052
2050
  readonly type?: ApplicationTypes | null | undefined;
2053
- readonly cover_image?: string | null | undefined;
2054
- readonly primary_sku_id?: SnowflakeType | null | undefined;
2055
- readonly bot?: UserResponse | null | undefined;
2051
+ readonly cover_image?: string | undefined;
2052
+ readonly primary_sku_id?: SnowflakeType | undefined;
2053
+ readonly bot?: UserResponse | undefined;
2056
2054
  }
2057
2055
  export declare const InteractionTypes: {
2058
2056
  /**
@@ -2081,15 +2079,15 @@ export interface MessageInteractionResponse {
2081
2079
  readonly id: SnowflakeType;
2082
2080
  readonly type: InteractionTypes;
2083
2081
  readonly name: string;
2084
- readonly user?: UserResponse | null | undefined;
2085
- readonly name_localized?: string | null | undefined;
2082
+ readonly user?: UserResponse | undefined;
2083
+ readonly name_localized?: string | undefined;
2086
2084
  }
2087
2085
  export type MessageReferenceType = 0;
2088
2086
  export interface MessageReferenceResponse {
2089
- readonly type?: MessageReferenceType | null | undefined;
2087
+ readonly type: MessageReferenceType;
2090
2088
  readonly channel_id: SnowflakeType;
2091
- readonly message_id?: SnowflakeType | null | undefined;
2092
- readonly guild_id?: SnowflakeType | null | undefined;
2089
+ readonly message_id?: SnowflakeType | undefined;
2090
+ readonly guild_id?: SnowflakeType | undefined;
2093
2091
  }
2094
2092
  export interface MessageMentionChannelResponse {
2095
2093
  readonly id: SnowflakeType;
@@ -2110,16 +2108,22 @@ export interface GuildProductPurchaseResponse {
2110
2108
  }
2111
2109
  export interface PurchaseNotificationResponse {
2112
2110
  readonly type: PurchaseType;
2113
- readonly guild_product_purchase?: GuildProductPurchaseResponse | null | undefined;
2111
+ readonly guild_product_purchase?: GuildProductPurchaseResponse | undefined;
2112
+ }
2113
+ export interface ResolvedObjectsResponse {
2114
+ readonly users?: Record<string, unknown> | null | undefined;
2115
+ readonly members?: Record<string, unknown> | null | undefined;
2116
+ readonly channels?: Record<string, unknown> | null | undefined;
2117
+ readonly roles?: Record<string, unknown> | null | undefined;
2114
2118
  }
2115
2119
  export interface MessageReactionEmojiResponse {
2116
2120
  readonly id?: SnowflakeType | null | undefined;
2117
2121
  readonly name?: string | null | undefined;
2118
- readonly animated?: boolean | null | undefined;
2122
+ readonly animated?: boolean | undefined;
2119
2123
  }
2120
2124
  export interface PollMediaResponse {
2121
- readonly text?: string | null | undefined;
2122
- readonly emoji?: MessageReactionEmojiResponse | null | undefined;
2125
+ readonly text?: string | undefined;
2126
+ readonly emoji?: MessageReactionEmojiResponse | undefined;
2123
2127
  }
2124
2128
  export interface PollAnswerResponse {
2125
2129
  readonly answer_id: number;
@@ -2129,10 +2133,10 @@ export type PollLayoutTypes = number;
2129
2133
  export interface PollResultsEntryResponse {
2130
2134
  readonly id: number;
2131
2135
  readonly count: number;
2132
- readonly me_voted?: boolean | null | undefined;
2136
+ readonly me_voted: boolean;
2133
2137
  }
2134
2138
  export interface PollResultsResponse {
2135
- readonly answer_counts?: ReadonlyArray<PollResultsEntryResponse> | null | undefined;
2139
+ readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>;
2136
2140
  readonly is_finalized: boolean;
2137
2141
  }
2138
2142
  export interface PollResponse {
@@ -2143,29 +2147,58 @@ export interface PollResponse {
2143
2147
  readonly layout_type: PollLayoutTypes;
2144
2148
  readonly results: PollResultsResponse;
2145
2149
  }
2150
+ export declare const MessageShareCustomUserThemeBaseTheme: {
2151
+ /**
2152
+ * No base theme
2153
+ */
2154
+ readonly UNSET: 0;
2155
+ /**
2156
+ * Dark base theme
2157
+ */
2158
+ readonly DARK: 1;
2159
+ /**
2160
+ * Light base theme
2161
+ */
2162
+ readonly LIGHT: 2;
2163
+ /**
2164
+ * Darker base theme
2165
+ */
2166
+ readonly DARKER: 3;
2167
+ /**
2168
+ * Midnight base theme
2169
+ */
2170
+ readonly MIDNIGHT: 4;
2171
+ };
2172
+ export type MessageShareCustomUserThemeBaseTheme = (typeof MessageShareCustomUserThemeBaseTheme)[keyof typeof MessageShareCustomUserThemeBaseTheme];
2173
+ export interface CustomClientThemeResponse {
2174
+ readonly colors: ReadonlyArray<string>;
2175
+ readonly gradient_angle: number;
2176
+ readonly base_mix: number;
2177
+ readonly base_theme: MessageShareCustomUserThemeBaseTheme;
2178
+ }
2146
2179
  export interface ApplicationCommandInteractionMetadataResponse {
2147
2180
  readonly id: SnowflakeType;
2148
2181
  readonly type: 2;
2149
- readonly user?: UserResponse | null | undefined;
2182
+ readonly user?: UserResponse | undefined;
2150
2183
  readonly authorizing_integration_owners: Record<string, unknown>;
2151
- readonly original_response_message_id?: SnowflakeType | null | undefined;
2152
- readonly target_user?: UserResponse | null | undefined;
2153
- readonly target_message_id?: SnowflakeType | null | undefined;
2184
+ readonly original_response_message_id?: SnowflakeType | undefined;
2185
+ readonly target_user?: UserResponse | undefined;
2186
+ readonly target_message_id?: SnowflakeType | undefined;
2154
2187
  }
2155
2188
  export interface MessageComponentInteractionMetadataResponse {
2156
2189
  readonly id: SnowflakeType;
2157
2190
  readonly type: 3;
2158
- readonly user?: UserResponse | null | undefined;
2191
+ readonly user?: UserResponse | undefined;
2159
2192
  readonly authorizing_integration_owners: Record<string, unknown>;
2160
- readonly original_response_message_id?: SnowflakeType | null | undefined;
2193
+ readonly original_response_message_id?: SnowflakeType | undefined;
2161
2194
  readonly interacted_message_id: SnowflakeType;
2162
2195
  }
2163
2196
  export interface ModalSubmitInteractionMetadataResponse {
2164
2197
  readonly id: SnowflakeType;
2165
2198
  readonly type: 5;
2166
- readonly user?: UserResponse | null | undefined;
2199
+ readonly user?: UserResponse | undefined;
2167
2200
  readonly authorizing_integration_owners: Record<string, unknown>;
2168
- readonly original_response_message_id?: SnowflakeType | null | undefined;
2201
+ readonly original_response_message_id?: SnowflakeType | undefined;
2169
2202
  readonly triggering_interaction_metadata: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse;
2170
2203
  }
2171
2204
  export interface MinimalContentMessageResponse {
@@ -2179,12 +2212,11 @@ export interface MinimalContentMessageResponse {
2179
2212
  readonly edited_timestamp?: string | null | undefined;
2180
2213
  readonly flags: number;
2181
2214
  readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2182
- readonly resolved?: ResolvedObjectsResponse | null | undefined;
2183
- readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | null | undefined;
2184
- readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | null | undefined;
2215
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
2216
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
2185
2217
  }
2186
2218
  export interface MessageSnapshotResponse {
2187
- readonly message?: MinimalContentMessageResponse | null | undefined;
2219
+ readonly message: MinimalContentMessageResponse;
2188
2220
  }
2189
2221
  export interface MessageReactionCountDetailsResponse {
2190
2222
  readonly burst: number;
@@ -2209,31 +2241,32 @@ export interface BasicMessageResponse {
2209
2241
  readonly edited_timestamp?: string | null | undefined;
2210
2242
  readonly flags: number;
2211
2243
  readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2212
- readonly resolved?: ResolvedObjectsResponse | null | undefined;
2213
- readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | null | undefined;
2214
- readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | null | undefined;
2244
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
2245
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
2215
2246
  readonly id: SnowflakeType;
2216
2247
  readonly channel_id: SnowflakeType;
2217
2248
  readonly author: UserResponse;
2218
2249
  readonly pinned: boolean;
2219
2250
  readonly mention_everyone: boolean;
2220
2251
  readonly tts: boolean;
2221
- readonly call?: MessageCallResponse | null | undefined;
2222
- readonly activity?: MessageActivityResponse | null | undefined;
2223
- readonly application?: BasicApplicationResponse | null | undefined;
2224
- readonly application_id?: SnowflakeType | null | undefined;
2225
- readonly interaction?: MessageInteractionResponse | null | undefined;
2252
+ readonly call?: MessageCallResponse | undefined;
2253
+ readonly activity?: MessageActivityResponse | undefined;
2254
+ readonly application?: BasicApplicationResponse | undefined;
2255
+ readonly application_id?: SnowflakeType | undefined;
2256
+ readonly interaction?: MessageInteractionResponse | undefined;
2226
2257
  readonly nonce?: number | string | null | undefined;
2227
- readonly webhook_id?: SnowflakeType | null | undefined;
2228
- readonly message_reference?: MessageReferenceResponse | null | undefined;
2229
- readonly thread?: ThreadResponse | null | undefined;
2230
- readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | null | undefined;
2231
- readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | null | undefined;
2232
- readonly purchase_notification?: PurchaseNotificationResponse | null | undefined;
2233
- readonly position?: number | null | undefined;
2234
- readonly poll?: PollResponse | null | undefined;
2235
- readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | null | undefined;
2236
- readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | null | undefined;
2258
+ readonly webhook_id?: SnowflakeType | undefined;
2259
+ readonly message_reference?: MessageReferenceResponse | undefined;
2260
+ readonly thread?: ThreadResponse | undefined;
2261
+ readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | undefined;
2262
+ readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | undefined;
2263
+ readonly purchase_notification?: PurchaseNotificationResponse | undefined;
2264
+ readonly position?: number | undefined;
2265
+ readonly resolved?: ResolvedObjectsResponse | undefined;
2266
+ readonly poll?: PollResponse | undefined;
2267
+ readonly shared_client_theme?: CustomClientThemeResponse | null | undefined;
2268
+ readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
2269
+ readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
2237
2270
  }
2238
2271
  export interface MessageResponse {
2239
2272
  readonly type: MessageType;
@@ -2246,32 +2279,33 @@ export interface MessageResponse {
2246
2279
  readonly edited_timestamp?: string | null | undefined;
2247
2280
  readonly flags: number;
2248
2281
  readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2249
- readonly resolved?: ResolvedObjectsResponse | null | undefined;
2250
- readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | null | undefined;
2251
- readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | null | undefined;
2282
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
2283
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
2252
2284
  readonly id: SnowflakeType;
2253
2285
  readonly channel_id: SnowflakeType;
2254
2286
  readonly author: UserResponse;
2255
2287
  readonly pinned: boolean;
2256
2288
  readonly mention_everyone: boolean;
2257
2289
  readonly tts: boolean;
2258
- readonly call?: MessageCallResponse | null | undefined;
2259
- readonly activity?: MessageActivityResponse | null | undefined;
2260
- readonly application?: BasicApplicationResponse | null | undefined;
2261
- readonly application_id?: SnowflakeType | null | undefined;
2262
- readonly interaction?: MessageInteractionResponse | null | undefined;
2290
+ readonly call?: MessageCallResponse | undefined;
2291
+ readonly activity?: MessageActivityResponse | undefined;
2292
+ readonly application?: BasicApplicationResponse | undefined;
2293
+ readonly application_id?: SnowflakeType | undefined;
2294
+ readonly interaction?: MessageInteractionResponse | undefined;
2263
2295
  readonly nonce?: number | string | null | undefined;
2264
- readonly webhook_id?: SnowflakeType | null | undefined;
2265
- readonly message_reference?: MessageReferenceResponse | null | undefined;
2266
- readonly thread?: ThreadResponse | null | undefined;
2267
- readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | null | undefined;
2268
- readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | null | undefined;
2269
- readonly purchase_notification?: PurchaseNotificationResponse | null | undefined;
2270
- readonly position?: number | null | undefined;
2271
- readonly poll?: PollResponse | null | undefined;
2272
- readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | null | undefined;
2273
- readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | null | undefined;
2274
- readonly reactions?: ReadonlyArray<MessageReactionResponse> | null | undefined;
2296
+ readonly webhook_id?: SnowflakeType | undefined;
2297
+ readonly message_reference?: MessageReferenceResponse | undefined;
2298
+ readonly thread?: ThreadResponse | undefined;
2299
+ readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | undefined;
2300
+ readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | undefined;
2301
+ readonly purchase_notification?: PurchaseNotificationResponse | undefined;
2302
+ readonly position?: number | undefined;
2303
+ readonly resolved?: ResolvedObjectsResponse | undefined;
2304
+ readonly poll?: PollResponse | undefined;
2305
+ readonly shared_client_theme?: CustomClientThemeResponse | null | undefined;
2306
+ readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
2307
+ readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
2308
+ readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
2275
2309
  readonly referenced_message?: BasicMessageResponse | null | undefined;
2276
2310
  }
2277
2311
  export type ListMessages200 = ReadonlyArray<MessageResponse>;
@@ -2362,6 +2396,7 @@ export interface ComponentEmojiForRequest {
2362
2396
  }
2363
2397
  export interface ButtonComponentForMessageRequest {
2364
2398
  readonly type: 2;
2399
+ readonly id?: number | null | undefined;
2365
2400
  readonly custom_id?: string | null | undefined;
2366
2401
  readonly style: ButtonStyleTypes;
2367
2402
  readonly label?: string | null | undefined;
@@ -2376,11 +2411,13 @@ export interface ChannelSelectDefaultValue {
2376
2411
  }
2377
2412
  export interface ChannelSelectComponentForMessageRequest {
2378
2413
  readonly type: 8;
2414
+ readonly id?: number | null | undefined;
2379
2415
  readonly custom_id: string;
2380
2416
  readonly placeholder?: string | null | undefined;
2381
2417
  readonly min_values?: number | null | undefined;
2382
2418
  readonly max_values?: number | null | undefined;
2383
2419
  readonly disabled?: boolean | null | undefined;
2420
+ readonly required?: boolean | null | undefined;
2384
2421
  readonly default_values?: ReadonlyArray<ChannelSelectDefaultValue> | null | undefined;
2385
2422
  readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
2386
2423
  }
@@ -2394,20 +2431,24 @@ export interface UserSelectDefaultValue {
2394
2431
  }
2395
2432
  export interface MentionableSelectComponentForMessageRequest {
2396
2433
  readonly type: 7;
2434
+ readonly id?: number | null | undefined;
2397
2435
  readonly custom_id: string;
2398
2436
  readonly placeholder?: string | null | undefined;
2399
2437
  readonly min_values?: number | null | undefined;
2400
2438
  readonly max_values?: number | null | undefined;
2401
2439
  readonly disabled?: boolean | null | undefined;
2440
+ readonly required?: boolean | null | undefined;
2402
2441
  readonly default_values?: ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue> | null | undefined;
2403
2442
  }
2404
2443
  export interface RoleSelectComponentForMessageRequest {
2405
2444
  readonly type: 6;
2445
+ readonly id?: number | null | undefined;
2406
2446
  readonly custom_id: string;
2407
2447
  readonly placeholder?: string | null | undefined;
2408
2448
  readonly min_values?: number | null | undefined;
2409
2449
  readonly max_values?: number | null | undefined;
2410
2450
  readonly disabled?: boolean | null | undefined;
2451
+ readonly required?: boolean | null | undefined;
2411
2452
  readonly default_values?: ReadonlyArray<RoleSelectDefaultValue> | null | undefined;
2412
2453
  }
2413
2454
  export interface StringSelectOptionForRequest {
@@ -2419,24 +2460,29 @@ export interface StringSelectOptionForRequest {
2419
2460
  }
2420
2461
  export interface StringSelectComponentForMessageRequest {
2421
2462
  readonly type: 3;
2463
+ readonly id?: number | null | undefined;
2422
2464
  readonly custom_id: string;
2423
2465
  readonly placeholder?: string | null | undefined;
2424
2466
  readonly min_values?: number | null | undefined;
2425
2467
  readonly max_values?: number | null | undefined;
2426
2468
  readonly disabled?: boolean | null | undefined;
2469
+ readonly required?: boolean | null | undefined;
2427
2470
  readonly options: ReadonlyArray<StringSelectOptionForRequest>;
2428
2471
  }
2429
2472
  export interface UserSelectComponentForMessageRequest {
2430
2473
  readonly type: 5;
2474
+ readonly id?: number | null | undefined;
2431
2475
  readonly custom_id: string;
2432
2476
  readonly placeholder?: string | null | undefined;
2433
2477
  readonly min_values?: number | null | undefined;
2434
2478
  readonly max_values?: number | null | undefined;
2435
2479
  readonly disabled?: boolean | null | undefined;
2480
+ readonly required?: boolean | null | undefined;
2436
2481
  readonly default_values?: ReadonlyArray<UserSelectDefaultValue> | null | undefined;
2437
2482
  }
2438
2483
  export interface ActionRowComponentForMessageRequest {
2439
2484
  readonly type: 1;
2485
+ readonly id?: number | null | undefined;
2440
2486
  readonly components: ReadonlyArray<ButtonComponentForMessageRequest | ChannelSelectComponentForMessageRequest | MentionableSelectComponentForMessageRequest | RoleSelectComponentForMessageRequest | StringSelectComponentForMessageRequest | UserSelectComponentForMessageRequest>;
2441
2487
  }
2442
2488
  export interface UnfurledMediaRequestWithAttachmentReferenceRequired {
@@ -2444,6 +2490,7 @@ export interface UnfurledMediaRequestWithAttachmentReferenceRequired {
2444
2490
  }
2445
2491
  export interface FileComponentForMessageRequest {
2446
2492
  readonly type: 13;
2493
+ readonly id?: number | null | undefined;
2447
2494
  readonly spoiler?: boolean | null | undefined;
2448
2495
  readonly file: UnfurledMediaRequestWithAttachmentReferenceRequired;
2449
2496
  }
@@ -2457,30 +2504,36 @@ export interface MediaGalleryItemRequest {
2457
2504
  }
2458
2505
  export interface MediaGalleryComponentForMessageRequest {
2459
2506
  readonly type: 12;
2507
+ readonly id?: number | null | undefined;
2460
2508
  readonly items: ReadonlyArray<MediaGalleryItemRequest>;
2461
2509
  }
2462
2510
  export interface TextDisplayComponentForMessageRequest {
2463
2511
  readonly type: 10;
2512
+ readonly id?: number | null | undefined;
2464
2513
  readonly content: string;
2465
2514
  }
2466
2515
  export interface ThumbnailComponentForMessageRequest {
2467
2516
  readonly type: 11;
2517
+ readonly id?: number | null | undefined;
2468
2518
  readonly description?: string | null | undefined;
2469
2519
  readonly spoiler?: boolean | null | undefined;
2470
2520
  readonly media: UnfurledMediaRequest;
2471
2521
  }
2472
2522
  export interface SectionComponentForMessageRequest {
2473
2523
  readonly type: 9;
2524
+ readonly id?: number | null | undefined;
2474
2525
  readonly components: ReadonlyArray<TextDisplayComponentForMessageRequest>;
2475
2526
  readonly accessory: ButtonComponentForMessageRequest | ThumbnailComponentForMessageRequest;
2476
2527
  }
2477
2528
  export interface SeparatorComponentForMessageRequest {
2478
2529
  readonly type: 14;
2530
+ readonly id?: number | null | undefined;
2479
2531
  readonly spacing?: MessageComponentSeparatorSpacingSize | null | undefined;
2480
2532
  readonly divider?: boolean | null | undefined;
2481
2533
  }
2482
2534
  export interface ContainerComponentForMessageRequest {
2483
2535
  readonly type: 17;
2536
+ readonly id?: number | null | undefined;
2484
2537
  readonly accent_color?: number | null | undefined;
2485
2538
  readonly components: ReadonlyArray<ActionRowComponentForMessageRequest | FileComponentForMessageRequest | MediaGalleryComponentForMessageRequest | SectionComponentForMessageRequest | SeparatorComponentForMessageRequest | TextDisplayComponentForMessageRequest>;
2486
2539
  readonly spoiler?: boolean | null | undefined;
@@ -2522,6 +2575,12 @@ export interface PollCreateRequest {
2522
2575
  readonly layout_type?: PollLayoutTypes | null | undefined;
2523
2576
  readonly duration?: number | null | undefined;
2524
2577
  }
2578
+ export interface CustomClientThemeShareRequest {
2579
+ readonly colors: ReadonlyArray<string>;
2580
+ readonly gradient_angle: number;
2581
+ readonly base_mix: number;
2582
+ readonly base_theme?: MessageShareCustomUserThemeBaseTheme | null | undefined;
2583
+ }
2525
2584
  export interface ConfettiPotionCreateRequest {
2526
2585
  }
2527
2586
  export interface MessageReferenceRequest {
@@ -2540,6 +2599,7 @@ export interface MessageCreateRequest {
2540
2599
  readonly flags?: number | null | undefined;
2541
2600
  readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
2542
2601
  readonly poll?: PollCreateRequest | null | undefined;
2602
+ readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
2543
2603
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
2544
2604
  readonly message_reference?: MessageReferenceRequest | null | undefined;
2545
2605
  readonly nonce?: number | string | null | undefined;
@@ -2558,7 +2618,7 @@ export interface PinnedMessageResponse {
2558
2618
  readonly message: MessageResponse;
2559
2619
  }
2560
2620
  export interface PinnedMessagesResponse {
2561
- readonly items?: ReadonlyArray<PinnedMessageResponse> | null | undefined;
2621
+ readonly items: ReadonlyArray<PinnedMessageResponse>;
2562
2622
  readonly has_more: boolean;
2563
2623
  }
2564
2624
  export interface MessageEditRequestPartial {
@@ -2603,7 +2663,7 @@ export interface GetAnswerVotersParams {
2603
2663
  readonly limit?: number | undefined;
2604
2664
  }
2605
2665
  export interface PollAnswerDetailsResponse {
2606
- readonly users?: ReadonlyArray<UserResponse> | null | undefined;
2666
+ readonly users: ReadonlyArray<UserResponse>;
2607
2667
  }
2608
2668
  export interface AddGroupDmUserRequest {
2609
2669
  readonly access_token?: string | null | undefined;
@@ -2632,6 +2692,7 @@ export interface BaseCreateMessageCreateRequest {
2632
2692
  readonly flags?: number | null | undefined;
2633
2693
  readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
2634
2694
  readonly poll?: PollCreateRequest | null | undefined;
2695
+ readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
2635
2696
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
2636
2697
  }
2637
2698
  export interface CreateForumThreadRequest {
@@ -2658,19 +2719,19 @@ export interface CreatedThreadResponse {
2658
2719
  readonly guild_id: SnowflakeType;
2659
2720
  readonly name: string;
2660
2721
  readonly parent_id?: SnowflakeType | null | undefined;
2661
- readonly rate_limit_per_user?: number | null | undefined;
2662
- readonly bitrate?: number | null | undefined;
2663
- readonly user_limit?: number | null | undefined;
2722
+ readonly rate_limit_per_user?: number | undefined;
2723
+ readonly bitrate?: number | undefined;
2724
+ readonly user_limit?: number | undefined;
2664
2725
  readonly rtc_region?: string | null | undefined;
2665
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
2726
+ readonly video_quality_mode?: VideoQualityModes | undefined;
2666
2727
  readonly permissions?: string | null | undefined;
2667
2728
  readonly owner_id: SnowflakeType;
2668
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined;
2729
+ readonly thread_metadata: ThreadMetadataResponse;
2669
2730
  readonly message_count: number;
2670
2731
  readonly member_count: number;
2671
2732
  readonly total_message_sent: number;
2672
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined;
2673
- readonly member?: ThreadMemberResponse | null | undefined;
2733
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined;
2734
+ readonly member?: ThreadMemberResponse | undefined;
2674
2735
  }
2675
2736
  export interface ListPrivateArchivedThreadsParams {
2676
2737
  readonly before?: string | undefined;
@@ -2679,8 +2740,8 @@ export interface ListPrivateArchivedThreadsParams {
2679
2740
  export interface ThreadsResponse {
2680
2741
  readonly threads: ReadonlyArray<ThreadResponse>;
2681
2742
  readonly members: ReadonlyArray<ThreadMemberResponse>;
2682
- readonly has_more?: boolean | null | undefined;
2683
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined;
2743
+ readonly has_more: boolean;
2744
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined;
2684
2745
  }
2685
2746
  export interface ListPublicArchivedThreadsParams {
2686
2747
  readonly before?: string | undefined;
@@ -2714,9 +2775,9 @@ export interface ThreadSearchParams {
2714
2775
  export interface ThreadSearchResponse {
2715
2776
  readonly threads: ReadonlyArray<ThreadResponse>;
2716
2777
  readonly members: ReadonlyArray<ThreadMemberResponse>;
2717
- readonly has_more?: boolean | null | undefined;
2718
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined;
2719
- readonly total_results?: number | null | undefined;
2778
+ readonly has_more: boolean;
2779
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined;
2780
+ readonly total_results: number;
2720
2781
  }
2721
2782
  export interface TypingIndicatorResponse {
2722
2783
  }
@@ -2747,7 +2808,7 @@ export interface ApplicationIncomingWebhookResponse {
2747
2808
  readonly id: SnowflakeType;
2748
2809
  readonly name: string;
2749
2810
  readonly type: 3;
2750
- readonly user?: UserResponse | null | undefined;
2811
+ readonly user?: UserResponse | undefined;
2751
2812
  }
2752
2813
  export interface WebhookSourceGuildResponse {
2753
2814
  readonly id: SnowflakeType;
@@ -2766,9 +2827,9 @@ export interface ChannelFollowerWebhookResponse {
2766
2827
  readonly id: SnowflakeType;
2767
2828
  readonly name: string;
2768
2829
  readonly type: 2;
2769
- readonly user?: UserResponse | null | undefined;
2770
- readonly source_guild?: WebhookSourceGuildResponse | null | undefined;
2771
- readonly source_channel?: WebhookSourceChannelResponse | null | undefined;
2830
+ readonly user?: UserResponse | undefined;
2831
+ readonly source_guild?: WebhookSourceGuildResponse | undefined;
2832
+ readonly source_channel?: WebhookSourceChannelResponse | undefined;
2772
2833
  }
2773
2834
  export interface GuildIncomingWebhookResponse {
2774
2835
  readonly application_id?: SnowflakeType | null | undefined;
@@ -2778,9 +2839,9 @@ export interface GuildIncomingWebhookResponse {
2778
2839
  readonly id: SnowflakeType;
2779
2840
  readonly name: string;
2780
2841
  readonly type: 1;
2781
- readonly user?: UserResponse | null | undefined;
2782
- readonly token?: string | null | undefined;
2783
- readonly url?: string | null | undefined;
2842
+ readonly user?: UserResponse | undefined;
2843
+ readonly token?: string | undefined;
2844
+ readonly url?: string | undefined;
2784
2845
  }
2785
2846
  export type ListChannelWebhooks200 = ReadonlyArray<ApplicationIncomingWebhookResponse | ChannelFollowerWebhookResponse | GuildIncomingWebhookResponse>;
2786
2847
  export interface CreateWebhookRequest {
@@ -2974,17 +3035,24 @@ export declare const AfkTimeouts: {
2974
3035
  readonly ONE_HOUR: 3600;
2975
3036
  };
2976
3037
  export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts];
3038
+ export interface GuildTemplateRoleColorsResponse {
3039
+ readonly primary_color: number;
3040
+ readonly secondary_color?: number | null | undefined;
3041
+ readonly tertiary_color?: number | null | undefined;
3042
+ }
2977
3043
  export interface GuildTemplateRoleResponse {
2978
3044
  readonly id: number;
2979
3045
  readonly name: string;
2980
3046
  readonly permissions: string;
2981
3047
  readonly color: number;
3048
+ readonly colors?: GuildTemplateRoleColorsResponse | null | undefined;
2982
3049
  readonly hoist: boolean;
2983
3050
  readonly mentionable: boolean;
2984
3051
  readonly icon?: string | null | undefined;
2985
3052
  readonly unicode_emoji?: string | null | undefined;
2986
3053
  }
2987
3054
  export interface GuildTemplateChannelTags {
3055
+ readonly id?: number | null | undefined;
2988
3056
  readonly name: string;
2989
3057
  readonly emoji_id?: SnowflakeType | null | undefined;
2990
3058
  readonly emoji_name?: string | null | undefined;
@@ -3047,15 +3115,15 @@ export interface GetGuildParams {
3047
3115
  readonly with_counts?: boolean | undefined;
3048
3116
  }
3049
3117
  export interface GuildRoleColorsResponse {
3050
- readonly primary_color?: number | null | undefined;
3118
+ readonly primary_color: number;
3051
3119
  readonly secondary_color?: number | null | undefined;
3052
3120
  readonly tertiary_color?: number | null | undefined;
3053
3121
  }
3054
3122
  export interface GuildRoleTagsResponse {
3055
3123
  readonly premium_subscriber?: null | undefined;
3056
- readonly bot_id?: SnowflakeType | null | undefined;
3057
- readonly integration_id?: SnowflakeType | null | undefined;
3058
- readonly subscription_listing_id?: SnowflakeType | null | undefined;
3124
+ readonly bot_id?: SnowflakeType | undefined;
3125
+ readonly integration_id?: SnowflakeType | undefined;
3126
+ readonly subscription_listing_id?: SnowflakeType | undefined;
3059
3127
  readonly available_for_purchase?: null | undefined;
3060
3128
  readonly guild_connections?: null | undefined;
3061
3129
  }
@@ -3066,13 +3134,13 @@ export interface GuildRoleResponse {
3066
3134
  readonly permissions: string;
3067
3135
  readonly position: number;
3068
3136
  readonly color: number;
3069
- readonly colors?: GuildRoleColorsResponse | null | undefined;
3137
+ readonly colors: GuildRoleColorsResponse;
3070
3138
  readonly hoist: boolean;
3071
3139
  readonly managed: boolean;
3072
3140
  readonly mentionable: boolean;
3073
3141
  readonly icon?: string | null | undefined;
3074
3142
  readonly unicode_emoji?: string | null | undefined;
3075
- readonly tags?: GuildRoleTagsResponse | null | undefined;
3143
+ readonly tags?: GuildRoleTagsResponse | undefined;
3076
3144
  readonly flags: number;
3077
3145
  }
3078
3146
  export declare const GuildMFALevel: {
@@ -3130,9 +3198,9 @@ export interface GuildWithCountsResponse {
3130
3198
  readonly mfa_level: GuildMFALevel;
3131
3199
  readonly explicit_content_filter: GuildExplicitContentFilterTypes;
3132
3200
  readonly max_presences?: number | null | undefined;
3133
- readonly max_members?: number | null | undefined;
3134
- readonly max_stage_video_channel_users?: number | null | undefined;
3135
- readonly max_video_channel_users?: number | null | undefined;
3201
+ readonly max_members: number;
3202
+ readonly max_stage_video_channel_users: number;
3203
+ readonly max_video_channel_users: number;
3136
3204
  readonly vanity_url_code?: string | null | undefined;
3137
3205
  readonly premium_tier: PremiumGuildTiers;
3138
3206
  readonly premium_subscription_count: number;
@@ -3197,9 +3265,9 @@ export interface GuildResponse {
3197
3265
  readonly mfa_level: GuildMFALevel;
3198
3266
  readonly explicit_content_filter: GuildExplicitContentFilterTypes;
3199
3267
  readonly max_presences?: number | null | undefined;
3200
- readonly max_members?: number | null | undefined;
3201
- readonly max_stage_video_channel_users?: number | null | undefined;
3202
- readonly max_video_channel_users?: number | null | undefined;
3268
+ readonly max_members: number;
3269
+ readonly max_stage_video_channel_users: number;
3270
+ readonly max_video_channel_users: number;
3203
3271
  readonly vanity_url_code?: string | null | undefined;
3204
3272
  readonly premium_tier: PremiumGuildTiers;
3205
3273
  readonly premium_subscription_count: number;
@@ -3213,14 +3281,6 @@ export interface GuildResponse {
3213
3281
  readonly emojis: ReadonlyArray<EmojiResponse>;
3214
3282
  readonly stickers: ReadonlyArray<GuildStickerResponse>;
3215
3283
  }
3216
- export interface ListGuildAuditLogEntriesParams {
3217
- readonly user_id?: SnowflakeType | undefined;
3218
- readonly target_id?: SnowflakeType | undefined;
3219
- readonly action_type?: number | undefined;
3220
- readonly before?: SnowflakeType | undefined;
3221
- readonly after?: SnowflakeType | undefined;
3222
- readonly limit?: number | undefined;
3223
- }
3224
3284
  export declare const AuditLogActionTypes: {
3225
3285
  readonly GUILD_UPDATE: 1;
3226
3286
  readonly CHANNEL_CREATE: 10;
@@ -3297,6 +3357,14 @@ export declare const AuditLogActionTypes: {
3297
3357
  readonly GUILD_PROFILE_UPDATE: 211;
3298
3358
  };
3299
3359
  export type AuditLogActionTypes = (typeof AuditLogActionTypes)[keyof typeof AuditLogActionTypes];
3360
+ export interface ListGuildAuditLogEntriesParams {
3361
+ readonly user_id?: SnowflakeType | undefined;
3362
+ readonly target_id?: SnowflakeType | undefined;
3363
+ readonly action_type?: AuditLogActionTypes | undefined;
3364
+ readonly before?: SnowflakeType | undefined;
3365
+ readonly after?: SnowflakeType | undefined;
3366
+ readonly limit?: number | undefined;
3367
+ }
3300
3368
  export interface AuditLogObjectChangeResponse {
3301
3369
  readonly key?: string | null | undefined;
3302
3370
  }
@@ -3305,9 +3373,9 @@ export interface AuditLogEntryResponse {
3305
3373
  readonly action_type: AuditLogActionTypes;
3306
3374
  readonly user_id?: SnowflakeType | null | undefined;
3307
3375
  readonly target_id?: SnowflakeType | null | undefined;
3308
- readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | null | undefined;
3309
- readonly options?: Record<string, unknown> | null | undefined;
3310
- readonly reason?: string | null | undefined;
3376
+ readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined;
3377
+ readonly options?: Record<string, unknown> | undefined;
3378
+ readonly reason?: string | undefined;
3311
3379
  }
3312
3380
  export declare const IntegrationTypes: {
3313
3381
  readonly DISCORD: "discord";
@@ -3324,20 +3392,20 @@ export interface PartialDiscordIntegrationResponse {
3324
3392
  readonly id: SnowflakeType;
3325
3393
  readonly type: "discord";
3326
3394
  readonly name?: string | null | undefined;
3327
- readonly account?: AccountResponse | null | undefined;
3395
+ readonly account: AccountResponse;
3328
3396
  readonly application_id: SnowflakeType;
3329
3397
  }
3330
3398
  export interface PartialExternalConnectionIntegrationResponse {
3331
3399
  readonly id: SnowflakeType;
3332
3400
  readonly type: "twitch" | "youtube";
3333
3401
  readonly name?: string | null | undefined;
3334
- readonly account?: AccountResponse | null | undefined;
3402
+ readonly account: AccountResponse;
3335
3403
  }
3336
3404
  export interface PartialGuildSubscriptionIntegrationResponse {
3337
3405
  readonly id: SnowflakeType;
3338
3406
  readonly type: "guild_subscription";
3339
3407
  readonly name?: string | null | undefined;
3340
- readonly account?: AccountResponse | null | undefined;
3408
+ readonly account: AccountResponse;
3341
3409
  }
3342
3410
  export interface EntityMetadataExternalResponse {
3343
3411
  readonly location: string;
@@ -3349,14 +3417,14 @@ export interface ExternalScheduledEventResponse {
3349
3417
  readonly description?: string | null | undefined;
3350
3418
  readonly channel_id?: SnowflakeType | null | undefined;
3351
3419
  readonly creator_id?: SnowflakeType | null | undefined;
3352
- readonly creator?: UserResponse | null | undefined;
3420
+ readonly creator?: UserResponse | undefined;
3353
3421
  readonly image?: string | null | undefined;
3354
3422
  readonly scheduled_start_time: string;
3355
3423
  readonly scheduled_end_time?: string | null | undefined;
3356
3424
  readonly status: GuildScheduledEventStatuses;
3357
3425
  readonly entity_type: 3;
3358
3426
  readonly entity_id?: SnowflakeType | null | undefined;
3359
- readonly user_count?: number | null | undefined;
3427
+ readonly user_count?: number | undefined;
3360
3428
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
3361
3429
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
3362
3430
  readonly entity_metadata: EntityMetadataExternalResponse;
@@ -3370,14 +3438,14 @@ export interface StageScheduledEventResponse {
3370
3438
  readonly description?: string | null | undefined;
3371
3439
  readonly channel_id?: SnowflakeType | null | undefined;
3372
3440
  readonly creator_id?: SnowflakeType | null | undefined;
3373
- readonly creator?: UserResponse | null | undefined;
3441
+ readonly creator?: UserResponse | undefined;
3374
3442
  readonly image?: string | null | undefined;
3375
3443
  readonly scheduled_start_time: string;
3376
3444
  readonly scheduled_end_time?: string | null | undefined;
3377
3445
  readonly status: GuildScheduledEventStatuses;
3378
3446
  readonly entity_type: 1;
3379
3447
  readonly entity_id?: SnowflakeType | null | undefined;
3380
- readonly user_count?: number | null | undefined;
3448
+ readonly user_count?: number | undefined;
3381
3449
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
3382
3450
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
3383
3451
  readonly entity_metadata?: EntityMetadataStageInstanceResponse | null | undefined;
@@ -3391,14 +3459,14 @@ export interface VoiceScheduledEventResponse {
3391
3459
  readonly description?: string | null | undefined;
3392
3460
  readonly channel_id?: SnowflakeType | null | undefined;
3393
3461
  readonly creator_id?: SnowflakeType | null | undefined;
3394
- readonly creator?: UserResponse | null | undefined;
3462
+ readonly creator?: UserResponse | undefined;
3395
3463
  readonly image?: string | null | undefined;
3396
3464
  readonly scheduled_start_time: string;
3397
3465
  readonly scheduled_end_time?: string | null | undefined;
3398
3466
  readonly status: GuildScheduledEventStatuses;
3399
3467
  readonly entity_type: 2;
3400
3468
  readonly entity_id?: SnowflakeType | null | undefined;
3401
- readonly user_count?: number | null | undefined;
3469
+ readonly user_count?: number | undefined;
3402
3470
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
3403
3471
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
3404
3472
  readonly entity_metadata?: EntityMetadataVoiceResponse | null | undefined;
@@ -3434,7 +3502,7 @@ export declare const AutomodActionType: {
3434
3502
  };
3435
3503
  export type AutomodActionType = (typeof AutomodActionType)[keyof typeof AutomodActionType];
3436
3504
  export interface BlockMessageActionMetadataResponse {
3437
- readonly custom_message?: string | null | undefined;
3505
+ readonly custom_message?: string | undefined;
3438
3506
  }
3439
3507
  export interface BlockMessageActionResponse {
3440
3508
  readonly type: 1;
@@ -3510,9 +3578,9 @@ export interface DefaultKeywordRuleResponse {
3510
3578
  readonly event_type: AutomodEventType;
3511
3579
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3512
3580
  readonly trigger_type: 4;
3513
- readonly enabled?: boolean | null | undefined;
3514
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3515
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3581
+ readonly enabled: boolean;
3582
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3583
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3516
3584
  readonly trigger_metadata: DefaultKeywordListTriggerMetadataResponse;
3517
3585
  }
3518
3586
  export interface KeywordTriggerMetadataResponse {
@@ -3528,9 +3596,9 @@ export interface KeywordRuleResponse {
3528
3596
  readonly event_type: AutomodEventType;
3529
3597
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3530
3598
  readonly trigger_type: 1;
3531
- readonly enabled?: boolean | null | undefined;
3532
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3533
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3599
+ readonly enabled: boolean;
3600
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3601
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3534
3602
  readonly trigger_metadata: KeywordTriggerMetadataResponse;
3535
3603
  }
3536
3604
  export interface MLSpamTriggerMetadataResponse {
@@ -3543,14 +3611,14 @@ export interface MLSpamRuleResponse {
3543
3611
  readonly event_type: AutomodEventType;
3544
3612
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3545
3613
  readonly trigger_type: 3;
3546
- readonly enabled?: boolean | null | undefined;
3547
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3548
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3614
+ readonly enabled: boolean;
3615
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3616
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3549
3617
  readonly trigger_metadata: MLSpamTriggerMetadataResponse;
3550
3618
  }
3551
3619
  export interface MentionSpamTriggerMetadataResponse {
3552
3620
  readonly mention_total_limit: number;
3553
- readonly mention_raid_protection_enabled?: boolean | null | undefined;
3621
+ readonly mention_raid_protection_enabled: boolean;
3554
3622
  }
3555
3623
  export interface MentionSpamRuleResponse {
3556
3624
  readonly id: SnowflakeType;
@@ -3560,9 +3628,9 @@ export interface MentionSpamRuleResponse {
3560
3628
  readonly event_type: AutomodEventType;
3561
3629
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3562
3630
  readonly trigger_type: 5;
3563
- readonly enabled?: boolean | null | undefined;
3564
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3565
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3631
+ readonly enabled: boolean;
3632
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3633
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3566
3634
  readonly trigger_metadata: MentionSpamTriggerMetadataResponse;
3567
3635
  }
3568
3636
  export interface SpamLinkTriggerMetadataResponse {
@@ -3575,9 +3643,9 @@ export interface SpamLinkRuleResponse {
3575
3643
  readonly event_type: AutomodEventType;
3576
3644
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3577
3645
  readonly trigger_type: 2;
3578
- readonly enabled?: boolean | null | undefined;
3579
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3580
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3646
+ readonly enabled: boolean;
3647
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3648
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3581
3649
  readonly trigger_metadata: SpamLinkTriggerMetadataResponse;
3582
3650
  }
3583
3651
  export interface GuildAuditLogResponse {
@@ -3660,7 +3728,7 @@ export interface MLSpamUpsertRequest {
3660
3728
  readonly trigger_metadata?: MLSpamTriggerMetadata | null | undefined;
3661
3729
  }
3662
3730
  export interface MentionSpamTriggerMetadata {
3663
- readonly mention_total_limit: number;
3731
+ readonly mention_total_limit?: number | null | undefined;
3664
3732
  readonly mention_raid_protection_enabled?: boolean | null | undefined;
3665
3733
  }
3666
3734
  export interface MentionSpamUpsertRequest {
@@ -3732,7 +3800,9 @@ export interface BanUserFromGuildRequest {
3732
3800
  readonly delete_message_seconds?: number | null | undefined;
3733
3801
  readonly delete_message_days?: number | null | undefined;
3734
3802
  }
3735
- export interface BulkBanUsersFromGuildRequest {
3803
+ export interface UnbanUserFromGuildRequest {
3804
+ }
3805
+ export interface BulkBanUsersRequest {
3736
3806
  readonly user_ids: ReadonlyArray<SnowflakeType>;
3737
3807
  readonly delete_message_seconds?: number | null | undefined;
3738
3808
  }
@@ -3769,7 +3839,7 @@ export interface CreateGuildChannelRequest {
3769
3839
  readonly available_tags?: ReadonlyArray<null | CreateOrUpdateThreadTagRequest> | null | undefined;
3770
3840
  }
3771
3841
  export type BulkUpdateGuildChannelsRequest = ReadonlyArray<{
3772
- readonly id?: SnowflakeType | undefined;
3842
+ readonly id?: SnowflakeType | null | undefined;
3773
3843
  readonly position?: number | null | undefined;
3774
3844
  readonly parent_id?: SnowflakeType | null | undefined;
3775
3845
  readonly lock_permissions?: boolean | null | undefined;
@@ -3790,19 +3860,19 @@ export interface IntegrationApplicationResponse {
3790
3860
  readonly icon?: string | null | undefined;
3791
3861
  readonly description: string;
3792
3862
  readonly type?: ApplicationTypes | null | undefined;
3793
- readonly cover_image?: string | null | undefined;
3794
- readonly primary_sku_id?: SnowflakeType | null | undefined;
3795
- readonly bot?: UserResponse | null | undefined;
3863
+ readonly cover_image?: string | undefined;
3864
+ readonly primary_sku_id?: SnowflakeType | undefined;
3865
+ readonly bot?: UserResponse | undefined;
3796
3866
  }
3797
3867
  export interface DiscordIntegrationResponse {
3798
3868
  readonly type: "discord";
3799
3869
  readonly name?: string | null | undefined;
3800
- readonly account?: AccountResponse | null | undefined;
3801
- readonly enabled?: boolean | null | undefined;
3870
+ readonly account: AccountResponse;
3871
+ readonly enabled: boolean;
3802
3872
  readonly id: SnowflakeType;
3803
3873
  readonly application: IntegrationApplicationResponse;
3804
3874
  readonly scopes: ReadonlyArray<"applications.commands" | "bot" | "webhook.incoming">;
3805
- readonly user?: UserResponse | null | undefined;
3875
+ readonly user?: UserResponse | undefined;
3806
3876
  }
3807
3877
  export declare const IntegrationExpireBehaviorTypes: {
3808
3878
  /**
@@ -3841,28 +3911,28 @@ export type IntegrationExpireGracePeriodTypes = (typeof IntegrationExpireGracePe
3841
3911
  export interface ExternalConnectionIntegrationResponse {
3842
3912
  readonly type: "twitch" | "youtube";
3843
3913
  readonly name?: string | null | undefined;
3844
- readonly account?: AccountResponse | null | undefined;
3845
- readonly enabled?: boolean | null | undefined;
3914
+ readonly account: AccountResponse;
3915
+ readonly enabled: boolean;
3846
3916
  readonly id: string;
3847
3917
  readonly user: UserResponse;
3848
- readonly revoked?: boolean | null | undefined;
3849
- readonly expire_behavior?: IntegrationExpireBehaviorTypes | null | undefined;
3850
- readonly expire_grace_period?: IntegrationExpireGracePeriodTypes | null | undefined;
3851
- readonly subscriber_count?: number | null | undefined;
3852
- readonly synced_at?: string | null | undefined;
3918
+ readonly revoked?: boolean | undefined;
3919
+ readonly expire_behavior?: IntegrationExpireBehaviorTypes | undefined;
3920
+ readonly expire_grace_period?: IntegrationExpireGracePeriodTypes | undefined;
3921
+ readonly subscriber_count?: number | undefined;
3922
+ readonly synced_at?: string | undefined;
3853
3923
  readonly role_id?: SnowflakeType | null | undefined;
3854
- readonly syncing?: boolean | null | undefined;
3855
- readonly enable_emoticons?: boolean | null | undefined;
3924
+ readonly syncing?: boolean | undefined;
3925
+ readonly enable_emoticons?: boolean | undefined;
3856
3926
  }
3857
3927
  export interface GuildSubscriptionIntegrationResponse {
3858
3928
  readonly type: "guild_subscription";
3859
3929
  readonly name?: string | null | undefined;
3860
- readonly account?: AccountResponse | null | undefined;
3861
- readonly enabled?: boolean | null | undefined;
3930
+ readonly account: AccountResponse;
3931
+ readonly enabled: boolean;
3862
3932
  readonly id: SnowflakeType;
3863
3933
  }
3864
3934
  export type ListGuildIntegrations200 = ReadonlyArray<DiscordIntegrationResponse | ExternalConnectionIntegrationResponse | GuildSubscriptionIntegrationResponse>;
3865
- export type ListGuildInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse>;
3935
+ export type ListGuildInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null>;
3866
3936
  export interface ListGuildMembersParams {
3867
3937
  readonly limit?: number | undefined;
3868
3938
  readonly after?: number | undefined;
@@ -3886,9 +3956,10 @@ export interface PrivateGuildMemberResponse {
3886
3956
  readonly user: UserResponse;
3887
3957
  readonly mute: boolean;
3888
3958
  readonly deaf: boolean;
3959
+ readonly permissions?: string | undefined;
3889
3960
  }
3890
3961
  export interface SearchGuildMembersParams {
3891
- readonly limit: number;
3962
+ readonly limit?: number | undefined;
3892
3963
  readonly query: string;
3893
3964
  }
3894
3965
  export type SearchGuildMembers200 = ReadonlyArray<GuildMemberResponse>;
@@ -3927,29 +3998,29 @@ export type NewMemberActionType = (typeof NewMemberActionType)[keyof typeof NewM
3927
3998
  export interface SettingsEmojiResponse {
3928
3999
  readonly id?: SnowflakeType | null | undefined;
3929
4000
  readonly name?: string | null | undefined;
3930
- readonly animated?: boolean | null | undefined;
4001
+ readonly animated: boolean;
3931
4002
  }
3932
4003
  export interface NewMemberActionResponse {
3933
4004
  readonly channel_id: SnowflakeType;
3934
4005
  readonly action_type: NewMemberActionType;
3935
4006
  readonly title: string;
3936
4007
  readonly description: string;
3937
- readonly emoji?: SettingsEmojiResponse | null | undefined;
3938
- readonly icon?: string | null | undefined;
4008
+ readonly emoji?: SettingsEmojiResponse | undefined;
4009
+ readonly icon?: string | undefined;
3939
4010
  }
3940
4011
  export interface ResourceChannelResponse {
3941
4012
  readonly channel_id: SnowflakeType;
3942
4013
  readonly title: string;
3943
- readonly emoji?: SettingsEmojiResponse | null | undefined;
3944
- readonly icon?: string | null | undefined;
4014
+ readonly emoji?: SettingsEmojiResponse | undefined;
4015
+ readonly icon?: string | undefined;
3945
4016
  readonly description: string;
3946
4017
  }
3947
4018
  export interface GuildHomeSettingsResponse {
3948
4019
  readonly guild_id: SnowflakeType;
3949
4020
  readonly enabled: boolean;
3950
- readonly welcome_message?: WelcomeMessageResponse | null | undefined;
3951
- readonly new_member_actions?: ReadonlyArray<null | NewMemberActionResponse> | null | undefined;
3952
- readonly resource_channels?: ReadonlyArray<null | ResourceChannelResponse> | null | undefined;
4021
+ readonly welcome_message?: WelcomeMessageResponse | undefined;
4022
+ readonly new_member_actions: ReadonlyArray<null | NewMemberActionResponse>;
4023
+ readonly resource_channels: ReadonlyArray<null | ResourceChannelResponse>;
3953
4024
  }
3954
4025
  export interface OnboardingPromptOptionResponse {
3955
4026
  readonly id: SnowflakeType;
@@ -4051,7 +4122,7 @@ export interface GuildPruneResponse {
4051
4122
  export interface PruneGuildRequest {
4052
4123
  readonly days?: number | null | undefined;
4053
4124
  readonly compute_prune_count?: boolean | null | undefined;
4054
- readonly include_roles?: string | ReadonlyArray<null | SnowflakeType> | null | undefined;
4125
+ readonly include_roles?: string | ReadonlyArray<SnowflakeType> | null | undefined;
4055
4126
  }
4056
4127
  export interface VoiceRegionResponse {
4057
4128
  readonly id: string;
@@ -4187,9 +4258,9 @@ export interface SoundboardSoundResponse {
4187
4258
  readonly volume: number;
4188
4259
  readonly emoji_id?: SnowflakeType | null | undefined;
4189
4260
  readonly emoji_name?: string | null | undefined;
4190
- readonly guild_id?: SnowflakeType | null | undefined;
4261
+ readonly guild_id?: SnowflakeType | undefined;
4191
4262
  readonly available: boolean;
4192
- readonly user?: UserResponse | null | undefined;
4263
+ readonly user?: UserResponse | undefined;
4193
4264
  }
4194
4265
  export interface ListGuildSoundboardSoundsResponse {
4195
4266
  readonly items: ReadonlyArray<SoundboardSoundResponse>;
@@ -4241,7 +4312,7 @@ export interface VoiceStateResponse {
4241
4312
  readonly channel_id?: SnowflakeType | null | undefined;
4242
4313
  readonly deaf: boolean;
4243
4314
  readonly guild_id?: SnowflakeType | null | undefined;
4244
- readonly member?: GuildMemberResponse | null | undefined;
4315
+ readonly member?: GuildMemberResponse | undefined;
4245
4316
  readonly mute: boolean;
4246
4317
  readonly request_to_speak_timestamp?: string | null | undefined;
4247
4318
  readonly suppress: boolean;
@@ -4252,12 +4323,12 @@ export interface VoiceStateResponse {
4252
4323
  readonly session_id: string;
4253
4324
  readonly user_id: SnowflakeType;
4254
4325
  }
4255
- export interface UpdateSelfVoiceStateRequest {
4326
+ export interface UpdateSelfVoiceStateRequestPartial {
4256
4327
  readonly request_to_speak_timestamp?: string | null | undefined;
4257
4328
  readonly suppress?: boolean | null | undefined;
4258
4329
  readonly channel_id?: SnowflakeType | null | undefined;
4259
4330
  }
4260
- export interface UpdateVoiceStateRequest {
4331
+ export interface UpdateVoiceStateRequestPartial {
4261
4332
  readonly suppress?: boolean | null | undefined;
4262
4333
  readonly channel_id?: SnowflakeType | null | undefined;
4263
4334
  }
@@ -4307,13 +4378,13 @@ export interface WidgetMember {
4307
4378
  readonly avatar?: null | undefined;
4308
4379
  readonly status: string;
4309
4380
  readonly avatar_url: string;
4310
- readonly activity?: WidgetActivity | null | undefined;
4311
- readonly deaf?: boolean | null | undefined;
4312
- readonly mute?: boolean | null | undefined;
4313
- readonly self_deaf?: boolean | null | undefined;
4314
- readonly self_mute?: boolean | null | undefined;
4315
- readonly suppress?: boolean | null | undefined;
4316
- readonly channel_id?: SnowflakeType | null | undefined;
4381
+ readonly activity?: WidgetActivity | undefined;
4382
+ readonly deaf?: boolean | undefined;
4383
+ readonly mute?: boolean | undefined;
4384
+ readonly self_deaf?: boolean | undefined;
4385
+ readonly self_mute?: boolean | undefined;
4386
+ readonly suppress?: boolean | undefined;
4387
+ readonly channel_id?: SnowflakeType | undefined;
4317
4388
  }
4318
4389
  export interface WidgetResponse {
4319
4390
  readonly id: SnowflakeType;
@@ -4395,6 +4466,7 @@ export interface LaunchActivityInteractionCallbackRequest {
4395
4466
  }
4396
4467
  export interface TextInputComponentForModalRequest {
4397
4468
  readonly type: 4;
4469
+ readonly id?: number | null | undefined;
4398
4470
  readonly custom_id: string;
4399
4471
  readonly style: TextInputStyleTypes;
4400
4472
  readonly label?: string | null | undefined;
@@ -4406,12 +4478,81 @@ export interface TextInputComponentForModalRequest {
4406
4478
  }
4407
4479
  export interface ActionRowComponentForModalRequest {
4408
4480
  readonly type: 1;
4481
+ readonly id?: number | null | undefined;
4409
4482
  readonly components: ReadonlyArray<TextInputComponentForModalRequest>;
4410
4483
  }
4484
+ export interface ChannelSelectComponentForModalRequest {
4485
+ readonly type: 8;
4486
+ readonly id?: number | null | undefined;
4487
+ readonly custom_id: string;
4488
+ readonly placeholder?: string | null | undefined;
4489
+ readonly min_values?: number | null | undefined;
4490
+ readonly max_values?: number | null | undefined;
4491
+ readonly disabled?: boolean | null | undefined;
4492
+ readonly required?: boolean | null | undefined;
4493
+ readonly default_values?: ReadonlyArray<ChannelSelectDefaultValue> | null | undefined;
4494
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
4495
+ }
4496
+ export interface MentionableSelectComponentForModalRequest {
4497
+ readonly type: 7;
4498
+ readonly id?: number | null | undefined;
4499
+ readonly custom_id: string;
4500
+ readonly placeholder?: string | null | undefined;
4501
+ readonly min_values?: number | null | undefined;
4502
+ readonly max_values?: number | null | undefined;
4503
+ readonly disabled?: boolean | null | undefined;
4504
+ readonly required?: boolean | null | undefined;
4505
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue> | null | undefined;
4506
+ }
4507
+ export interface RoleSelectComponentForModalRequest {
4508
+ readonly type: 6;
4509
+ readonly id?: number | null | undefined;
4510
+ readonly custom_id: string;
4511
+ readonly placeholder?: string | null | undefined;
4512
+ readonly min_values?: number | null | undefined;
4513
+ readonly max_values?: number | null | undefined;
4514
+ readonly disabled?: boolean | null | undefined;
4515
+ readonly required?: boolean | null | undefined;
4516
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValue> | null | undefined;
4517
+ }
4518
+ export interface StringSelectComponentForModalRequest {
4519
+ readonly type: 3;
4520
+ readonly id?: number | null | undefined;
4521
+ readonly custom_id: string;
4522
+ readonly placeholder?: string | null | undefined;
4523
+ readonly min_values?: number | null | undefined;
4524
+ readonly max_values?: number | null | undefined;
4525
+ readonly disabled?: boolean | null | undefined;
4526
+ readonly required?: boolean | null | undefined;
4527
+ readonly options: ReadonlyArray<StringSelectOptionForRequest>;
4528
+ }
4529
+ export interface UserSelectComponentForModalRequest {
4530
+ readonly type: 5;
4531
+ readonly id?: number | null | undefined;
4532
+ readonly custom_id: string;
4533
+ readonly placeholder?: string | null | undefined;
4534
+ readonly min_values?: number | null | undefined;
4535
+ readonly max_values?: number | null | undefined;
4536
+ readonly disabled?: boolean | null | undefined;
4537
+ readonly required?: boolean | null | undefined;
4538
+ readonly default_values?: ReadonlyArray<UserSelectDefaultValue> | null | undefined;
4539
+ }
4540
+ export interface LabelComponentForModalRequest {
4541
+ readonly type: 18;
4542
+ readonly id?: number | null | undefined;
4543
+ readonly label: string;
4544
+ readonly description?: string | null | undefined;
4545
+ readonly component: ChannelSelectComponentForModalRequest | MentionableSelectComponentForModalRequest | RoleSelectComponentForModalRequest | StringSelectComponentForModalRequest | TextInputComponentForModalRequest | UserSelectComponentForModalRequest;
4546
+ }
4547
+ export interface TextDisplayComponentForModalRequest {
4548
+ readonly type: 10;
4549
+ readonly id?: number | null | undefined;
4550
+ readonly content: string;
4551
+ }
4411
4552
  export interface ModalInteractionCallbackRequestData {
4412
4553
  readonly custom_id: string;
4413
4554
  readonly title: string;
4414
- readonly components: ReadonlyArray<ActionRowComponentForModalRequest>;
4555
+ readonly components: ReadonlyArray<ActionRowComponentForModalRequest | LabelComponentForModalRequest | TextDisplayComponentForModalRequest>;
4415
4556
  }
4416
4557
  export interface ModalInteractionCallbackRequest {
4417
4558
  readonly type: 9;
@@ -4436,11 +4577,11 @@ export type CreateInteractionResponseRequest = ApplicationCommandAutocompleteCal
4436
4577
  export interface InteractionResponse {
4437
4578
  readonly id: SnowflakeType;
4438
4579
  readonly type: InteractionTypes;
4439
- readonly response_message_id?: SnowflakeType | null | undefined;
4440
- readonly response_message_loading?: boolean | null | undefined;
4441
- readonly response_message_ephemeral?: boolean | null | undefined;
4442
- readonly channel_id?: SnowflakeType | null | undefined;
4443
- readonly guild_id?: SnowflakeType | null | undefined;
4580
+ readonly response_message_id?: SnowflakeType | undefined;
4581
+ readonly response_message_loading?: boolean | undefined;
4582
+ readonly response_message_ephemeral?: boolean | undefined;
4583
+ readonly channel_id?: SnowflakeType | undefined;
4584
+ readonly guild_id?: SnowflakeType | undefined;
4444
4585
  }
4445
4586
  export interface CreateMessageInteractionCallbackResponse {
4446
4587
  readonly type: 4;
@@ -4455,7 +4596,7 @@ export interface UpdateMessageInteractionCallbackResponse {
4455
4596
  }
4456
4597
  export interface InteractionCallbackResponse {
4457
4598
  readonly interaction: InteractionResponse;
4458
- readonly resource?: CreateMessageInteractionCallbackResponse | LaunchActivityInteractionCallbackResponse | UpdateMessageInteractionCallbackResponse | null | undefined;
4599
+ readonly resource?: CreateMessageInteractionCallbackResponse | LaunchActivityInteractionCallbackResponse | UpdateMessageInteractionCallbackResponse | undefined;
4459
4600
  }
4460
4601
  export interface InviteResolveParams {
4461
4602
  readonly with_counts?: boolean | undefined;
@@ -4480,9 +4621,10 @@ export interface LobbyResponse {
4480
4621
  readonly id: SnowflakeType;
4481
4622
  readonly application_id: SnowflakeType;
4482
4623
  readonly metadata?: Record<string, unknown> | null | undefined;
4483
- readonly members?: ReadonlyArray<LobbyMemberResponse> | null | undefined;
4484
- readonly linked_channel?: GuildChannelResponse | null | undefined;
4624
+ readonly members: ReadonlyArray<LobbyMemberResponse>;
4625
+ readonly linked_channel?: GuildChannelResponse | undefined;
4485
4626
  readonly flags: UInt32Type;
4627
+ readonly override_event_webhooks_url?: string | null | undefined;
4486
4628
  }
4487
4629
  export type LobbyMemberRequestFlagsEnum = 1;
4488
4630
  export interface LobbyMemberRequest {
@@ -4496,6 +4638,7 @@ export interface CreateLobbyRequest {
4496
4638
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined;
4497
4639
  readonly metadata?: Record<string, unknown> | null | undefined;
4498
4640
  readonly flags?: CreateLobbyRequestFlagsEnum | null | undefined;
4641
+ readonly override_event_webhooks_url?: string | null | undefined;
4499
4642
  }
4500
4643
  export type EditLobbyRequestFlagsEnum = 1;
4501
4644
  export interface EditLobbyRequest {
@@ -4503,6 +4646,7 @@ export interface EditLobbyRequest {
4503
4646
  readonly metadata?: Record<string, unknown> | null | undefined;
4504
4647
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined;
4505
4648
  readonly flags?: EditLobbyRequestFlagsEnum | null | undefined;
4649
+ readonly override_event_webhooks_url?: string | null | undefined;
4506
4650
  }
4507
4651
  export interface EditLobbyChannelLinkRequest {
4508
4652
  readonly channel_id?: SnowflakeType | null | undefined;
@@ -4534,9 +4678,9 @@ export interface LobbyMessageResponse {
4534
4678
  readonly lobby_id: SnowflakeType;
4535
4679
  readonly channel_id: SnowflakeType;
4536
4680
  readonly author: UserResponse;
4537
- readonly metadata?: Record<string, unknown> | null | undefined;
4681
+ readonly metadata?: Record<string, unknown> | undefined;
4538
4682
  readonly flags: number;
4539
- readonly application_id?: SnowflakeType | null | undefined;
4683
+ readonly application_id?: SnowflakeType | undefined;
4540
4684
  }
4541
4685
  export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse>;
4542
4686
  export interface SDKMessageRequest {
@@ -4548,6 +4692,7 @@ export interface SDKMessageRequest {
4548
4692
  readonly flags?: number | null | undefined;
4549
4693
  readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
4550
4694
  readonly poll?: PollCreateRequest | null | undefined;
4695
+ readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
4551
4696
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
4552
4697
  readonly message_reference?: MessageReferenceRequest | null | undefined;
4553
4698
  readonly nonce?: number | string | null | undefined;
@@ -4558,7 +4703,7 @@ export interface OAuth2GetAuthorizationResponse {
4558
4703
  readonly application: ApplicationResponse;
4559
4704
  readonly expires: string;
4560
4705
  readonly scopes: ReadonlyArray<OAuth2Scopes>;
4561
- readonly user?: UserResponse | null | undefined;
4706
+ readonly user?: UserResponse | undefined;
4562
4707
  }
4563
4708
  export interface OAuth2Key {
4564
4709
  readonly kty: string;
@@ -4574,11 +4719,11 @@ export interface OAuth2GetKeys {
4574
4719
  export interface OAuth2GetOpenIDConnectUserInfoResponse {
4575
4720
  readonly sub: string;
4576
4721
  readonly email?: string | null | undefined;
4577
- readonly email_verified?: boolean | null | undefined;
4578
- readonly preferred_username?: string | null | undefined;
4722
+ readonly email_verified?: boolean | undefined;
4723
+ readonly preferred_username?: string | undefined;
4579
4724
  readonly nickname?: string | null | undefined;
4580
- readonly picture?: string | null | undefined;
4581
- readonly locale?: string | null | undefined;
4725
+ readonly picture?: string | undefined;
4726
+ readonly locale?: string | undefined;
4582
4727
  }
4583
4728
  export declare const ApplicationIdentityProviderAuthType: {
4584
4729
  readonly OIDC: "OIDC";
@@ -4586,6 +4731,7 @@ export declare const ApplicationIdentityProviderAuthType: {
4586
4731
  readonly EPIC_ONLINE_SERVICES_ID_TOKEN: "EPIC_ONLINE_SERVICES_ID_TOKEN";
4587
4732
  readonly STEAM_SESSION_TICKET: "STEAM_SESSION_TICKET";
4588
4733
  readonly UNITY_SERVICES_ID_TOKEN: "UNITY_SERVICES_ID_TOKEN";
4734
+ readonly DISCORD_BOT_ISSUED_ACCESS_TOKEN: "DISCORD_BOT_ISSUED_ACCESS_TOKEN";
4589
4735
  };
4590
4736
  export type ApplicationIdentityProviderAuthType = (typeof ApplicationIdentityProviderAuthType)[keyof typeof ApplicationIdentityProviderAuthType];
4591
4737
  export interface PartnerSdkUnmergeProvisionalAccountRequest {
@@ -4639,7 +4785,7 @@ export interface StageInstanceResponse {
4639
4785
  readonly topic: string;
4640
4786
  readonly privacy_level: StageInstancesPrivacyLevels;
4641
4787
  readonly id: SnowflakeType;
4642
- readonly discoverable_disabled?: boolean | null | undefined;
4788
+ readonly discoverable_disabled: boolean;
4643
4789
  readonly guild_scheduled_event_id?: SnowflakeType | null | undefined;
4644
4790
  }
4645
4791
  export interface UpdateStageInstanceRequest {
@@ -4652,8 +4798,8 @@ export interface StickerPackResponse {
4652
4798
  readonly name: string;
4653
4799
  readonly description?: string | null | undefined;
4654
4800
  readonly stickers: ReadonlyArray<StandardStickerResponse>;
4655
- readonly cover_sticker_id?: SnowflakeType | null | undefined;
4656
- readonly banner_asset_id?: SnowflakeType | null | undefined;
4801
+ readonly cover_sticker_id?: SnowflakeType | undefined;
4802
+ readonly banner_asset_id?: SnowflakeType | undefined;
4657
4803
  }
4658
4804
  export interface StickerPackCollectionResponse {
4659
4805
  readonly sticker_packs: ReadonlyArray<StickerPackResponse>;
@@ -4685,8 +4831,8 @@ export interface UserPIIResponse {
4685
4831
  readonly discriminator: string;
4686
4832
  readonly public_flags: number;
4687
4833
  readonly flags: Int53Type;
4688
- readonly bot?: boolean | null | undefined;
4689
- readonly system?: boolean | null | undefined;
4834
+ readonly bot?: boolean | undefined;
4835
+ readonly system?: boolean | undefined;
4690
4836
  readonly banner?: string | null | undefined;
4691
4837
  readonly accent_color?: number | null | undefined;
4692
4838
  readonly global_name?: string | null | undefined;
@@ -4695,9 +4841,9 @@ export interface UserPIIResponse {
4695
4841
  readonly primary_guild?: UserPrimaryGuildResponse | null | undefined;
4696
4842
  readonly mfa_enabled: boolean;
4697
4843
  readonly locale: AvailableLocalesEnum;
4698
- readonly premium_type?: PremiumTypes | null | undefined;
4844
+ readonly premium_type?: PremiumTypes | undefined;
4699
4845
  readonly email?: string | null | undefined;
4700
- readonly verified?: boolean | null | undefined;
4846
+ readonly verified?: boolean | undefined;
4701
4847
  }
4702
4848
  export interface BotAccountPatchRequest {
4703
4849
  readonly username: string;
@@ -4707,7 +4853,7 @@ export interface BotAccountPatchRequest {
4707
4853
  export interface ApplicationUserRoleConnectionResponse {
4708
4854
  readonly platform_name?: string | null | undefined;
4709
4855
  readonly platform_username?: string | null | undefined;
4710
- readonly metadata?: Record<string, unknown> | null | undefined;
4856
+ readonly metadata?: Record<string, unknown> | undefined;
4711
4857
  }
4712
4858
  export interface UpdateApplicationUserRoleConnectionRequest {
4713
4859
  readonly platform_name?: string | null | undefined;
@@ -4768,12 +4914,12 @@ export interface ConnectedAccountResponse {
4768
4914
  readonly name?: string | null | undefined;
4769
4915
  readonly type: ConnectedAccountProviders;
4770
4916
  readonly friend_sync: boolean;
4771
- readonly integrations?: ReadonlyArray<ConnectedAccountIntegrationResponse> | null | undefined;
4917
+ readonly integrations?: ReadonlyArray<ConnectedAccountIntegrationResponse> | undefined;
4772
4918
  readonly show_activity: boolean;
4773
4919
  readonly two_way_link: boolean;
4774
4920
  readonly verified: boolean;
4775
4921
  readonly visibility: ConnectedAccountVisibility;
4776
- readonly revoked?: boolean | null | undefined;
4922
+ readonly revoked?: boolean | undefined;
4777
4923
  }
4778
4924
  export type ListMyConnections200 = ReadonlyArray<ConnectedAccountResponse>;
4779
4925
  export interface ListMyGuildsParams {
@@ -5020,7 +5166,7 @@ export interface DiscordRest {
5020
5166
  readonly getApplicationEmoji: (applicationId: string, emojiId: string) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5021
5167
  readonly deleteApplicationEmoji: (applicationId: string, emojiId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5022
5168
  readonly updateApplicationEmoji: (applicationId: string, emojiId: string, options: UpdateApplicationEmojiRequest) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5023
- readonly getEntitlements: (applicationId: string, options: GetEntitlementsParams) => Effect.Effect<GetEntitlements200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5169
+ readonly getEntitlements: (applicationId: string, options?: GetEntitlementsParams | undefined) => Effect.Effect<GetEntitlements200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5024
5170
  readonly createEntitlement: (applicationId: string, options: CreateEntitlementRequestData) => Effect.Effect<EntitlementResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5025
5171
  readonly getEntitlement: (applicationId: string, entitlementId: string) => Effect.Effect<EntitlementResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5026
5172
  readonly deleteEntitlement: (applicationId: string, entitlementId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5098,8 +5244,8 @@ export interface DiscordRest {
5098
5244
  readonly listGuildBans: (guildId: string, options?: ListGuildBansParams | undefined) => Effect.Effect<ListGuildBans200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5099
5245
  readonly getGuildBan: (guildId: string, userId: string) => Effect.Effect<GuildBanResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5100
5246
  readonly banUserFromGuild: (guildId: string, userId: string, options: BanUserFromGuildRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5101
- readonly unbanUserFromGuild: (guildId: string, userId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5102
- readonly bulkBanUsersFromGuild: (guildId: string, options: BulkBanUsersFromGuildRequest) => Effect.Effect<BulkBanUsersResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5247
+ readonly unbanUserFromGuild: (guildId: string, userId: string, options: UnbanUserFromGuildRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5248
+ readonly bulkBanUsersFromGuild: (guildId: string, options: BulkBanUsersRequest) => Effect.Effect<BulkBanUsersResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5103
5249
  readonly listGuildChannels: (guildId: string) => Effect.Effect<ListGuildChannels200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5104
5250
  readonly createGuildChannel: (guildId: string, options: CreateGuildChannelRequest) => Effect.Effect<GuildChannelResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5105
5251
  readonly bulkUpdateGuildChannels: (guildId: string, options: BulkUpdateGuildChannelsRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5158,9 +5304,9 @@ export interface DiscordRest {
5158
5304
  readonly getActiveGuildThreads: (guildId: string) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5159
5305
  readonly getGuildVanityUrl: (guildId: string) => Effect.Effect<VanityURLResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5160
5306
  readonly getSelfVoiceState: (guildId: string) => Effect.Effect<VoiceStateResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5161
- readonly updateSelfVoiceState: (guildId: string, options: UpdateSelfVoiceStateRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5307
+ readonly updateSelfVoiceState: (guildId: string, options: UpdateSelfVoiceStateRequestPartial) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5162
5308
  readonly getVoiceState: (guildId: string, userId: string) => Effect.Effect<VoiceStateResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5163
- readonly updateVoiceState: (guildId: string, userId: string, options: UpdateVoiceStateRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5309
+ readonly updateVoiceState: (guildId: string, userId: string, options: UpdateVoiceStateRequestPartial) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5164
5310
  readonly getGuildWebhooks: (guildId: string) => Effect.Effect<GetGuildWebhooks200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5165
5311
  readonly getGuildWelcomeScreen: (guildId: string) => Effect.Effect<GuildWelcomeScreenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5166
5312
  readonly updateGuildWelcomeScreen: (guildId: string, options: WelcomeScreenPatchRequestPartial) => Effect.Effect<GuildWelcomeScreenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;