dfx 0.124.0 → 0.124.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -1117,7 +1117,17 @@ export declare const ForumLayout: {
1117
1117
  readonly GRID: 2;
1118
1118
  };
1119
1119
  export type ForumLayout = (typeof ForumLayout)[keyof typeof ForumLayout];
1120
- export type ThreadSearchTagSetting = string;
1120
+ export declare const ThreadSearchTagSetting: {
1121
+ /**
1122
+ * The thread tags must contain all tags in the search query
1123
+ */
1124
+ readonly MATCH_ALL: "match_all";
1125
+ /**
1126
+ * The thread tags must contain at least one of tags in the search query
1127
+ */
1128
+ readonly MATCH_SOME: "match_some";
1129
+ };
1130
+ export type ThreadSearchTagSetting = (typeof ThreadSearchTagSetting)[keyof typeof ThreadSearchTagSetting];
1121
1131
  export interface GuildChannelResponse {
1122
1132
  readonly id: SnowflakeType;
1123
1133
  readonly type: 0 | 2 | 4 | 5 | 13 | 14 | 15;
@@ -1127,25 +1137,25 @@ export interface GuildChannelResponse {
1127
1137
  readonly guild_id: SnowflakeType;
1128
1138
  readonly name: string;
1129
1139
  readonly parent_id?: SnowflakeType | null | undefined;
1130
- readonly rate_limit_per_user?: number | null | undefined;
1131
- readonly bitrate?: number | null | undefined;
1132
- 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;
1133
1143
  readonly rtc_region?: string | null | undefined;
1134
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
1144
+ readonly video_quality_mode?: VideoQualityModes | undefined;
1135
1145
  readonly permissions?: string | null | undefined;
1136
1146
  readonly topic?: string | null | undefined;
1137
- readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined;
1138
- 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;
1139
1149
  readonly position: number;
1140
- readonly permission_overwrites?: ReadonlyArray<ChannelPermissionOverwriteResponse> | null | undefined;
1141
- readonly nsfw?: boolean | null | undefined;
1142
- 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;
1143
1153
  readonly default_reaction_emoji?: DefaultReactionEmojiResponse | null | undefined;
1144
1154
  readonly default_sort_order?: ThreadSortOrder | null | undefined;
1145
1155
  readonly default_forum_layout?: ForumLayout | null | undefined;
1146
1156
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
1147
- readonly hd_streaming_until?: string | null | undefined;
1148
- readonly hd_streaming_buyer_id?: SnowflakeType | null | undefined;
1157
+ readonly hd_streaming_until?: string | undefined;
1158
+ readonly hd_streaming_buyer_id?: SnowflakeType | undefined;
1149
1159
  }
1150
1160
  export interface PrivateChannelResponse {
1151
1161
  readonly id: SnowflakeType;
@@ -1164,17 +1174,17 @@ export interface PrivateGroupChannelResponse {
1164
1174
  readonly recipients: ReadonlyArray<UserResponse>;
1165
1175
  readonly name?: string | null | undefined;
1166
1176
  readonly icon?: string | null | undefined;
1167
- readonly owner_id?: SnowflakeType | null | undefined;
1168
- readonly managed?: boolean | null | undefined;
1169
- readonly application_id?: SnowflakeType | null | undefined;
1177
+ readonly owner_id: SnowflakeType;
1178
+ readonly managed?: boolean | undefined;
1179
+ readonly application_id?: SnowflakeType | undefined;
1170
1180
  }
1171
1181
  export interface ThreadMetadataResponse {
1172
1182
  readonly archived: boolean;
1173
1183
  readonly archive_timestamp?: string | null | undefined;
1174
1184
  readonly auto_archive_duration: ThreadAutoArchiveDuration;
1175
1185
  readonly locked: boolean;
1176
- readonly create_timestamp?: string | null | undefined;
1177
- readonly invitable?: boolean | null | undefined;
1186
+ readonly create_timestamp?: string | undefined;
1187
+ readonly invitable?: boolean | undefined;
1178
1188
  }
1179
1189
  export interface GuildMemberResponse {
1180
1190
  readonly avatar?: string | null | undefined;
@@ -1187,6 +1197,7 @@ export interface GuildMemberResponse {
1187
1197
  readonly pending: boolean;
1188
1198
  readonly premium_since?: string | null | undefined;
1189
1199
  readonly roles: ReadonlyArray<SnowflakeType>;
1200
+ readonly collectibles?: UserCollectiblesResponse | null | undefined;
1190
1201
  readonly user: UserResponse;
1191
1202
  readonly mute: boolean;
1192
1203
  readonly deaf: boolean;
@@ -1196,7 +1207,7 @@ export interface ThreadMemberResponse {
1196
1207
  readonly user_id: SnowflakeType;
1197
1208
  readonly join_timestamp: string;
1198
1209
  readonly flags: number;
1199
- readonly member?: GuildMemberResponse | null | undefined;
1210
+ readonly member?: GuildMemberResponse | undefined;
1200
1211
  }
1201
1212
  export interface ThreadResponse {
1202
1213
  readonly id: SnowflakeType;
@@ -1207,19 +1218,19 @@ export interface ThreadResponse {
1207
1218
  readonly guild_id: SnowflakeType;
1208
1219
  readonly name: string;
1209
1220
  readonly parent_id?: SnowflakeType | null | undefined;
1210
- readonly rate_limit_per_user?: number | null | undefined;
1211
- readonly bitrate?: number | null | undefined;
1212
- 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;
1213
1224
  readonly rtc_region?: string | null | undefined;
1214
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
1225
+ readonly video_quality_mode?: VideoQualityModes | undefined;
1215
1226
  readonly permissions?: string | null | undefined;
1216
1227
  readonly owner_id: SnowflakeType;
1217
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined;
1228
+ readonly thread_metadata: ThreadMetadataResponse;
1218
1229
  readonly message_count: number;
1219
1230
  readonly member_count: number;
1220
1231
  readonly total_message_sent: number;
1221
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined;
1222
- readonly member?: ThreadMemberResponse | null | undefined;
1232
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined;
1233
+ readonly member?: ThreadMemberResponse | undefined;
1223
1234
  }
1224
1235
  export type GetChannel200 = GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse;
1225
1236
  export type DeleteChannel200 = GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse;
@@ -1305,31 +1316,31 @@ export interface InviteChannelResponse {
1305
1316
  readonly id: SnowflakeType;
1306
1317
  readonly type: ChannelTypes;
1307
1318
  readonly name?: string | null | undefined;
1308
- readonly icon?: string | null | undefined;
1309
- readonly recipients?: ReadonlyArray<InviteChannelRecipientResponse> | null | undefined;
1319
+ readonly icon?: string | undefined;
1320
+ readonly recipients?: ReadonlyArray<InviteChannelRecipientResponse> | undefined;
1310
1321
  }
1311
1322
  export interface FriendInviteResponse {
1312
- readonly type?: 2 | null | undefined;
1323
+ readonly type: 2;
1313
1324
  readonly code: string;
1314
- readonly inviter?: UserResponse | null | undefined;
1315
- readonly max_age?: number | null | undefined;
1316
- readonly created_at?: string | null | undefined;
1325
+ readonly inviter?: UserResponse | undefined;
1326
+ readonly max_age?: number | undefined;
1327
+ readonly created_at?: string | undefined;
1317
1328
  readonly expires_at?: string | null | undefined;
1318
- readonly friends_count?: number | null | undefined;
1329
+ readonly friends_count?: number | undefined;
1319
1330
  readonly channel?: InviteChannelResponse | null | undefined;
1320
- readonly is_contact?: boolean | null | undefined;
1321
- readonly uses?: number | null | undefined;
1322
- readonly max_uses?: number | null | undefined;
1323
- 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;
1324
1335
  }
1325
1336
  export interface GroupDMInviteResponse {
1326
- readonly type?: 1 | null | undefined;
1337
+ readonly type: 1;
1327
1338
  readonly code: string;
1328
- readonly inviter?: UserResponse | null | undefined;
1329
- readonly max_age?: number | null | undefined;
1330
- readonly created_at?: string | null | undefined;
1339
+ readonly inviter?: UserResponse | undefined;
1340
+ readonly max_age?: number | undefined;
1341
+ readonly created_at?: string | undefined;
1331
1342
  readonly expires_at?: string | null | undefined;
1332
- readonly channel?: InviteChannelResponse | null | undefined;
1343
+ readonly channel: InviteChannelResponse;
1333
1344
  readonly approximate_member_count?: number | null | undefined;
1334
1345
  }
1335
1346
  export declare const GuildFeatures: {
@@ -1485,7 +1496,7 @@ export interface InviteGuildResponse {
1485
1496
  readonly vanity_url_code?: string | null | undefined;
1486
1497
  readonly nsfw_level?: GuildNSFWContentLevel | null | undefined;
1487
1498
  readonly nsfw?: boolean | null | undefined;
1488
- readonly premium_subscription_count?: number | null | undefined;
1499
+ readonly premium_subscription_count: number;
1489
1500
  }
1490
1501
  export declare const InviteTargetTypes: {
1491
1502
  readonly STREAM: 1;
@@ -1499,23 +1510,23 @@ export interface InviteApplicationResponse {
1499
1510
  readonly icon?: string | null | undefined;
1500
1511
  readonly description: string;
1501
1512
  readonly type?: ApplicationTypes | null | undefined;
1502
- readonly cover_image?: string | null | undefined;
1503
- readonly primary_sku_id?: SnowflakeType | null | undefined;
1504
- readonly bot?: UserResponse | null | undefined;
1505
- readonly slug?: string | null | undefined;
1506
- readonly guild_id?: SnowflakeType | null | undefined;
1507
- readonly rpc_origins?: ReadonlyArray<string> | null | undefined;
1508
- readonly bot_public?: boolean | null | undefined;
1509
- readonly bot_require_code_grant?: boolean | null | undefined;
1510
- readonly terms_of_service_url?: string | null | undefined;
1511
- readonly privacy_policy_url?: string | null | undefined;
1512
- readonly custom_install_url?: string | null | undefined;
1513
- readonly install_params?: ApplicationOAuth2InstallParamsResponse | null | undefined;
1514
- 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;
1515
1526
  readonly verify_key: string;
1516
1527
  readonly flags: number;
1517
1528
  readonly max_participants?: number | null | undefined;
1518
- readonly tags?: ReadonlyArray<string> | null | undefined;
1529
+ readonly tags?: ReadonlyArray<string> | undefined;
1519
1530
  }
1520
1531
  export declare const GuildScheduledEventStatuses: {
1521
1532
  readonly SCHEDULED: 1;
@@ -1535,8 +1546,8 @@ export type GuildScheduledEventPrivacyLevels = 2;
1535
1546
  export interface ScheduledEventUserResponse {
1536
1547
  readonly guild_scheduled_event_id: SnowflakeType;
1537
1548
  readonly user_id: SnowflakeType;
1538
- readonly user?: UserResponse | null | undefined;
1539
- readonly member?: GuildMemberResponse | null | undefined;
1549
+ readonly user?: UserResponse | undefined;
1550
+ readonly member?: GuildMemberResponse | undefined;
1540
1551
  }
1541
1552
  export interface ScheduledEventResponse {
1542
1553
  readonly id: SnowflakeType;
@@ -1545,41 +1556,41 @@ export interface ScheduledEventResponse {
1545
1556
  readonly description?: string | null | undefined;
1546
1557
  readonly channel_id?: SnowflakeType | null | undefined;
1547
1558
  readonly creator_id?: SnowflakeType | null | undefined;
1548
- readonly creator?: UserResponse | null | undefined;
1559
+ readonly creator?: UserResponse | undefined;
1549
1560
  readonly image?: string | null | undefined;
1550
1561
  readonly scheduled_start_time: string;
1551
1562
  readonly scheduled_end_time?: string | null | undefined;
1552
1563
  readonly status: GuildScheduledEventStatuses;
1553
1564
  readonly entity_type: GuildScheduledEventEntityTypes;
1554
1565
  readonly entity_id?: SnowflakeType | null | undefined;
1555
- readonly user_count?: number | null | undefined;
1566
+ readonly user_count?: number | undefined;
1556
1567
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
1557
1568
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
1558
1569
  }
1559
1570
  export interface GuildInviteResponse {
1560
- readonly type?: 0 | null | undefined;
1571
+ readonly type: 0;
1561
1572
  readonly code: string;
1562
- readonly inviter?: UserResponse | null | undefined;
1563
- readonly max_age?: number | null | undefined;
1564
- readonly created_at?: string | null | undefined;
1573
+ readonly inviter?: UserResponse | undefined;
1574
+ readonly max_age?: number | undefined;
1575
+ readonly created_at?: string | undefined;
1565
1576
  readonly expires_at?: string | null | undefined;
1566
- readonly is_contact?: boolean | null | undefined;
1567
- readonly flags?: number | null | undefined;
1568
- readonly guild?: InviteGuildResponse | null | undefined;
1569
- readonly guild_id?: SnowflakeType | null | undefined;
1570
- readonly channel?: InviteChannelResponse | null | undefined;
1571
- readonly target_type?: InviteTargetTypes | null | undefined;
1572
- readonly target_user?: UserResponse | null | undefined;
1573
- readonly target_application?: InviteApplicationResponse | null | undefined;
1574
- readonly guild_scheduled_event?: ScheduledEventResponse | null | undefined;
1575
- readonly uses?: number | null | undefined;
1576
- readonly max_uses?: number | null | undefined;
1577
- 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;
1578
1589
  readonly approximate_member_count?: number | null | undefined;
1579
1590
  readonly approximate_presence_count?: number | null | undefined;
1580
- readonly is_nickname_changeable?: boolean | null | undefined;
1591
+ readonly is_nickname_changeable?: boolean | undefined;
1581
1592
  }
1582
- export type ListChannelInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse>;
1593
+ export type ListChannelInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null>;
1583
1594
  export interface CreateGroupDMInviteRequest {
1584
1595
  readonly max_age?: number | null | undefined;
1585
1596
  }
@@ -1646,17 +1657,17 @@ export interface MessageAttachmentResponse {
1646
1657
  readonly size: number;
1647
1658
  readonly url: string;
1648
1659
  readonly proxy_url: string;
1649
- readonly width?: number | null | undefined;
1650
- readonly height?: number | null | undefined;
1651
- readonly duration_secs?: number | null | undefined;
1652
- readonly waveform?: string | null | undefined;
1653
- readonly description?: string | null | undefined;
1654
- readonly content_type?: string | null | undefined;
1655
- 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;
1656
1667
  readonly title?: string | null | undefined;
1657
- readonly application?: ApplicationResponse | null | undefined;
1658
- readonly clip_created_at?: string | null | undefined;
1659
- 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;
1660
1671
  }
1661
1672
  export interface MessageEmbedFieldResponse {
1662
1673
  readonly name: string;
@@ -1665,56 +1676,56 @@ export interface MessageEmbedFieldResponse {
1665
1676
  }
1666
1677
  export interface MessageEmbedAuthorResponse {
1667
1678
  readonly name: string;
1668
- readonly url?: string | null | undefined;
1669
- readonly icon_url?: string | null | undefined;
1670
- 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;
1671
1682
  }
1672
1683
  export interface MessageEmbedProviderResponse {
1673
1684
  readonly name: string;
1674
- readonly url?: string | null | undefined;
1685
+ readonly url?: string | undefined;
1675
1686
  }
1676
1687
  export type UInt32Type = number;
1677
1688
  export interface MessageEmbedImageResponse {
1678
- readonly url?: string | null | undefined;
1679
- readonly proxy_url?: string | null | undefined;
1680
- readonly width?: UInt32Type | null | undefined;
1681
- readonly height?: UInt32Type | null | undefined;
1682
- readonly content_type?: string | null | undefined;
1683
- readonly placeholder?: string | null | undefined;
1684
- readonly placeholder_version?: UInt32Type | null | undefined;
1685
- readonly description?: string | null | undefined;
1686
- 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;
1687
1698
  }
1688
1699
  export interface MessageEmbedVideoResponse {
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;
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;
1698
1709
  }
1699
1710
  export interface MessageEmbedFooterResponse {
1700
1711
  readonly text: string;
1701
- readonly icon_url?: string | null | undefined;
1702
- readonly proxy_icon_url?: string | null | undefined;
1712
+ readonly icon_url?: string | undefined;
1713
+ readonly proxy_icon_url?: string | undefined;
1703
1714
  }
1704
1715
  export interface MessageEmbedResponse {
1705
1716
  readonly type: string;
1706
- readonly url?: string | null | undefined;
1707
- readonly title?: string | null | undefined;
1708
- readonly description?: string | null | undefined;
1709
- readonly color?: number | null | undefined;
1710
- readonly timestamp?: string | null | undefined;
1711
- readonly fields?: ReadonlyArray<MessageEmbedFieldResponse> | null | undefined;
1712
- readonly author?: MessageEmbedAuthorResponse | null | undefined;
1713
- readonly provider?: MessageEmbedProviderResponse | null | undefined;
1714
- readonly image?: MessageEmbedImageResponse | null | undefined;
1715
- readonly thumbnail?: MessageEmbedImageResponse | null | undefined;
1716
- readonly video?: MessageEmbedVideoResponse | null | undefined;
1717
- 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;
1718
1729
  }
1719
1730
  export declare const MessageComponentTypes: {
1720
1731
  /**
@@ -1777,6 +1788,10 @@ export declare const MessageComponentTypes: {
1777
1788
  * Container component
1778
1789
  */
1779
1790
  readonly CONTAINER: 17;
1791
+ /**
1792
+ * Label component
1793
+ */
1794
+ readonly LABEL: 18;
1780
1795
  };
1781
1796
  export type MessageComponentTypes = (typeof MessageComponentTypes)[keyof typeof MessageComponentTypes];
1782
1797
  export declare const ButtonStyleTypes: {
@@ -1789,20 +1804,20 @@ export declare const ButtonStyleTypes: {
1789
1804
  };
1790
1805
  export type ButtonStyleTypes = (typeof ButtonStyleTypes)[keyof typeof ButtonStyleTypes];
1791
1806
  export interface ComponentEmojiResponse {
1792
- readonly id?: SnowflakeType | null | undefined;
1807
+ readonly id?: SnowflakeType | undefined;
1793
1808
  readonly name: string;
1794
- readonly animated?: boolean | null | undefined;
1809
+ readonly animated?: boolean | undefined;
1795
1810
  }
1796
1811
  export interface ButtonComponentResponse {
1797
1812
  readonly type: 2;
1798
1813
  readonly id: number;
1799
- readonly custom_id?: string | null | undefined;
1814
+ readonly custom_id?: string | undefined;
1800
1815
  readonly style: ButtonStyleTypes;
1801
- readonly label?: string | null | undefined;
1802
- readonly disabled?: boolean | null | undefined;
1803
- readonly emoji?: ComponentEmojiResponse | null | undefined;
1816
+ readonly label?: string | undefined;
1817
+ readonly disabled?: boolean | undefined;
1818
+ readonly emoji?: ComponentEmojiResponse | undefined;
1804
1819
  readonly url?: string | null | undefined;
1805
- readonly sku_id?: SnowflakeType | null | undefined;
1820
+ readonly sku_id?: SnowflakeType | undefined;
1806
1821
  }
1807
1822
  export declare const SnowflakeSelectDefaultValueTypes: {
1808
1823
  readonly USER: "user";
@@ -1818,12 +1833,12 @@ export interface ChannelSelectComponentResponse {
1818
1833
  readonly type: 8;
1819
1834
  readonly id: number;
1820
1835
  readonly custom_id: string;
1821
- readonly placeholder?: string | null | undefined;
1836
+ readonly placeholder?: string | undefined;
1822
1837
  readonly min_values?: number | null | undefined;
1823
1838
  readonly max_values?: number | null | undefined;
1824
- readonly disabled?: boolean | null | undefined;
1825
- readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
1826
- 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;
1827
1842
  }
1828
1843
  export interface RoleSelectDefaultValueResponse {
1829
1844
  readonly type: "role";
@@ -1837,37 +1852,37 @@ export interface MentionableSelectComponentResponse {
1837
1852
  readonly type: 7;
1838
1853
  readonly id: number;
1839
1854
  readonly custom_id: string;
1840
- readonly placeholder?: string | null | undefined;
1855
+ readonly placeholder?: string | undefined;
1841
1856
  readonly min_values?: number | null | undefined;
1842
1857
  readonly max_values?: number | null | undefined;
1843
- readonly disabled?: boolean | null | undefined;
1844
- readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse> | null | undefined;
1858
+ readonly disabled?: boolean | undefined;
1859
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse> | undefined;
1845
1860
  }
1846
1861
  export interface RoleSelectComponentResponse {
1847
1862
  readonly type: 6;
1848
1863
  readonly id: number;
1849
1864
  readonly custom_id: string;
1850
- readonly placeholder?: string | null | undefined;
1865
+ readonly placeholder?: string | undefined;
1851
1866
  readonly min_values?: number | null | undefined;
1852
1867
  readonly max_values?: number | null | undefined;
1853
- readonly disabled?: boolean | null | undefined;
1854
- readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse> | null | undefined;
1868
+ readonly disabled?: boolean | undefined;
1869
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse> | undefined;
1855
1870
  }
1856
1871
  export interface StringSelectOptionResponse {
1857
1872
  readonly label: string;
1858
1873
  readonly value: string;
1859
- readonly description?: string | null | undefined;
1860
- readonly emoji?: ComponentEmojiResponse | null | undefined;
1861
- readonly default?: boolean | null | undefined;
1874
+ readonly description?: string | undefined;
1875
+ readonly emoji?: ComponentEmojiResponse | undefined;
1876
+ readonly default?: boolean | undefined;
1862
1877
  }
1863
1878
  export interface StringSelectComponentResponse {
1864
1879
  readonly type: 3;
1865
1880
  readonly id: number;
1866
1881
  readonly custom_id: string;
1867
- readonly placeholder?: string | null | undefined;
1882
+ readonly placeholder?: string | undefined;
1868
1883
  readonly min_values?: number | null | undefined;
1869
1884
  readonly max_values?: number | null | undefined;
1870
- readonly disabled?: boolean | null | undefined;
1885
+ readonly disabled?: boolean | undefined;
1871
1886
  readonly options: ReadonlyArray<StringSelectOptionResponse>;
1872
1887
  }
1873
1888
  export declare const TextInputStyleTypes: {
@@ -1887,9 +1902,9 @@ export interface TextInputComponentResponse {
1887
1902
  readonly custom_id: string;
1888
1903
  readonly style: TextInputStyleTypes;
1889
1904
  readonly label?: string | null | undefined;
1890
- readonly value?: string | null | undefined;
1891
- readonly placeholder?: string | null | undefined;
1892
- readonly required?: boolean | null | undefined;
1905
+ readonly value?: string | undefined;
1906
+ readonly placeholder?: string | undefined;
1907
+ readonly required?: boolean | undefined;
1893
1908
  readonly min_length?: number | null | undefined;
1894
1909
  readonly max_length?: number | null | undefined;
1895
1910
  }
@@ -1897,16 +1912,16 @@ export interface UserSelectComponentResponse {
1897
1912
  readonly type: 5;
1898
1913
  readonly id: number;
1899
1914
  readonly custom_id: string;
1900
- readonly placeholder?: string | null | undefined;
1915
+ readonly placeholder?: string | undefined;
1901
1916
  readonly min_values?: number | null | undefined;
1902
1917
  readonly max_values?: number | null | undefined;
1903
- readonly disabled?: boolean | null | undefined;
1904
- readonly default_values?: ReadonlyArray<UserSelectDefaultValueResponse> | null | undefined;
1918
+ readonly disabled?: boolean | undefined;
1919
+ readonly default_values?: ReadonlyArray<UserSelectDefaultValueResponse> | undefined;
1905
1920
  }
1906
1921
  export interface ActionRowComponentResponse {
1907
1922
  readonly type: 1;
1908
1923
  readonly id: number;
1909
- readonly components?: ReadonlyArray<ButtonComponentResponse | ChannelSelectComponentResponse | MentionableSelectComponentResponse | RoleSelectComponentResponse | StringSelectComponentResponse | TextInputComponentResponse | UserSelectComponentResponse> | null | undefined;
1924
+ readonly components: ReadonlyArray<ButtonComponentResponse | ChannelSelectComponentResponse | MentionableSelectComponentResponse | RoleSelectComponentResponse | StringSelectComponentResponse | TextInputComponentResponse | UserSelectComponentResponse>;
1910
1925
  }
1911
1926
  export interface UnfurledMediaResponse {
1912
1927
  readonly id: SnowflakeType;
@@ -1915,7 +1930,7 @@ export interface UnfurledMediaResponse {
1915
1930
  readonly width?: number | null | undefined;
1916
1931
  readonly height?: number | null | undefined;
1917
1932
  readonly content_type?: string | null | undefined;
1918
- readonly attachment_id?: SnowflakeType | null | undefined;
1933
+ readonly attachment_id?: SnowflakeType | undefined;
1919
1934
  }
1920
1935
  export interface FileComponentResponse {
1921
1936
  readonly type: 13;
@@ -1977,12 +1992,6 @@ export interface ContainerComponentResponse {
1977
1992
  readonly components: ReadonlyArray<ActionRowComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
1978
1993
  readonly spoiler: boolean;
1979
1994
  }
1980
- export interface ResolvedObjectsResponse {
1981
- readonly users: Record<string, unknown>;
1982
- readonly members: Record<string, unknown>;
1983
- readonly channels: Record<string, unknown>;
1984
- readonly roles: Record<string, unknown>;
1985
- }
1986
1995
  export declare const StickerTypes: {
1987
1996
  /**
1988
1997
  * an official sticker in a pack, part of Nitro or in a removed purchasable pack
@@ -2010,7 +2019,7 @@ export interface GuildStickerResponse {
2010
2019
  readonly description?: string | null | undefined;
2011
2020
  readonly available: boolean;
2012
2021
  readonly guild_id: SnowflakeType;
2013
- readonly user?: UserResponse | null | undefined;
2022
+ readonly user?: UserResponse | undefined;
2014
2023
  }
2015
2024
  export interface StandardStickerResponse {
2016
2025
  readonly id: SnowflakeType;
@@ -2039,9 +2048,9 @@ export interface BasicApplicationResponse {
2039
2048
  readonly icon?: string | null | undefined;
2040
2049
  readonly description: string;
2041
2050
  readonly type?: ApplicationTypes | null | undefined;
2042
- readonly cover_image?: string | null | undefined;
2043
- readonly primary_sku_id?: SnowflakeType | null | undefined;
2044
- readonly bot?: UserResponse | null | undefined;
2051
+ readonly cover_image?: string | undefined;
2052
+ readonly primary_sku_id?: SnowflakeType | undefined;
2053
+ readonly bot?: UserResponse | undefined;
2045
2054
  }
2046
2055
  export declare const InteractionTypes: {
2047
2056
  /**
@@ -2070,15 +2079,15 @@ export interface MessageInteractionResponse {
2070
2079
  readonly id: SnowflakeType;
2071
2080
  readonly type: InteractionTypes;
2072
2081
  readonly name: string;
2073
- readonly user?: UserResponse | null | undefined;
2074
- readonly name_localized?: string | null | undefined;
2082
+ readonly user?: UserResponse | undefined;
2083
+ readonly name_localized?: string | undefined;
2075
2084
  }
2076
2085
  export type MessageReferenceType = 0;
2077
2086
  export interface MessageReferenceResponse {
2078
- readonly type?: MessageReferenceType | null | undefined;
2087
+ readonly type: MessageReferenceType;
2079
2088
  readonly channel_id: SnowflakeType;
2080
- readonly message_id?: SnowflakeType | null | undefined;
2081
- readonly guild_id?: SnowflakeType | null | undefined;
2089
+ readonly message_id?: SnowflakeType | undefined;
2090
+ readonly guild_id?: SnowflakeType | undefined;
2082
2091
  }
2083
2092
  export interface MessageMentionChannelResponse {
2084
2093
  readonly id: SnowflakeType;
@@ -2099,16 +2108,22 @@ export interface GuildProductPurchaseResponse {
2099
2108
  }
2100
2109
  export interface PurchaseNotificationResponse {
2101
2110
  readonly type: PurchaseType;
2102
- 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;
2103
2118
  }
2104
2119
  export interface MessageReactionEmojiResponse {
2105
2120
  readonly id?: SnowflakeType | null | undefined;
2106
2121
  readonly name?: string | null | undefined;
2107
- readonly animated?: boolean | null | undefined;
2122
+ readonly animated?: boolean | undefined;
2108
2123
  }
2109
2124
  export interface PollMediaResponse {
2110
- readonly text?: string | null | undefined;
2111
- readonly emoji?: MessageReactionEmojiResponse | null | undefined;
2125
+ readonly text?: string | undefined;
2126
+ readonly emoji?: MessageReactionEmojiResponse | undefined;
2112
2127
  }
2113
2128
  export interface PollAnswerResponse {
2114
2129
  readonly answer_id: number;
@@ -2118,10 +2133,10 @@ export type PollLayoutTypes = number;
2118
2133
  export interface PollResultsEntryResponse {
2119
2134
  readonly id: number;
2120
2135
  readonly count: number;
2121
- readonly me_voted?: boolean | null | undefined;
2136
+ readonly me_voted: boolean;
2122
2137
  }
2123
2138
  export interface PollResultsResponse {
2124
- readonly answer_counts?: ReadonlyArray<PollResultsEntryResponse> | null | undefined;
2139
+ readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>;
2125
2140
  readonly is_finalized: boolean;
2126
2141
  }
2127
2142
  export interface PollResponse {
@@ -2132,29 +2147,58 @@ export interface PollResponse {
2132
2147
  readonly layout_type: PollLayoutTypes;
2133
2148
  readonly results: PollResultsResponse;
2134
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
+ }
2135
2179
  export interface ApplicationCommandInteractionMetadataResponse {
2136
2180
  readonly id: SnowflakeType;
2137
2181
  readonly type: 2;
2138
- readonly user?: UserResponse | null | undefined;
2182
+ readonly user?: UserResponse | undefined;
2139
2183
  readonly authorizing_integration_owners: Record<string, unknown>;
2140
- readonly original_response_message_id?: SnowflakeType | null | undefined;
2141
- readonly target_user?: UserResponse | null | undefined;
2142
- 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;
2143
2187
  }
2144
2188
  export interface MessageComponentInteractionMetadataResponse {
2145
2189
  readonly id: SnowflakeType;
2146
2190
  readonly type: 3;
2147
- readonly user?: UserResponse | null | undefined;
2191
+ readonly user?: UserResponse | undefined;
2148
2192
  readonly authorizing_integration_owners: Record<string, unknown>;
2149
- readonly original_response_message_id?: SnowflakeType | null | undefined;
2193
+ readonly original_response_message_id?: SnowflakeType | undefined;
2150
2194
  readonly interacted_message_id: SnowflakeType;
2151
2195
  }
2152
2196
  export interface ModalSubmitInteractionMetadataResponse {
2153
2197
  readonly id: SnowflakeType;
2154
2198
  readonly type: 5;
2155
- readonly user?: UserResponse | null | undefined;
2199
+ readonly user?: UserResponse | undefined;
2156
2200
  readonly authorizing_integration_owners: Record<string, unknown>;
2157
- readonly original_response_message_id?: SnowflakeType | null | undefined;
2201
+ readonly original_response_message_id?: SnowflakeType | undefined;
2158
2202
  readonly triggering_interaction_metadata: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse;
2159
2203
  }
2160
2204
  export interface MinimalContentMessageResponse {
@@ -2168,12 +2212,11 @@ export interface MinimalContentMessageResponse {
2168
2212
  readonly edited_timestamp?: string | null | undefined;
2169
2213
  readonly flags: number;
2170
2214
  readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2171
- readonly resolved?: ResolvedObjectsResponse | null | undefined;
2172
- readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | null | undefined;
2173
- readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | null | undefined;
2215
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
2216
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
2174
2217
  }
2175
2218
  export interface MessageSnapshotResponse {
2176
- readonly message?: MinimalContentMessageResponse | null | undefined;
2219
+ readonly message: MinimalContentMessageResponse;
2177
2220
  }
2178
2221
  export interface MessageReactionCountDetailsResponse {
2179
2222
  readonly burst: number;
@@ -2198,31 +2241,32 @@ export interface BasicMessageResponse {
2198
2241
  readonly edited_timestamp?: string | null | undefined;
2199
2242
  readonly flags: number;
2200
2243
  readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2201
- readonly resolved?: ResolvedObjectsResponse | null | undefined;
2202
- readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | null | undefined;
2203
- readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | null | undefined;
2244
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
2245
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
2204
2246
  readonly id: SnowflakeType;
2205
2247
  readonly channel_id: SnowflakeType;
2206
2248
  readonly author: UserResponse;
2207
2249
  readonly pinned: boolean;
2208
2250
  readonly mention_everyone: boolean;
2209
2251
  readonly tts: boolean;
2210
- readonly call?: MessageCallResponse | null | undefined;
2211
- readonly activity?: MessageActivityResponse | null | undefined;
2212
- readonly application?: BasicApplicationResponse | null | undefined;
2213
- readonly application_id?: SnowflakeType | null | undefined;
2214
- 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;
2215
2257
  readonly nonce?: number | string | null | undefined;
2216
- readonly webhook_id?: SnowflakeType | null | undefined;
2217
- readonly message_reference?: MessageReferenceResponse | null | undefined;
2218
- readonly thread?: ThreadResponse | null | undefined;
2219
- readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | null | undefined;
2220
- readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | null | undefined;
2221
- readonly purchase_notification?: PurchaseNotificationResponse | null | undefined;
2222
- readonly position?: number | null | undefined;
2223
- readonly poll?: PollResponse | null | undefined;
2224
- readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | null | undefined;
2225
- 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;
2226
2270
  }
2227
2271
  export interface MessageResponse {
2228
2272
  readonly type: MessageType;
@@ -2235,32 +2279,33 @@ export interface MessageResponse {
2235
2279
  readonly edited_timestamp?: string | null | undefined;
2236
2280
  readonly flags: number;
2237
2281
  readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
2238
- readonly resolved?: ResolvedObjectsResponse | null | undefined;
2239
- readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | null | undefined;
2240
- readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | null | undefined;
2282
+ readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
2283
+ readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined;
2241
2284
  readonly id: SnowflakeType;
2242
2285
  readonly channel_id: SnowflakeType;
2243
2286
  readonly author: UserResponse;
2244
2287
  readonly pinned: boolean;
2245
2288
  readonly mention_everyone: boolean;
2246
2289
  readonly tts: boolean;
2247
- readonly call?: MessageCallResponse | null | undefined;
2248
- readonly activity?: MessageActivityResponse | null | undefined;
2249
- readonly application?: BasicApplicationResponse | null | undefined;
2250
- readonly application_id?: SnowflakeType | null | undefined;
2251
- 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;
2252
2295
  readonly nonce?: number | string | null | undefined;
2253
- readonly webhook_id?: SnowflakeType | null | undefined;
2254
- readonly message_reference?: MessageReferenceResponse | null | undefined;
2255
- readonly thread?: ThreadResponse | null | undefined;
2256
- readonly mention_channels?: ReadonlyArray<null | MessageMentionChannelResponse> | null | undefined;
2257
- readonly role_subscription_data?: MessageRoleSubscriptionDataResponse | null | undefined;
2258
- readonly purchase_notification?: PurchaseNotificationResponse | null | undefined;
2259
- readonly position?: number | null | undefined;
2260
- readonly poll?: PollResponse | null | undefined;
2261
- readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | null | undefined;
2262
- readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | null | undefined;
2263
- 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;
2264
2309
  readonly referenced_message?: BasicMessageResponse | null | undefined;
2265
2310
  }
2266
2311
  export type ListMessages200 = ReadonlyArray<MessageResponse>;
@@ -2345,19 +2390,20 @@ export interface MessageAllowedMentionsRequest {
2345
2390
  readonly roles?: ReadonlyArray<null | SnowflakeType> | null | undefined;
2346
2391
  readonly replied_user?: boolean | null | undefined;
2347
2392
  }
2348
- export interface ComponentEmojiForMessageRequest {
2393
+ export interface ComponentEmojiForRequest {
2349
2394
  readonly id?: SnowflakeType | null | undefined;
2350
2395
  readonly name: string;
2351
2396
  }
2352
2397
  export interface ButtonComponentForMessageRequest {
2353
2398
  readonly type: 2;
2399
+ readonly id?: number | null | undefined;
2354
2400
  readonly custom_id?: string | null | undefined;
2355
2401
  readonly style: ButtonStyleTypes;
2356
2402
  readonly label?: string | null | undefined;
2357
2403
  readonly disabled?: boolean | null | undefined;
2358
2404
  readonly url?: string | null | undefined;
2359
2405
  readonly sku_id?: SnowflakeType | null | undefined;
2360
- readonly emoji?: ComponentEmojiForMessageRequest | null | undefined;
2406
+ readonly emoji?: ComponentEmojiForRequest | null | undefined;
2361
2407
  }
2362
2408
  export interface ChannelSelectDefaultValue {
2363
2409
  readonly type: "channel";
@@ -2365,11 +2411,13 @@ export interface ChannelSelectDefaultValue {
2365
2411
  }
2366
2412
  export interface ChannelSelectComponentForMessageRequest {
2367
2413
  readonly type: 8;
2414
+ readonly id?: number | null | undefined;
2368
2415
  readonly custom_id: string;
2369
2416
  readonly placeholder?: string | null | undefined;
2370
2417
  readonly min_values?: number | null | undefined;
2371
2418
  readonly max_values?: number | null | undefined;
2372
2419
  readonly disabled?: boolean | null | undefined;
2420
+ readonly required?: boolean | null | undefined;
2373
2421
  readonly default_values?: ReadonlyArray<ChannelSelectDefaultValue> | null | undefined;
2374
2422
  readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
2375
2423
  }
@@ -2383,49 +2431,58 @@ export interface UserSelectDefaultValue {
2383
2431
  }
2384
2432
  export interface MentionableSelectComponentForMessageRequest {
2385
2433
  readonly type: 7;
2434
+ readonly id?: number | null | undefined;
2386
2435
  readonly custom_id: string;
2387
2436
  readonly placeholder?: string | null | undefined;
2388
2437
  readonly min_values?: number | null | undefined;
2389
2438
  readonly max_values?: number | null | undefined;
2390
2439
  readonly disabled?: boolean | null | undefined;
2440
+ readonly required?: boolean | null | undefined;
2391
2441
  readonly default_values?: ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue> | null | undefined;
2392
2442
  }
2393
2443
  export interface RoleSelectComponentForMessageRequest {
2394
2444
  readonly type: 6;
2445
+ readonly id?: number | null | undefined;
2395
2446
  readonly custom_id: string;
2396
2447
  readonly placeholder?: string | null | undefined;
2397
2448
  readonly min_values?: number | null | undefined;
2398
2449
  readonly max_values?: number | null | undefined;
2399
2450
  readonly disabled?: boolean | null | undefined;
2451
+ readonly required?: boolean | null | undefined;
2400
2452
  readonly default_values?: ReadonlyArray<RoleSelectDefaultValue> | null | undefined;
2401
2453
  }
2402
- export interface StringSelectOptionForMessageRequest {
2454
+ export interface StringSelectOptionForRequest {
2403
2455
  readonly label: string;
2404
2456
  readonly value: string;
2405
2457
  readonly description?: string | null | undefined;
2406
2458
  readonly default?: boolean | null | undefined;
2407
- readonly emoji?: ComponentEmojiForMessageRequest | null | undefined;
2459
+ readonly emoji?: ComponentEmojiForRequest | null | undefined;
2408
2460
  }
2409
2461
  export interface StringSelectComponentForMessageRequest {
2410
2462
  readonly type: 3;
2463
+ readonly id?: number | null | undefined;
2411
2464
  readonly custom_id: string;
2412
2465
  readonly placeholder?: string | null | undefined;
2413
2466
  readonly min_values?: number | null | undefined;
2414
2467
  readonly max_values?: number | null | undefined;
2415
2468
  readonly disabled?: boolean | null | undefined;
2416
- readonly options: ReadonlyArray<StringSelectOptionForMessageRequest>;
2469
+ readonly required?: boolean | null | undefined;
2470
+ readonly options: ReadonlyArray<StringSelectOptionForRequest>;
2417
2471
  }
2418
2472
  export interface UserSelectComponentForMessageRequest {
2419
2473
  readonly type: 5;
2474
+ readonly id?: number | null | undefined;
2420
2475
  readonly custom_id: string;
2421
2476
  readonly placeholder?: string | null | undefined;
2422
2477
  readonly min_values?: number | null | undefined;
2423
2478
  readonly max_values?: number | null | undefined;
2424
2479
  readonly disabled?: boolean | null | undefined;
2480
+ readonly required?: boolean | null | undefined;
2425
2481
  readonly default_values?: ReadonlyArray<UserSelectDefaultValue> | null | undefined;
2426
2482
  }
2427
2483
  export interface ActionRowComponentForMessageRequest {
2428
2484
  readonly type: 1;
2485
+ readonly id?: number | null | undefined;
2429
2486
  readonly components: ReadonlyArray<ButtonComponentForMessageRequest | ChannelSelectComponentForMessageRequest | MentionableSelectComponentForMessageRequest | RoleSelectComponentForMessageRequest | StringSelectComponentForMessageRequest | UserSelectComponentForMessageRequest>;
2430
2487
  }
2431
2488
  export interface UnfurledMediaRequestWithAttachmentReferenceRequired {
@@ -2433,6 +2490,7 @@ export interface UnfurledMediaRequestWithAttachmentReferenceRequired {
2433
2490
  }
2434
2491
  export interface FileComponentForMessageRequest {
2435
2492
  readonly type: 13;
2493
+ readonly id?: number | null | undefined;
2436
2494
  readonly spoiler?: boolean | null | undefined;
2437
2495
  readonly file: UnfurledMediaRequestWithAttachmentReferenceRequired;
2438
2496
  }
@@ -2446,30 +2504,36 @@ export interface MediaGalleryItemRequest {
2446
2504
  }
2447
2505
  export interface MediaGalleryComponentForMessageRequest {
2448
2506
  readonly type: 12;
2507
+ readonly id?: number | null | undefined;
2449
2508
  readonly items: ReadonlyArray<MediaGalleryItemRequest>;
2450
2509
  }
2451
2510
  export interface TextDisplayComponentForMessageRequest {
2452
2511
  readonly type: 10;
2512
+ readonly id?: number | null | undefined;
2453
2513
  readonly content: string;
2454
2514
  }
2455
2515
  export interface ThumbnailComponentForMessageRequest {
2456
2516
  readonly type: 11;
2517
+ readonly id?: number | null | undefined;
2457
2518
  readonly description?: string | null | undefined;
2458
2519
  readonly spoiler?: boolean | null | undefined;
2459
2520
  readonly media: UnfurledMediaRequest;
2460
2521
  }
2461
2522
  export interface SectionComponentForMessageRequest {
2462
2523
  readonly type: 9;
2524
+ readonly id?: number | null | undefined;
2463
2525
  readonly components: ReadonlyArray<TextDisplayComponentForMessageRequest>;
2464
2526
  readonly accessory: ButtonComponentForMessageRequest | ThumbnailComponentForMessageRequest;
2465
2527
  }
2466
2528
  export interface SeparatorComponentForMessageRequest {
2467
2529
  readonly type: 14;
2530
+ readonly id?: number | null | undefined;
2468
2531
  readonly spacing?: MessageComponentSeparatorSpacingSize | null | undefined;
2469
2532
  readonly divider?: boolean | null | undefined;
2470
2533
  }
2471
2534
  export interface ContainerComponentForMessageRequest {
2472
2535
  readonly type: 17;
2536
+ readonly id?: number | null | undefined;
2473
2537
  readonly accent_color?: number | null | undefined;
2474
2538
  readonly components: ReadonlyArray<ActionRowComponentForMessageRequest | FileComponentForMessageRequest | MediaGalleryComponentForMessageRequest | SectionComponentForMessageRequest | SeparatorComponentForMessageRequest | TextDisplayComponentForMessageRequest>;
2475
2539
  readonly spoiler?: boolean | null | undefined;
@@ -2511,6 +2575,12 @@ export interface PollCreateRequest {
2511
2575
  readonly layout_type?: PollLayoutTypes | null | undefined;
2512
2576
  readonly duration?: number | null | undefined;
2513
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
+ }
2514
2584
  export interface ConfettiPotionCreateRequest {
2515
2585
  }
2516
2586
  export interface MessageReferenceRequest {
@@ -2529,6 +2599,7 @@ export interface MessageCreateRequest {
2529
2599
  readonly flags?: number | null | undefined;
2530
2600
  readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
2531
2601
  readonly poll?: PollCreateRequest | null | undefined;
2602
+ readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
2532
2603
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
2533
2604
  readonly message_reference?: MessageReferenceRequest | null | undefined;
2534
2605
  readonly nonce?: number | string | null | undefined;
@@ -2547,7 +2618,7 @@ export interface PinnedMessageResponse {
2547
2618
  readonly message: MessageResponse;
2548
2619
  }
2549
2620
  export interface PinnedMessagesResponse {
2550
- readonly items?: ReadonlyArray<PinnedMessageResponse> | null | undefined;
2621
+ readonly items: ReadonlyArray<PinnedMessageResponse>;
2551
2622
  readonly has_more: boolean;
2552
2623
  }
2553
2624
  export interface MessageEditRequestPartial {
@@ -2592,7 +2663,7 @@ export interface GetAnswerVotersParams {
2592
2663
  readonly limit?: number | undefined;
2593
2664
  }
2594
2665
  export interface PollAnswerDetailsResponse {
2595
- readonly users?: ReadonlyArray<UserResponse> | null | undefined;
2666
+ readonly users: ReadonlyArray<UserResponse>;
2596
2667
  }
2597
2668
  export interface AddGroupDmUserRequest {
2598
2669
  readonly access_token?: string | null | undefined;
@@ -2621,6 +2692,7 @@ export interface BaseCreateMessageCreateRequest {
2621
2692
  readonly flags?: number | null | undefined;
2622
2693
  readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
2623
2694
  readonly poll?: PollCreateRequest | null | undefined;
2695
+ readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
2624
2696
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
2625
2697
  }
2626
2698
  export interface CreateForumThreadRequest {
@@ -2647,19 +2719,19 @@ export interface CreatedThreadResponse {
2647
2719
  readonly guild_id: SnowflakeType;
2648
2720
  readonly name: string;
2649
2721
  readonly parent_id?: SnowflakeType | null | undefined;
2650
- readonly rate_limit_per_user?: number | null | undefined;
2651
- readonly bitrate?: number | null | undefined;
2652
- 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;
2653
2725
  readonly rtc_region?: string | null | undefined;
2654
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
2726
+ readonly video_quality_mode?: VideoQualityModes | undefined;
2655
2727
  readonly permissions?: string | null | undefined;
2656
2728
  readonly owner_id: SnowflakeType;
2657
- readonly thread_metadata?: ThreadMetadataResponse | null | undefined;
2729
+ readonly thread_metadata: ThreadMetadataResponse;
2658
2730
  readonly message_count: number;
2659
2731
  readonly member_count: number;
2660
2732
  readonly total_message_sent: number;
2661
- readonly applied_tags?: ReadonlyArray<SnowflakeType> | null | undefined;
2662
- readonly member?: ThreadMemberResponse | null | undefined;
2733
+ readonly applied_tags?: ReadonlyArray<SnowflakeType> | undefined;
2734
+ readonly member?: ThreadMemberResponse | undefined;
2663
2735
  }
2664
2736
  export interface ListPrivateArchivedThreadsParams {
2665
2737
  readonly before?: string | undefined;
@@ -2668,8 +2740,8 @@ export interface ListPrivateArchivedThreadsParams {
2668
2740
  export interface ThreadsResponse {
2669
2741
  readonly threads: ReadonlyArray<ThreadResponse>;
2670
2742
  readonly members: ReadonlyArray<ThreadMemberResponse>;
2671
- readonly has_more?: boolean | null | undefined;
2672
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined;
2743
+ readonly has_more: boolean;
2744
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined;
2673
2745
  }
2674
2746
  export interface ListPublicArchivedThreadsParams {
2675
2747
  readonly before?: string | undefined;
@@ -2703,9 +2775,9 @@ export interface ThreadSearchParams {
2703
2775
  export interface ThreadSearchResponse {
2704
2776
  readonly threads: ReadonlyArray<ThreadResponse>;
2705
2777
  readonly members: ReadonlyArray<ThreadMemberResponse>;
2706
- readonly has_more?: boolean | null | undefined;
2707
- readonly first_messages?: ReadonlyArray<MessageResponse> | null | undefined;
2708
- readonly total_results?: number | null | undefined;
2778
+ readonly has_more: boolean;
2779
+ readonly first_messages?: ReadonlyArray<MessageResponse> | undefined;
2780
+ readonly total_results: number;
2709
2781
  }
2710
2782
  export interface TypingIndicatorResponse {
2711
2783
  }
@@ -2736,7 +2808,7 @@ export interface ApplicationIncomingWebhookResponse {
2736
2808
  readonly id: SnowflakeType;
2737
2809
  readonly name: string;
2738
2810
  readonly type: 3;
2739
- readonly user?: UserResponse | null | undefined;
2811
+ readonly user?: UserResponse | undefined;
2740
2812
  }
2741
2813
  export interface WebhookSourceGuildResponse {
2742
2814
  readonly id: SnowflakeType;
@@ -2755,9 +2827,9 @@ export interface ChannelFollowerWebhookResponse {
2755
2827
  readonly id: SnowflakeType;
2756
2828
  readonly name: string;
2757
2829
  readonly type: 2;
2758
- readonly user?: UserResponse | null | undefined;
2759
- readonly source_guild?: WebhookSourceGuildResponse | null | undefined;
2760
- readonly source_channel?: WebhookSourceChannelResponse | null | undefined;
2830
+ readonly user?: UserResponse | undefined;
2831
+ readonly source_guild?: WebhookSourceGuildResponse | undefined;
2832
+ readonly source_channel?: WebhookSourceChannelResponse | undefined;
2761
2833
  }
2762
2834
  export interface GuildIncomingWebhookResponse {
2763
2835
  readonly application_id?: SnowflakeType | null | undefined;
@@ -2767,9 +2839,9 @@ export interface GuildIncomingWebhookResponse {
2767
2839
  readonly id: SnowflakeType;
2768
2840
  readonly name: string;
2769
2841
  readonly type: 1;
2770
- readonly user?: UserResponse | null | undefined;
2771
- readonly token?: string | null | undefined;
2772
- readonly url?: string | null | undefined;
2842
+ readonly user?: UserResponse | undefined;
2843
+ readonly token?: string | undefined;
2844
+ readonly url?: string | undefined;
2773
2845
  }
2774
2846
  export type ListChannelWebhooks200 = ReadonlyArray<ApplicationIncomingWebhookResponse | ChannelFollowerWebhookResponse | GuildIncomingWebhookResponse>;
2775
2847
  export interface CreateWebhookRequest {
@@ -2963,69 +3035,89 @@ export declare const AfkTimeouts: {
2963
3035
  readonly ONE_HOUR: 3600;
2964
3036
  };
2965
3037
  export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts];
2966
- export interface CreateGuildRequestRoleItem {
3038
+ export interface GuildTemplateRoleResponse {
2967
3039
  readonly id: number;
2968
- readonly name?: string | null | undefined;
2969
- readonly permissions?: number | null | undefined;
2970
- readonly color?: number | null | undefined;
2971
- readonly hoist?: boolean | null | undefined;
2972
- readonly mentionable?: boolean | null | undefined;
3040
+ readonly name: string;
3041
+ readonly permissions: string;
3042
+ readonly color: number;
3043
+ readonly hoist: boolean;
3044
+ readonly mentionable: boolean;
3045
+ readonly icon?: string | null | undefined;
2973
3046
  readonly unicode_emoji?: string | null | undefined;
2974
3047
  }
2975
- export interface CreateOrUpdateThreadTagRequest {
3048
+ export interface GuildTemplateChannelTags {
3049
+ readonly id?: number | null | undefined;
2976
3050
  readonly name: string;
2977
3051
  readonly emoji_id?: SnowflakeType | null | undefined;
2978
3052
  readonly emoji_name?: string | null | undefined;
2979
3053
  readonly moderated?: boolean | null | undefined;
2980
3054
  }
2981
- export interface CreateGuildRequestChannelItem {
2982
- readonly type?: 0 | 2 | 4 | null | undefined;
2983
- readonly name: string;
3055
+ export interface IconEmojiResponse {
3056
+ }
3057
+ export interface GuildTemplateChannelResponse {
3058
+ readonly id?: number | null | undefined;
3059
+ readonly type: 0 | 2 | 4 | 15;
3060
+ readonly name?: string | null | undefined;
2984
3061
  readonly position?: number | null | undefined;
2985
3062
  readonly topic?: string | null | undefined;
2986
- readonly bitrate?: number | null | undefined;
2987
- readonly user_limit?: number | null | undefined;
2988
- readonly nsfw?: boolean | null | undefined;
2989
- readonly rate_limit_per_user?: number | null | undefined;
3063
+ readonly bitrate: number;
3064
+ readonly user_limit: number;
3065
+ readonly nsfw: boolean;
3066
+ readonly rate_limit_per_user: number;
2990
3067
  readonly parent_id?: SnowflakeType | null | undefined;
2991
- readonly permission_overwrites?: ReadonlyArray<ChannelPermissionOverwriteRequest> | null | undefined;
2992
- readonly rtc_region?: string | null | undefined;
2993
- readonly video_quality_mode?: VideoQualityModes | null | undefined;
2994
3068
  readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined;
2995
- readonly default_reaction_emoji?: UpdateDefaultReactionEmojiRequest | null | undefined;
3069
+ readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>;
3070
+ readonly available_tags?: ReadonlyArray<GuildTemplateChannelTags> | null | undefined;
3071
+ readonly template: string;
3072
+ readonly default_reaction_emoji?: DefaultReactionEmojiResponse | null | undefined;
2996
3073
  readonly default_thread_rate_limit_per_user?: number | null | undefined;
2997
3074
  readonly default_sort_order?: ThreadSortOrder | null | undefined;
2998
3075
  readonly default_forum_layout?: ForumLayout | null | undefined;
2999
3076
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
3000
- readonly id?: SnowflakeType | null | undefined;
3001
- readonly available_tags?: ReadonlyArray<CreateOrUpdateThreadTagRequest> | null | undefined;
3077
+ readonly icon_emoji?: IconEmojiResponse | null | undefined;
3078
+ readonly theme_color?: number | null | undefined;
3002
3079
  }
3003
- export interface GuildCreateRequest {
3004
- readonly description?: string | null | undefined;
3080
+ export interface GuildTemplateSnapshotResponse {
3005
3081
  readonly name: string;
3082
+ readonly description?: string | null | undefined;
3006
3083
  readonly region?: string | null | undefined;
3007
- readonly icon?: string | null | undefined;
3008
- readonly verification_level?: VerificationLevels | null | undefined;
3009
- readonly default_message_notifications?: UserNotificationSettings | null | undefined;
3010
- readonly explicit_content_filter?: GuildExplicitContentFilterTypes | null | undefined;
3011
- readonly preferred_locale?: AvailableLocalesEnum | null | undefined;
3012
- readonly afk_timeout?: AfkTimeouts | null | undefined;
3013
- readonly roles?: ReadonlyArray<CreateGuildRequestRoleItem> | null | undefined;
3014
- readonly channels?: ReadonlyArray<CreateGuildRequestChannelItem> | null | undefined;
3084
+ readonly verification_level: VerificationLevels;
3085
+ readonly default_message_notifications: UserNotificationSettings;
3086
+ readonly explicit_content_filter: GuildExplicitContentFilterTypes;
3087
+ readonly preferred_locale: AvailableLocalesEnum;
3015
3088
  readonly afk_channel_id?: SnowflakeType | null | undefined;
3089
+ readonly afk_timeout: AfkTimeouts;
3016
3090
  readonly system_channel_id?: SnowflakeType | null | undefined;
3017
- readonly system_channel_flags?: number | null | undefined;
3018
- }
3019
- export interface GuildRoleColorsResponse {
3020
- readonly primary_color?: number | null | undefined;
3021
- readonly secondary_color?: number | null | undefined;
3022
- readonly tertiary_color?: number | null | undefined;
3091
+ readonly system_channel_flags: number;
3092
+ readonly roles: ReadonlyArray<GuildTemplateRoleResponse>;
3093
+ readonly channels: ReadonlyArray<GuildTemplateChannelResponse>;
3094
+ }
3095
+ export interface GuildTemplateResponse {
3096
+ readonly code: string;
3097
+ readonly name: string;
3098
+ readonly description?: string | null | undefined;
3099
+ readonly usage_count: number;
3100
+ readonly creator_id: SnowflakeType;
3101
+ readonly creator?: UserResponse | null | undefined;
3102
+ readonly created_at: string;
3103
+ readonly updated_at: string;
3104
+ readonly source_guild_id: SnowflakeType;
3105
+ readonly serialized_source_guild: GuildTemplateSnapshotResponse;
3106
+ readonly is_dirty?: boolean | null | undefined;
3107
+ }
3108
+ export interface GetGuildParams {
3109
+ readonly with_counts?: boolean | undefined;
3110
+ }
3111
+ export interface GuildRoleColorsResponse {
3112
+ readonly primary_color: number;
3113
+ readonly secondary_color?: number | null | undefined;
3114
+ readonly tertiary_color?: number | null | undefined;
3023
3115
  }
3024
3116
  export interface GuildRoleTagsResponse {
3025
3117
  readonly premium_subscriber?: null | undefined;
3026
- readonly bot_id?: SnowflakeType | null | undefined;
3027
- readonly integration_id?: SnowflakeType | null | undefined;
3028
- readonly subscription_listing_id?: SnowflakeType | null | undefined;
3118
+ readonly bot_id?: SnowflakeType | undefined;
3119
+ readonly integration_id?: SnowflakeType | undefined;
3120
+ readonly subscription_listing_id?: SnowflakeType | undefined;
3029
3121
  readonly available_for_purchase?: null | undefined;
3030
3122
  readonly guild_connections?: null | undefined;
3031
3123
  }
@@ -3036,13 +3128,13 @@ export interface GuildRoleResponse {
3036
3128
  readonly permissions: string;
3037
3129
  readonly position: number;
3038
3130
  readonly color: number;
3039
- readonly colors?: GuildRoleColorsResponse | null | undefined;
3131
+ readonly colors: GuildRoleColorsResponse;
3040
3132
  readonly hoist: boolean;
3041
3133
  readonly managed: boolean;
3042
3134
  readonly mentionable: boolean;
3043
3135
  readonly icon?: string | null | undefined;
3044
3136
  readonly unicode_emoji?: string | null | undefined;
3045
- readonly tags?: GuildRoleTagsResponse | null | undefined;
3137
+ readonly tags?: GuildRoleTagsResponse | undefined;
3046
3138
  readonly flags: number;
3047
3139
  }
3048
3140
  export declare const GuildMFALevel: {
@@ -3075,7 +3167,7 @@ export declare const PremiumGuildTiers: {
3075
3167
  readonly TIER_3: 3;
3076
3168
  };
3077
3169
  export type PremiumGuildTiers = (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers];
3078
- export interface GuildResponse {
3170
+ export interface GuildWithCountsResponse {
3079
3171
  readonly id: SnowflakeType;
3080
3172
  readonly name: string;
3081
3173
  readonly icon?: string | null | undefined;
@@ -3100,9 +3192,9 @@ export interface GuildResponse {
3100
3192
  readonly mfa_level: GuildMFALevel;
3101
3193
  readonly explicit_content_filter: GuildExplicitContentFilterTypes;
3102
3194
  readonly max_presences?: number | null | undefined;
3103
- readonly max_members?: number | null | undefined;
3104
- readonly max_stage_video_channel_users?: number | null | undefined;
3105
- readonly max_video_channel_users?: number | null | undefined;
3195
+ readonly max_members: number;
3196
+ readonly max_stage_video_channel_users: number;
3197
+ readonly max_video_channel_users: number;
3106
3198
  readonly vanity_url_code?: string | null | undefined;
3107
3199
  readonly premium_tier: PremiumGuildTiers;
3108
3200
  readonly premium_subscription_count: number;
@@ -3115,84 +3207,34 @@ export interface GuildResponse {
3115
3207
  readonly nsfw_level: GuildNSFWContentLevel;
3116
3208
  readonly emojis: ReadonlyArray<EmojiResponse>;
3117
3209
  readonly stickers: ReadonlyArray<GuildStickerResponse>;
3210
+ readonly approximate_member_count?: number | null | undefined;
3211
+ readonly approximate_presence_count?: number | null | undefined;
3118
3212
  }
3119
- export interface GuildTemplateRoleResponse {
3120
- readonly id: number;
3121
- readonly name: string;
3122
- readonly permissions: string;
3123
- readonly color: number;
3124
- readonly hoist: boolean;
3125
- readonly mentionable: boolean;
3126
- readonly icon?: string | null | undefined;
3127
- readonly unicode_emoji?: string | null | undefined;
3128
- }
3129
- export interface GuildTemplateChannelTags {
3130
- readonly name: string;
3131
- readonly emoji_id?: SnowflakeType | null | undefined;
3132
- readonly emoji_name?: string | null | undefined;
3133
- readonly moderated?: boolean | null | undefined;
3134
- }
3135
- export interface IconEmojiResponse {
3136
- }
3137
- export interface GuildTemplateChannelResponse {
3138
- readonly id?: number | null | undefined;
3139
- readonly type: 0 | 2 | 4;
3140
- readonly name?: string | null | undefined;
3141
- readonly position?: number | null | undefined;
3142
- readonly topic?: string | null | undefined;
3143
- readonly bitrate: number;
3144
- readonly user_limit: number;
3145
- readonly nsfw: boolean;
3146
- readonly rate_limit_per_user: number;
3147
- readonly parent_id?: SnowflakeType | null | undefined;
3148
- readonly default_auto_archive_duration?: ThreadAutoArchiveDuration | null | undefined;
3149
- readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>;
3150
- readonly available_tags?: ReadonlyArray<GuildTemplateChannelTags> | null | undefined;
3151
- readonly template: string;
3152
- readonly default_reaction_emoji?: DefaultReactionEmojiResponse | null | undefined;
3153
- readonly default_thread_rate_limit_per_user?: number | null | undefined;
3154
- readonly default_sort_order?: ThreadSortOrder | null | undefined;
3155
- readonly default_forum_layout?: ForumLayout | null | undefined;
3156
- readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
3157
- readonly icon_emoji?: IconEmojiResponse | null | undefined;
3158
- readonly theme_color?: number | null | undefined;
3159
- }
3160
- export interface GuildTemplateSnapshotResponse {
3161
- readonly name: string;
3213
+ export interface GuildPatchRequestPartial {
3214
+ readonly name?: string | undefined;
3162
3215
  readonly description?: string | null | undefined;
3163
3216
  readonly region?: string | null | undefined;
3164
- readonly verification_level: VerificationLevels;
3165
- readonly default_message_notifications: UserNotificationSettings;
3166
- readonly explicit_content_filter: GuildExplicitContentFilterTypes;
3167
- readonly preferred_locale: AvailableLocalesEnum;
3217
+ readonly icon?: string | null | undefined;
3218
+ readonly verification_level?: VerificationLevels | null | undefined;
3219
+ readonly default_message_notifications?: UserNotificationSettings | null | undefined;
3220
+ readonly explicit_content_filter?: GuildExplicitContentFilterTypes | null | undefined;
3221
+ readonly preferred_locale?: AvailableLocalesEnum | null | undefined;
3222
+ readonly afk_timeout?: AfkTimeouts | null | undefined;
3168
3223
  readonly afk_channel_id?: SnowflakeType | null | undefined;
3169
- readonly afk_timeout: AfkTimeouts;
3170
3224
  readonly system_channel_id?: SnowflakeType | null | undefined;
3171
- readonly system_channel_flags: number;
3172
- readonly roles: ReadonlyArray<GuildTemplateRoleResponse>;
3173
- readonly channels: ReadonlyArray<GuildTemplateChannelResponse>;
3174
- }
3175
- export interface GuildTemplateResponse {
3176
- readonly code: string;
3177
- readonly name: string;
3178
- readonly description?: string | null | undefined;
3179
- readonly usage_count: number;
3180
- readonly creator_id: SnowflakeType;
3181
- readonly creator?: UserResponse | null | undefined;
3182
- readonly created_at: string;
3183
- readonly updated_at: string;
3184
- readonly source_guild_id: SnowflakeType;
3185
- readonly serialized_source_guild: GuildTemplateSnapshotResponse;
3186
- readonly is_dirty?: boolean | null | undefined;
3187
- }
3188
- export interface CreateGuildFromTemplateRequest {
3189
- readonly name: string;
3190
- readonly icon?: string | null | undefined;
3191
- }
3192
- export interface GetGuildParams {
3193
- readonly with_counts?: boolean | undefined;
3225
+ readonly owner_id?: SnowflakeType | undefined;
3226
+ readonly splash?: string | null | undefined;
3227
+ readonly banner?: string | null | undefined;
3228
+ readonly system_channel_flags?: number | null | undefined;
3229
+ readonly features?: ReadonlyArray<string> | null | undefined;
3230
+ readonly discovery_splash?: string | null | undefined;
3231
+ readonly home_header?: string | null | undefined;
3232
+ readonly rules_channel_id?: SnowflakeType | null | undefined;
3233
+ readonly safety_alerts_channel_id?: SnowflakeType | null | undefined;
3234
+ readonly public_updates_channel_id?: SnowflakeType | null | undefined;
3235
+ readonly premium_progress_bar_enabled?: boolean | null | undefined;
3194
3236
  }
3195
- export interface GuildWithCountsResponse {
3237
+ export interface GuildResponse {
3196
3238
  readonly id: SnowflakeType;
3197
3239
  readonly name: string;
3198
3240
  readonly icon?: string | null | undefined;
@@ -3217,9 +3259,9 @@ export interface GuildWithCountsResponse {
3217
3259
  readonly mfa_level: GuildMFALevel;
3218
3260
  readonly explicit_content_filter: GuildExplicitContentFilterTypes;
3219
3261
  readonly max_presences?: number | null | undefined;
3220
- readonly max_members?: number | null | undefined;
3221
- readonly max_stage_video_channel_users?: number | null | undefined;
3222
- readonly max_video_channel_users?: number | null | undefined;
3262
+ readonly max_members: number;
3263
+ readonly max_stage_video_channel_users: number;
3264
+ readonly max_video_channel_users: number;
3223
3265
  readonly vanity_url_code?: string | null | undefined;
3224
3266
  readonly premium_tier: PremiumGuildTiers;
3225
3267
  readonly premium_subscription_count: number;
@@ -3232,40 +3274,6 @@ export interface GuildWithCountsResponse {
3232
3274
  readonly nsfw_level: GuildNSFWContentLevel;
3233
3275
  readonly emojis: ReadonlyArray<EmojiResponse>;
3234
3276
  readonly stickers: ReadonlyArray<GuildStickerResponse>;
3235
- readonly approximate_member_count?: number | null | undefined;
3236
- readonly approximate_presence_count?: number | null | undefined;
3237
- }
3238
- export interface GuildPatchRequestPartial {
3239
- readonly name?: string | undefined;
3240
- readonly description?: string | null | undefined;
3241
- readonly region?: string | null | undefined;
3242
- readonly icon?: string | null | undefined;
3243
- readonly verification_level?: VerificationLevels | null | undefined;
3244
- readonly default_message_notifications?: UserNotificationSettings | null | undefined;
3245
- readonly explicit_content_filter?: GuildExplicitContentFilterTypes | null | undefined;
3246
- readonly preferred_locale?: AvailableLocalesEnum | null | undefined;
3247
- readonly afk_timeout?: AfkTimeouts | null | undefined;
3248
- readonly afk_channel_id?: SnowflakeType | null | undefined;
3249
- readonly system_channel_id?: SnowflakeType | null | undefined;
3250
- readonly owner_id?: SnowflakeType | undefined;
3251
- readonly splash?: string | null | undefined;
3252
- readonly banner?: string | null | undefined;
3253
- readonly system_channel_flags?: number | null | undefined;
3254
- readonly features?: ReadonlyArray<string> | null | undefined;
3255
- readonly discovery_splash?: string | null | undefined;
3256
- readonly home_header?: string | null | undefined;
3257
- readonly rules_channel_id?: SnowflakeType | null | undefined;
3258
- readonly safety_alerts_channel_id?: SnowflakeType | null | undefined;
3259
- readonly public_updates_channel_id?: SnowflakeType | null | undefined;
3260
- readonly premium_progress_bar_enabled?: boolean | null | undefined;
3261
- }
3262
- export interface ListGuildAuditLogEntriesParams {
3263
- readonly user_id?: SnowflakeType | undefined;
3264
- readonly target_id?: SnowflakeType | undefined;
3265
- readonly action_type?: number | undefined;
3266
- readonly before?: SnowflakeType | undefined;
3267
- readonly after?: SnowflakeType | undefined;
3268
- readonly limit?: number | undefined;
3269
3277
  }
3270
3278
  export declare const AuditLogActionTypes: {
3271
3279
  readonly GUILD_UPDATE: 1;
@@ -3343,6 +3351,14 @@ export declare const AuditLogActionTypes: {
3343
3351
  readonly GUILD_PROFILE_UPDATE: 211;
3344
3352
  };
3345
3353
  export type AuditLogActionTypes = (typeof AuditLogActionTypes)[keyof typeof AuditLogActionTypes];
3354
+ export interface ListGuildAuditLogEntriesParams {
3355
+ readonly user_id?: SnowflakeType | undefined;
3356
+ readonly target_id?: SnowflakeType | undefined;
3357
+ readonly action_type?: AuditLogActionTypes | undefined;
3358
+ readonly before?: SnowflakeType | undefined;
3359
+ readonly after?: SnowflakeType | undefined;
3360
+ readonly limit?: number | undefined;
3361
+ }
3346
3362
  export interface AuditLogObjectChangeResponse {
3347
3363
  readonly key?: string | null | undefined;
3348
3364
  }
@@ -3351,9 +3367,9 @@ export interface AuditLogEntryResponse {
3351
3367
  readonly action_type: AuditLogActionTypes;
3352
3368
  readonly user_id?: SnowflakeType | null | undefined;
3353
3369
  readonly target_id?: SnowflakeType | null | undefined;
3354
- readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | null | undefined;
3355
- readonly options?: Record<string, unknown> | null | undefined;
3356
- readonly reason?: string | null | undefined;
3370
+ readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined;
3371
+ readonly options?: Record<string, unknown> | undefined;
3372
+ readonly reason?: string | undefined;
3357
3373
  }
3358
3374
  export declare const IntegrationTypes: {
3359
3375
  readonly DISCORD: "discord";
@@ -3370,20 +3386,20 @@ export interface PartialDiscordIntegrationResponse {
3370
3386
  readonly id: SnowflakeType;
3371
3387
  readonly type: "discord";
3372
3388
  readonly name?: string | null | undefined;
3373
- readonly account?: AccountResponse | null | undefined;
3389
+ readonly account: AccountResponse;
3374
3390
  readonly application_id: SnowflakeType;
3375
3391
  }
3376
3392
  export interface PartialExternalConnectionIntegrationResponse {
3377
3393
  readonly id: SnowflakeType;
3378
3394
  readonly type: "twitch" | "youtube";
3379
3395
  readonly name?: string | null | undefined;
3380
- readonly account?: AccountResponse | null | undefined;
3396
+ readonly account: AccountResponse;
3381
3397
  }
3382
3398
  export interface PartialGuildSubscriptionIntegrationResponse {
3383
3399
  readonly id: SnowflakeType;
3384
3400
  readonly type: "guild_subscription";
3385
3401
  readonly name?: string | null | undefined;
3386
- readonly account?: AccountResponse | null | undefined;
3402
+ readonly account: AccountResponse;
3387
3403
  }
3388
3404
  export interface EntityMetadataExternalResponse {
3389
3405
  readonly location: string;
@@ -3395,14 +3411,14 @@ export interface ExternalScheduledEventResponse {
3395
3411
  readonly description?: string | null | undefined;
3396
3412
  readonly channel_id?: SnowflakeType | null | undefined;
3397
3413
  readonly creator_id?: SnowflakeType | null | undefined;
3398
- readonly creator?: UserResponse | null | undefined;
3414
+ readonly creator?: UserResponse | undefined;
3399
3415
  readonly image?: string | null | undefined;
3400
3416
  readonly scheduled_start_time: string;
3401
3417
  readonly scheduled_end_time?: string | null | undefined;
3402
3418
  readonly status: GuildScheduledEventStatuses;
3403
3419
  readonly entity_type: 3;
3404
3420
  readonly entity_id?: SnowflakeType | null | undefined;
3405
- readonly user_count?: number | null | undefined;
3421
+ readonly user_count?: number | undefined;
3406
3422
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
3407
3423
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
3408
3424
  readonly entity_metadata: EntityMetadataExternalResponse;
@@ -3416,14 +3432,14 @@ export interface StageScheduledEventResponse {
3416
3432
  readonly description?: string | null | undefined;
3417
3433
  readonly channel_id?: SnowflakeType | null | undefined;
3418
3434
  readonly creator_id?: SnowflakeType | null | undefined;
3419
- readonly creator?: UserResponse | null | undefined;
3435
+ readonly creator?: UserResponse | undefined;
3420
3436
  readonly image?: string | null | undefined;
3421
3437
  readonly scheduled_start_time: string;
3422
3438
  readonly scheduled_end_time?: string | null | undefined;
3423
3439
  readonly status: GuildScheduledEventStatuses;
3424
3440
  readonly entity_type: 1;
3425
3441
  readonly entity_id?: SnowflakeType | null | undefined;
3426
- readonly user_count?: number | null | undefined;
3442
+ readonly user_count?: number | undefined;
3427
3443
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
3428
3444
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
3429
3445
  readonly entity_metadata?: EntityMetadataStageInstanceResponse | null | undefined;
@@ -3437,14 +3453,14 @@ export interface VoiceScheduledEventResponse {
3437
3453
  readonly description?: string | null | undefined;
3438
3454
  readonly channel_id?: SnowflakeType | null | undefined;
3439
3455
  readonly creator_id?: SnowflakeType | null | undefined;
3440
- readonly creator?: UserResponse | null | undefined;
3456
+ readonly creator?: UserResponse | undefined;
3441
3457
  readonly image?: string | null | undefined;
3442
3458
  readonly scheduled_start_time: string;
3443
3459
  readonly scheduled_end_time?: string | null | undefined;
3444
3460
  readonly status: GuildScheduledEventStatuses;
3445
3461
  readonly entity_type: 2;
3446
3462
  readonly entity_id?: SnowflakeType | null | undefined;
3447
- readonly user_count?: number | null | undefined;
3463
+ readonly user_count?: number | undefined;
3448
3464
  readonly privacy_level: GuildScheduledEventPrivacyLevels;
3449
3465
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
3450
3466
  readonly entity_metadata?: EntityMetadataVoiceResponse | null | undefined;
@@ -3480,7 +3496,7 @@ export declare const AutomodActionType: {
3480
3496
  };
3481
3497
  export type AutomodActionType = (typeof AutomodActionType)[keyof typeof AutomodActionType];
3482
3498
  export interface BlockMessageActionMetadataResponse {
3483
- readonly custom_message?: string | null | undefined;
3499
+ readonly custom_message?: string | undefined;
3484
3500
  }
3485
3501
  export interface BlockMessageActionResponse {
3486
3502
  readonly type: 1;
@@ -3556,9 +3572,9 @@ export interface DefaultKeywordRuleResponse {
3556
3572
  readonly event_type: AutomodEventType;
3557
3573
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3558
3574
  readonly trigger_type: 4;
3559
- readonly enabled?: boolean | null | undefined;
3560
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3561
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3575
+ readonly enabled: boolean;
3576
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3577
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3562
3578
  readonly trigger_metadata: DefaultKeywordListTriggerMetadataResponse;
3563
3579
  }
3564
3580
  export interface KeywordTriggerMetadataResponse {
@@ -3574,9 +3590,9 @@ export interface KeywordRuleResponse {
3574
3590
  readonly event_type: AutomodEventType;
3575
3591
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3576
3592
  readonly trigger_type: 1;
3577
- readonly enabled?: boolean | null | undefined;
3578
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3579
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3593
+ readonly enabled: boolean;
3594
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3595
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3580
3596
  readonly trigger_metadata: KeywordTriggerMetadataResponse;
3581
3597
  }
3582
3598
  export interface MLSpamTriggerMetadataResponse {
@@ -3589,14 +3605,14 @@ export interface MLSpamRuleResponse {
3589
3605
  readonly event_type: AutomodEventType;
3590
3606
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3591
3607
  readonly trigger_type: 3;
3592
- readonly enabled?: boolean | null | undefined;
3593
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3594
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3608
+ readonly enabled: boolean;
3609
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3610
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3595
3611
  readonly trigger_metadata: MLSpamTriggerMetadataResponse;
3596
3612
  }
3597
3613
  export interface MentionSpamTriggerMetadataResponse {
3598
3614
  readonly mention_total_limit: number;
3599
- readonly mention_raid_protection_enabled?: boolean | null | undefined;
3615
+ readonly mention_raid_protection_enabled: boolean;
3600
3616
  }
3601
3617
  export interface MentionSpamRuleResponse {
3602
3618
  readonly id: SnowflakeType;
@@ -3606,9 +3622,9 @@ export interface MentionSpamRuleResponse {
3606
3622
  readonly event_type: AutomodEventType;
3607
3623
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3608
3624
  readonly trigger_type: 5;
3609
- readonly enabled?: boolean | null | undefined;
3610
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3611
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3625
+ readonly enabled: boolean;
3626
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3627
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3612
3628
  readonly trigger_metadata: MentionSpamTriggerMetadataResponse;
3613
3629
  }
3614
3630
  export interface SpamLinkTriggerMetadataResponse {
@@ -3621,9 +3637,9 @@ export interface SpamLinkRuleResponse {
3621
3637
  readonly event_type: AutomodEventType;
3622
3638
  readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
3623
3639
  readonly trigger_type: 2;
3624
- readonly enabled?: boolean | null | undefined;
3625
- readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
3626
- readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
3640
+ readonly enabled: boolean;
3641
+ readonly exempt_roles: ReadonlyArray<SnowflakeType>;
3642
+ readonly exempt_channels: ReadonlyArray<SnowflakeType>;
3627
3643
  readonly trigger_metadata: SpamLinkTriggerMetadataResponse;
3628
3644
  }
3629
3645
  export interface GuildAuditLogResponse {
@@ -3706,7 +3722,7 @@ export interface MLSpamUpsertRequest {
3706
3722
  readonly trigger_metadata?: MLSpamTriggerMetadata | null | undefined;
3707
3723
  }
3708
3724
  export interface MentionSpamTriggerMetadata {
3709
- readonly mention_total_limit: number;
3725
+ readonly mention_total_limit?: number | null | undefined;
3710
3726
  readonly mention_raid_protection_enabled?: boolean | null | undefined;
3711
3727
  }
3712
3728
  export interface MentionSpamUpsertRequest {
@@ -3778,7 +3794,9 @@ export interface BanUserFromGuildRequest {
3778
3794
  readonly delete_message_seconds?: number | null | undefined;
3779
3795
  readonly delete_message_days?: number | null | undefined;
3780
3796
  }
3781
- export interface BulkBanUsersFromGuildRequest {
3797
+ export interface UnbanUserFromGuildRequest {
3798
+ }
3799
+ export interface BulkBanUsersRequest {
3782
3800
  readonly user_ids: ReadonlyArray<SnowflakeType>;
3783
3801
  readonly delete_message_seconds?: number | null | undefined;
3784
3802
  }
@@ -3787,6 +3805,12 @@ export interface BulkBanUsersResponse {
3787
3805
  readonly failed_users: ReadonlyArray<SnowflakeType>;
3788
3806
  }
3789
3807
  export type ListGuildChannels200 = ReadonlyArray<GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse>;
3808
+ export interface CreateOrUpdateThreadTagRequest {
3809
+ readonly name: string;
3810
+ readonly emoji_id?: SnowflakeType | null | undefined;
3811
+ readonly emoji_name?: string | null | undefined;
3812
+ readonly moderated?: boolean | null | undefined;
3813
+ }
3790
3814
  export interface CreateGuildChannelRequest {
3791
3815
  readonly type?: 0 | 2 | 4 | 5 | 13 | 14 | 15 | null | undefined;
3792
3816
  readonly name: string;
@@ -3809,7 +3833,7 @@ export interface CreateGuildChannelRequest {
3809
3833
  readonly available_tags?: ReadonlyArray<null | CreateOrUpdateThreadTagRequest> | null | undefined;
3810
3834
  }
3811
3835
  export type BulkUpdateGuildChannelsRequest = ReadonlyArray<{
3812
- readonly id?: SnowflakeType | undefined;
3836
+ readonly id?: SnowflakeType | null | undefined;
3813
3837
  readonly position?: number | null | undefined;
3814
3838
  readonly parent_id?: SnowflakeType | null | undefined;
3815
3839
  readonly lock_permissions?: boolean | null | undefined;
@@ -3830,19 +3854,19 @@ export interface IntegrationApplicationResponse {
3830
3854
  readonly icon?: string | null | undefined;
3831
3855
  readonly description: string;
3832
3856
  readonly type?: ApplicationTypes | null | undefined;
3833
- readonly cover_image?: string | null | undefined;
3834
- readonly primary_sku_id?: SnowflakeType | null | undefined;
3835
- readonly bot?: UserResponse | null | undefined;
3857
+ readonly cover_image?: string | undefined;
3858
+ readonly primary_sku_id?: SnowflakeType | undefined;
3859
+ readonly bot?: UserResponse | undefined;
3836
3860
  }
3837
3861
  export interface DiscordIntegrationResponse {
3838
3862
  readonly type: "discord";
3839
3863
  readonly name?: string | null | undefined;
3840
- readonly account?: AccountResponse | null | undefined;
3841
- readonly enabled?: boolean | null | undefined;
3864
+ readonly account: AccountResponse;
3865
+ readonly enabled: boolean;
3842
3866
  readonly id: SnowflakeType;
3843
3867
  readonly application: IntegrationApplicationResponse;
3844
3868
  readonly scopes: ReadonlyArray<"applications.commands" | "bot" | "webhook.incoming">;
3845
- readonly user?: UserResponse | null | undefined;
3869
+ readonly user?: UserResponse | undefined;
3846
3870
  }
3847
3871
  export declare const IntegrationExpireBehaviorTypes: {
3848
3872
  /**
@@ -3881,28 +3905,28 @@ export type IntegrationExpireGracePeriodTypes = (typeof IntegrationExpireGracePe
3881
3905
  export interface ExternalConnectionIntegrationResponse {
3882
3906
  readonly type: "twitch" | "youtube";
3883
3907
  readonly name?: string | null | undefined;
3884
- readonly account?: AccountResponse | null | undefined;
3885
- readonly enabled?: boolean | null | undefined;
3908
+ readonly account: AccountResponse;
3909
+ readonly enabled: boolean;
3886
3910
  readonly id: string;
3887
3911
  readonly user: UserResponse;
3888
- readonly revoked?: boolean | null | undefined;
3889
- readonly expire_behavior?: IntegrationExpireBehaviorTypes | null | undefined;
3890
- readonly expire_grace_period?: IntegrationExpireGracePeriodTypes | null | undefined;
3891
- readonly subscriber_count?: number | null | undefined;
3892
- readonly synced_at?: string | null | undefined;
3912
+ readonly revoked?: boolean | undefined;
3913
+ readonly expire_behavior?: IntegrationExpireBehaviorTypes | undefined;
3914
+ readonly expire_grace_period?: IntegrationExpireGracePeriodTypes | undefined;
3915
+ readonly subscriber_count?: number | undefined;
3916
+ readonly synced_at?: string | undefined;
3893
3917
  readonly role_id?: SnowflakeType | null | undefined;
3894
- readonly syncing?: boolean | null | undefined;
3895
- readonly enable_emoticons?: boolean | null | undefined;
3918
+ readonly syncing?: boolean | undefined;
3919
+ readonly enable_emoticons?: boolean | undefined;
3896
3920
  }
3897
3921
  export interface GuildSubscriptionIntegrationResponse {
3898
3922
  readonly type: "guild_subscription";
3899
3923
  readonly name?: string | null | undefined;
3900
- readonly account?: AccountResponse | null | undefined;
3901
- readonly enabled?: boolean | null | undefined;
3924
+ readonly account: AccountResponse;
3925
+ readonly enabled: boolean;
3902
3926
  readonly id: SnowflakeType;
3903
3927
  }
3904
3928
  export type ListGuildIntegrations200 = ReadonlyArray<DiscordIntegrationResponse | ExternalConnectionIntegrationResponse | GuildSubscriptionIntegrationResponse>;
3905
- export type ListGuildInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse>;
3929
+ export type ListGuildInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null>;
3906
3930
  export interface ListGuildMembersParams {
3907
3931
  readonly limit?: number | undefined;
3908
3932
  readonly after?: number | undefined;
@@ -3922,12 +3946,13 @@ export interface PrivateGuildMemberResponse {
3922
3946
  readonly pending: boolean;
3923
3947
  readonly premium_since?: string | null | undefined;
3924
3948
  readonly roles: ReadonlyArray<SnowflakeType>;
3949
+ readonly collectibles?: UserCollectiblesResponse | null | undefined;
3925
3950
  readonly user: UserResponse;
3926
3951
  readonly mute: boolean;
3927
3952
  readonly deaf: boolean;
3928
3953
  }
3929
3954
  export interface SearchGuildMembersParams {
3930
- readonly limit: number;
3955
+ readonly limit?: number | undefined;
3931
3956
  readonly query: string;
3932
3957
  }
3933
3958
  export type SearchGuildMembers200 = ReadonlyArray<GuildMemberResponse>;
@@ -3948,7 +3973,7 @@ export interface UpdateGuildMemberRequest {
3948
3973
  readonly communication_disabled_until?: string | null | undefined;
3949
3974
  readonly flags?: number | null | undefined;
3950
3975
  }
3951
- export interface SetGuildMfaLevelRequest {
3976
+ export interface GuildMFARequest {
3952
3977
  readonly level: GuildMFALevel;
3953
3978
  }
3954
3979
  export interface GuildMFALevelResponse {
@@ -3966,29 +3991,29 @@ export type NewMemberActionType = (typeof NewMemberActionType)[keyof typeof NewM
3966
3991
  export interface SettingsEmojiResponse {
3967
3992
  readonly id?: SnowflakeType | null | undefined;
3968
3993
  readonly name?: string | null | undefined;
3969
- readonly animated?: boolean | null | undefined;
3994
+ readonly animated: boolean;
3970
3995
  }
3971
3996
  export interface NewMemberActionResponse {
3972
3997
  readonly channel_id: SnowflakeType;
3973
3998
  readonly action_type: NewMemberActionType;
3974
3999
  readonly title: string;
3975
4000
  readonly description: string;
3976
- readonly emoji?: SettingsEmojiResponse | null | undefined;
3977
- readonly icon?: string | null | undefined;
4001
+ readonly emoji?: SettingsEmojiResponse | undefined;
4002
+ readonly icon?: string | undefined;
3978
4003
  }
3979
4004
  export interface ResourceChannelResponse {
3980
4005
  readonly channel_id: SnowflakeType;
3981
4006
  readonly title: string;
3982
- readonly emoji?: SettingsEmojiResponse | null | undefined;
3983
- readonly icon?: string | null | undefined;
4007
+ readonly emoji?: SettingsEmojiResponse | undefined;
4008
+ readonly icon?: string | undefined;
3984
4009
  readonly description: string;
3985
4010
  }
3986
4011
  export interface GuildHomeSettingsResponse {
3987
4012
  readonly guild_id: SnowflakeType;
3988
4013
  readonly enabled: boolean;
3989
- readonly welcome_message?: WelcomeMessageResponse | null | undefined;
3990
- readonly new_member_actions?: ReadonlyArray<null | NewMemberActionResponse> | null | undefined;
3991
- readonly resource_channels?: ReadonlyArray<null | ResourceChannelResponse> | null | undefined;
4014
+ readonly welcome_message?: WelcomeMessageResponse | undefined;
4015
+ readonly new_member_actions: ReadonlyArray<null | NewMemberActionResponse>;
4016
+ readonly resource_channels: ReadonlyArray<null | ResourceChannelResponse>;
3992
4017
  }
3993
4018
  export interface OnboardingPromptOptionResponse {
3994
4019
  readonly id: SnowflakeType;
@@ -4090,7 +4115,7 @@ export interface GuildPruneResponse {
4090
4115
  export interface PruneGuildRequest {
4091
4116
  readonly days?: number | null | undefined;
4092
4117
  readonly compute_prune_count?: boolean | null | undefined;
4093
- readonly include_roles?: string | ReadonlyArray<null | SnowflakeType> | null | undefined;
4118
+ readonly include_roles?: string | ReadonlyArray<SnowflakeType> | null | undefined;
4094
4119
  }
4095
4120
  export interface VoiceRegionResponse {
4096
4121
  readonly id: string;
@@ -4101,7 +4126,7 @@ export interface VoiceRegionResponse {
4101
4126
  }
4102
4127
  export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>;
4103
4128
  export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>;
4104
- export interface CreateGuildRoleRequest {
4129
+ export interface CreateRoleRequest {
4105
4130
  readonly name?: string | null | undefined;
4106
4131
  readonly permissions?: number | null | undefined;
4107
4132
  readonly color?: number | null | undefined;
@@ -4110,12 +4135,13 @@ export interface CreateGuildRoleRequest {
4110
4135
  readonly icon?: string | null | undefined;
4111
4136
  readonly unicode_emoji?: string | null | undefined;
4112
4137
  }
4113
- export type BulkUpdateGuildRolesRequest = ReadonlyArray<{
4138
+ export interface UpdateRolePositionsRequest {
4114
4139
  readonly id?: SnowflakeType | null | undefined;
4115
4140
  readonly position?: number | null | undefined;
4116
- }>;
4141
+ }
4142
+ export type BulkUpdateGuildRolesRequest = ReadonlyArray<UpdateRolePositionsRequest>;
4117
4143
  export type BulkUpdateGuildRoles200 = ReadonlyArray<GuildRoleResponse>;
4118
- export interface UpdateGuildRoleRequest {
4144
+ export interface UpdateRoleRequestPartial {
4119
4145
  readonly name?: string | null | undefined;
4120
4146
  readonly permissions?: number | null | undefined;
4121
4147
  readonly color?: number | null | undefined;
@@ -4225,9 +4251,9 @@ export interface SoundboardSoundResponse {
4225
4251
  readonly volume: number;
4226
4252
  readonly emoji_id?: SnowflakeType | null | undefined;
4227
4253
  readonly emoji_name?: string | null | undefined;
4228
- readonly guild_id?: SnowflakeType | null | undefined;
4254
+ readonly guild_id?: SnowflakeType | undefined;
4229
4255
  readonly available: boolean;
4230
- readonly user?: UserResponse | null | undefined;
4256
+ readonly user?: UserResponse | undefined;
4231
4257
  }
4232
4258
  export interface ListGuildSoundboardSoundsResponse {
4233
4259
  readonly items: ReadonlyArray<SoundboardSoundResponse>;
@@ -4279,7 +4305,7 @@ export interface VoiceStateResponse {
4279
4305
  readonly channel_id?: SnowflakeType | null | undefined;
4280
4306
  readonly deaf: boolean;
4281
4307
  readonly guild_id?: SnowflakeType | null | undefined;
4282
- readonly member?: GuildMemberResponse | null | undefined;
4308
+ readonly member?: GuildMemberResponse | undefined;
4283
4309
  readonly mute: boolean;
4284
4310
  readonly request_to_speak_timestamp?: string | null | undefined;
4285
4311
  readonly suppress: boolean;
@@ -4290,12 +4316,12 @@ export interface VoiceStateResponse {
4290
4316
  readonly session_id: string;
4291
4317
  readonly user_id: SnowflakeType;
4292
4318
  }
4293
- export interface UpdateSelfVoiceStateRequest {
4319
+ export interface UpdateSelfVoiceStateRequestPartial {
4294
4320
  readonly request_to_speak_timestamp?: string | null | undefined;
4295
4321
  readonly suppress?: boolean | null | undefined;
4296
4322
  readonly channel_id?: SnowflakeType | null | undefined;
4297
4323
  }
4298
- export interface UpdateVoiceStateRequest {
4324
+ export interface UpdateVoiceStateRequestPartial {
4299
4325
  readonly suppress?: boolean | null | undefined;
4300
4326
  readonly channel_id?: SnowflakeType | null | undefined;
4301
4327
  }
@@ -4345,13 +4371,13 @@ export interface WidgetMember {
4345
4371
  readonly avatar?: null | undefined;
4346
4372
  readonly status: string;
4347
4373
  readonly avatar_url: string;
4348
- readonly activity?: WidgetActivity | null | undefined;
4349
- readonly deaf?: boolean | null | undefined;
4350
- readonly mute?: boolean | null | undefined;
4351
- readonly self_deaf?: boolean | null | undefined;
4352
- readonly self_mute?: boolean | null | undefined;
4353
- readonly suppress?: boolean | null | undefined;
4354
- readonly channel_id?: SnowflakeType | null | undefined;
4374
+ readonly activity?: WidgetActivity | undefined;
4375
+ readonly deaf?: boolean | undefined;
4376
+ readonly mute?: boolean | undefined;
4377
+ readonly self_deaf?: boolean | undefined;
4378
+ readonly self_mute?: boolean | undefined;
4379
+ readonly suppress?: boolean | undefined;
4380
+ readonly channel_id?: SnowflakeType | undefined;
4355
4381
  }
4356
4382
  export interface WidgetResponse {
4357
4383
  readonly id: SnowflakeType;
@@ -4433,9 +4459,10 @@ export interface LaunchActivityInteractionCallbackRequest {
4433
4459
  }
4434
4460
  export interface TextInputComponentForModalRequest {
4435
4461
  readonly type: 4;
4462
+ readonly id?: number | null | undefined;
4436
4463
  readonly custom_id: string;
4437
4464
  readonly style: TextInputStyleTypes;
4438
- readonly label: string;
4465
+ readonly label?: string | null | undefined;
4439
4466
  readonly value?: string | null | undefined;
4440
4467
  readonly placeholder?: string | null | undefined;
4441
4468
  readonly required?: boolean | null | undefined;
@@ -4444,12 +4471,81 @@ export interface TextInputComponentForModalRequest {
4444
4471
  }
4445
4472
  export interface ActionRowComponentForModalRequest {
4446
4473
  readonly type: 1;
4474
+ readonly id?: number | null | undefined;
4447
4475
  readonly components: ReadonlyArray<TextInputComponentForModalRequest>;
4448
4476
  }
4477
+ export interface ChannelSelectComponentForModalRequest {
4478
+ readonly type: 8;
4479
+ readonly id?: number | null | undefined;
4480
+ readonly custom_id: string;
4481
+ readonly placeholder?: string | null | undefined;
4482
+ readonly min_values?: number | null | undefined;
4483
+ readonly max_values?: number | null | undefined;
4484
+ readonly disabled?: boolean | null | undefined;
4485
+ readonly required?: boolean | null | undefined;
4486
+ readonly default_values?: ReadonlyArray<ChannelSelectDefaultValue> | null | undefined;
4487
+ readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
4488
+ }
4489
+ export interface MentionableSelectComponentForModalRequest {
4490
+ readonly type: 7;
4491
+ readonly id?: number | null | undefined;
4492
+ readonly custom_id: string;
4493
+ readonly placeholder?: string | null | undefined;
4494
+ readonly min_values?: number | null | undefined;
4495
+ readonly max_values?: number | null | undefined;
4496
+ readonly disabled?: boolean | null | undefined;
4497
+ readonly required?: boolean | null | undefined;
4498
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue> | null | undefined;
4499
+ }
4500
+ export interface RoleSelectComponentForModalRequest {
4501
+ readonly type: 6;
4502
+ readonly id?: number | null | undefined;
4503
+ readonly custom_id: string;
4504
+ readonly placeholder?: string | null | undefined;
4505
+ readonly min_values?: number | null | undefined;
4506
+ readonly max_values?: number | null | undefined;
4507
+ readonly disabled?: boolean | null | undefined;
4508
+ readonly required?: boolean | null | undefined;
4509
+ readonly default_values?: ReadonlyArray<RoleSelectDefaultValue> | null | undefined;
4510
+ }
4511
+ export interface StringSelectComponentForModalRequest {
4512
+ readonly type: 3;
4513
+ readonly id?: number | null | undefined;
4514
+ readonly custom_id: string;
4515
+ readonly placeholder?: string | null | undefined;
4516
+ readonly min_values?: number | null | undefined;
4517
+ readonly max_values?: number | null | undefined;
4518
+ readonly disabled?: boolean | null | undefined;
4519
+ readonly required?: boolean | null | undefined;
4520
+ readonly options: ReadonlyArray<StringSelectOptionForRequest>;
4521
+ }
4522
+ export interface UserSelectComponentForModalRequest {
4523
+ readonly type: 5;
4524
+ readonly id?: number | null | undefined;
4525
+ readonly custom_id: string;
4526
+ readonly placeholder?: string | null | undefined;
4527
+ readonly min_values?: number | null | undefined;
4528
+ readonly max_values?: number | null | undefined;
4529
+ readonly disabled?: boolean | null | undefined;
4530
+ readonly required?: boolean | null | undefined;
4531
+ readonly default_values?: ReadonlyArray<UserSelectDefaultValue> | null | undefined;
4532
+ }
4533
+ export interface LabelComponentForModalRequest {
4534
+ readonly type: 18;
4535
+ readonly id?: number | null | undefined;
4536
+ readonly label: string;
4537
+ readonly description?: string | null | undefined;
4538
+ readonly component: ChannelSelectComponentForModalRequest | MentionableSelectComponentForModalRequest | RoleSelectComponentForModalRequest | StringSelectComponentForModalRequest | TextInputComponentForModalRequest | UserSelectComponentForModalRequest;
4539
+ }
4540
+ export interface TextDisplayComponentForModalRequest {
4541
+ readonly type: 10;
4542
+ readonly id?: number | null | undefined;
4543
+ readonly content: string;
4544
+ }
4449
4545
  export interface ModalInteractionCallbackRequestData {
4450
4546
  readonly custom_id: string;
4451
4547
  readonly title: string;
4452
- readonly components: ReadonlyArray<ActionRowComponentForModalRequest>;
4548
+ readonly components: ReadonlyArray<ActionRowComponentForModalRequest | LabelComponentForModalRequest | TextDisplayComponentForModalRequest>;
4453
4549
  }
4454
4550
  export interface ModalInteractionCallbackRequest {
4455
4551
  readonly type: 9;
@@ -4474,11 +4570,11 @@ export type CreateInteractionResponseRequest = ApplicationCommandAutocompleteCal
4474
4570
  export interface InteractionResponse {
4475
4571
  readonly id: SnowflakeType;
4476
4572
  readonly type: InteractionTypes;
4477
- readonly response_message_id?: SnowflakeType | null | undefined;
4478
- readonly response_message_loading?: boolean | null | undefined;
4479
- readonly response_message_ephemeral?: boolean | null | undefined;
4480
- readonly channel_id?: SnowflakeType | null | undefined;
4481
- readonly guild_id?: SnowflakeType | null | undefined;
4573
+ readonly response_message_id?: SnowflakeType | undefined;
4574
+ readonly response_message_loading?: boolean | undefined;
4575
+ readonly response_message_ephemeral?: boolean | undefined;
4576
+ readonly channel_id?: SnowflakeType | undefined;
4577
+ readonly guild_id?: SnowflakeType | undefined;
4482
4578
  }
4483
4579
  export interface CreateMessageInteractionCallbackResponse {
4484
4580
  readonly type: 4;
@@ -4493,7 +4589,7 @@ export interface UpdateMessageInteractionCallbackResponse {
4493
4589
  }
4494
4590
  export interface InteractionCallbackResponse {
4495
4591
  readonly interaction: InteractionResponse;
4496
- readonly resource?: CreateMessageInteractionCallbackResponse | LaunchActivityInteractionCallbackResponse | UpdateMessageInteractionCallbackResponse | null | undefined;
4592
+ readonly resource?: CreateMessageInteractionCallbackResponse | LaunchActivityInteractionCallbackResponse | UpdateMessageInteractionCallbackResponse | undefined;
4497
4593
  }
4498
4594
  export interface InviteResolveParams {
4499
4595
  readonly with_counts?: boolean | undefined;
@@ -4501,11 +4597,13 @@ export interface InviteResolveParams {
4501
4597
  }
4502
4598
  export type InviteResolve200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
4503
4599
  export type InviteRevoke200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
4600
+ export type CreateOrJoinLobbyRequestFlagsEnum = 1;
4504
4601
  export interface CreateOrJoinLobbyRequest {
4505
4602
  readonly idle_timeout_seconds?: number | null | undefined;
4506
4603
  readonly lobby_metadata?: Record<string, unknown> | null | undefined;
4507
4604
  readonly member_metadata?: Record<string, unknown> | null | undefined;
4508
4605
  readonly secret: string;
4606
+ readonly flags?: CreateOrJoinLobbyRequestFlagsEnum | null | undefined;
4509
4607
  }
4510
4608
  export interface LobbyMemberResponse {
4511
4609
  readonly id: SnowflakeType;
@@ -4516,8 +4614,9 @@ export interface LobbyResponse {
4516
4614
  readonly id: SnowflakeType;
4517
4615
  readonly application_id: SnowflakeType;
4518
4616
  readonly metadata?: Record<string, unknown> | null | undefined;
4519
- readonly members?: ReadonlyArray<LobbyMemberResponse> | null | undefined;
4520
- readonly linked_channel?: GuildChannelResponse | null | undefined;
4617
+ readonly members: ReadonlyArray<LobbyMemberResponse>;
4618
+ readonly linked_channel?: GuildChannelResponse | undefined;
4619
+ readonly flags: UInt32Type;
4521
4620
  }
4522
4621
  export type LobbyMemberRequestFlagsEnum = 1;
4523
4622
  export interface LobbyMemberRequest {
@@ -4525,15 +4624,19 @@ export interface LobbyMemberRequest {
4525
4624
  readonly metadata?: Record<string, unknown> | null | undefined;
4526
4625
  readonly flags?: LobbyMemberRequestFlagsEnum | null | undefined;
4527
4626
  }
4627
+ export type CreateLobbyRequestFlagsEnum = 1;
4528
4628
  export interface CreateLobbyRequest {
4529
4629
  readonly idle_timeout_seconds?: number | null | undefined;
4530
4630
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined;
4531
4631
  readonly metadata?: Record<string, unknown> | null | undefined;
4632
+ readonly flags?: CreateLobbyRequestFlagsEnum | null | undefined;
4532
4633
  }
4634
+ export type EditLobbyRequestFlagsEnum = 1;
4533
4635
  export interface EditLobbyRequest {
4534
4636
  readonly idle_timeout_seconds?: number | null | undefined;
4535
4637
  readonly metadata?: Record<string, unknown> | null | undefined;
4536
4638
  readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined;
4639
+ readonly flags?: EditLobbyRequestFlagsEnum | null | undefined;
4537
4640
  }
4538
4641
  export interface EditLobbyChannelLinkRequest {
4539
4642
  readonly channel_id?: SnowflakeType | null | undefined;
@@ -4565,9 +4668,9 @@ export interface LobbyMessageResponse {
4565
4668
  readonly lobby_id: SnowflakeType;
4566
4669
  readonly channel_id: SnowflakeType;
4567
4670
  readonly author: UserResponse;
4568
- readonly metadata?: Record<string, unknown> | null | undefined;
4671
+ readonly metadata?: Record<string, unknown> | undefined;
4569
4672
  readonly flags: number;
4570
- readonly application_id?: SnowflakeType | null | undefined;
4673
+ readonly application_id?: SnowflakeType | undefined;
4571
4674
  }
4572
4675
  export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse>;
4573
4676
  export interface SDKMessageRequest {
@@ -4579,6 +4682,7 @@ export interface SDKMessageRequest {
4579
4682
  readonly flags?: number | null | undefined;
4580
4683
  readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
4581
4684
  readonly poll?: PollCreateRequest | null | undefined;
4685
+ readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
4582
4686
  readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
4583
4687
  readonly message_reference?: MessageReferenceRequest | null | undefined;
4584
4688
  readonly nonce?: number | string | null | undefined;
@@ -4589,7 +4693,7 @@ export interface OAuth2GetAuthorizationResponse {
4589
4693
  readonly application: ApplicationResponse;
4590
4694
  readonly expires: string;
4591
4695
  readonly scopes: ReadonlyArray<OAuth2Scopes>;
4592
- readonly user?: UserResponse | null | undefined;
4696
+ readonly user?: UserResponse | undefined;
4593
4697
  }
4594
4698
  export interface OAuth2Key {
4595
4699
  readonly kty: string;
@@ -4605,11 +4709,11 @@ export interface OAuth2GetKeys {
4605
4709
  export interface OAuth2GetOpenIDConnectUserInfoResponse {
4606
4710
  readonly sub: string;
4607
4711
  readonly email?: string | null | undefined;
4608
- readonly email_verified?: boolean | null | undefined;
4609
- readonly preferred_username?: string | null | undefined;
4712
+ readonly email_verified?: boolean | undefined;
4713
+ readonly preferred_username?: string | undefined;
4610
4714
  readonly nickname?: string | null | undefined;
4611
- readonly picture?: string | null | undefined;
4612
- readonly locale?: string | null | undefined;
4715
+ readonly picture?: string | undefined;
4716
+ readonly locale?: string | undefined;
4613
4717
  }
4614
4718
  export declare const ApplicationIdentityProviderAuthType: {
4615
4719
  readonly OIDC: "OIDC";
@@ -4670,7 +4774,7 @@ export interface StageInstanceResponse {
4670
4774
  readonly topic: string;
4671
4775
  readonly privacy_level: StageInstancesPrivacyLevels;
4672
4776
  readonly id: SnowflakeType;
4673
- readonly discoverable_disabled?: boolean | null | undefined;
4777
+ readonly discoverable_disabled: boolean;
4674
4778
  readonly guild_scheduled_event_id?: SnowflakeType | null | undefined;
4675
4779
  }
4676
4780
  export interface UpdateStageInstanceRequest {
@@ -4683,8 +4787,8 @@ export interface StickerPackResponse {
4683
4787
  readonly name: string;
4684
4788
  readonly description?: string | null | undefined;
4685
4789
  readonly stickers: ReadonlyArray<StandardStickerResponse>;
4686
- readonly cover_sticker_id?: SnowflakeType | null | undefined;
4687
- readonly banner_asset_id?: SnowflakeType | null | undefined;
4790
+ readonly cover_sticker_id?: SnowflakeType | undefined;
4791
+ readonly banner_asset_id?: SnowflakeType | undefined;
4688
4792
  }
4689
4793
  export interface StickerPackCollectionResponse {
4690
4794
  readonly sticker_packs: ReadonlyArray<StickerPackResponse>;
@@ -4716,8 +4820,8 @@ export interface UserPIIResponse {
4716
4820
  readonly discriminator: string;
4717
4821
  readonly public_flags: number;
4718
4822
  readonly flags: Int53Type;
4719
- readonly bot?: boolean | null | undefined;
4720
- readonly system?: boolean | null | undefined;
4823
+ readonly bot?: boolean | undefined;
4824
+ readonly system?: boolean | undefined;
4721
4825
  readonly banner?: string | null | undefined;
4722
4826
  readonly accent_color?: number | null | undefined;
4723
4827
  readonly global_name?: string | null | undefined;
@@ -4726,9 +4830,9 @@ export interface UserPIIResponse {
4726
4830
  readonly primary_guild?: UserPrimaryGuildResponse | null | undefined;
4727
4831
  readonly mfa_enabled: boolean;
4728
4832
  readonly locale: AvailableLocalesEnum;
4729
- readonly premium_type?: PremiumTypes | null | undefined;
4833
+ readonly premium_type?: PremiumTypes | undefined;
4730
4834
  readonly email?: string | null | undefined;
4731
- readonly verified?: boolean | null | undefined;
4835
+ readonly verified?: boolean | undefined;
4732
4836
  }
4733
4837
  export interface BotAccountPatchRequest {
4734
4838
  readonly username: string;
@@ -4738,7 +4842,7 @@ export interface BotAccountPatchRequest {
4738
4842
  export interface ApplicationUserRoleConnectionResponse {
4739
4843
  readonly platform_name?: string | null | undefined;
4740
4844
  readonly platform_username?: string | null | undefined;
4741
- readonly metadata?: Record<string, unknown> | null | undefined;
4845
+ readonly metadata?: Record<string, unknown> | undefined;
4742
4846
  }
4743
4847
  export interface UpdateApplicationUserRoleConnectionRequest {
4744
4848
  readonly platform_name?: string | null | undefined;
@@ -4799,12 +4903,12 @@ export interface ConnectedAccountResponse {
4799
4903
  readonly name?: string | null | undefined;
4800
4904
  readonly type: ConnectedAccountProviders;
4801
4905
  readonly friend_sync: boolean;
4802
- readonly integrations?: ReadonlyArray<ConnectedAccountIntegrationResponse> | null | undefined;
4906
+ readonly integrations?: ReadonlyArray<ConnectedAccountIntegrationResponse> | undefined;
4803
4907
  readonly show_activity: boolean;
4804
4908
  readonly two_way_link: boolean;
4805
4909
  readonly verified: boolean;
4806
4910
  readonly visibility: ConnectedAccountVisibility;
4807
- readonly revoked?: boolean | null | undefined;
4911
+ readonly revoked?: boolean | undefined;
4808
4912
  }
4809
4913
  export type ListMyConnections200 = ReadonlyArray<ConnectedAccountResponse>;
4810
4914
  export interface ListMyGuildsParams {
@@ -5051,7 +5155,7 @@ export interface DiscordRest {
5051
5155
  readonly getApplicationEmoji: (applicationId: string, emojiId: string) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5052
5156
  readonly deleteApplicationEmoji: (applicationId: string, emojiId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5053
5157
  readonly updateApplicationEmoji: (applicationId: string, emojiId: string, options: UpdateApplicationEmojiRequest) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5054
- readonly getEntitlements: (applicationId: string, options: GetEntitlementsParams) => Effect.Effect<GetEntitlements200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5158
+ readonly getEntitlements: (applicationId: string, options?: GetEntitlementsParams | undefined) => Effect.Effect<GetEntitlements200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5055
5159
  readonly createEntitlement: (applicationId: string, options: CreateEntitlementRequestData) => Effect.Effect<EntitlementResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5056
5160
  readonly getEntitlement: (applicationId: string, entitlementId: string) => Effect.Effect<EntitlementResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5057
5161
  readonly deleteEntitlement: (applicationId: string, entitlementId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5116,9 +5220,7 @@ export interface DiscordRest {
5116
5220
  readonly createWebhook: (channelId: string, options: CreateWebhookRequest) => Effect.Effect<GuildIncomingWebhookResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5117
5221
  readonly getGateway: () => Effect.Effect<GatewayResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5118
5222
  readonly getBotGateway: () => Effect.Effect<GatewayBotResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5119
- readonly createGuild: (options: GuildCreateRequest) => Effect.Effect<GuildResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5120
5223
  readonly getGuildTemplate: (code: string) => Effect.Effect<GuildTemplateResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5121
- readonly createGuildFromTemplate: (code: string, options: CreateGuildFromTemplateRequest) => Effect.Effect<GuildResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5122
5224
  readonly getGuild: (guildId: string, options?: GetGuildParams | undefined) => Effect.Effect<GuildWithCountsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5123
5225
  readonly deleteGuild: (guildId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5124
5226
  readonly updateGuild: (guildId: string, options: GuildPatchRequestPartial) => Effect.Effect<GuildResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5131,8 +5233,8 @@ export interface DiscordRest {
5131
5233
  readonly listGuildBans: (guildId: string, options?: ListGuildBansParams | undefined) => Effect.Effect<ListGuildBans200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5132
5234
  readonly getGuildBan: (guildId: string, userId: string) => Effect.Effect<GuildBanResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5133
5235
  readonly banUserFromGuild: (guildId: string, userId: string, options: BanUserFromGuildRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5134
- readonly unbanUserFromGuild: (guildId: string, userId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5135
- readonly bulkBanUsersFromGuild: (guildId: string, options: BulkBanUsersFromGuildRequest) => Effect.Effect<BulkBanUsersResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5236
+ readonly unbanUserFromGuild: (guildId: string, userId: string, options: UnbanUserFromGuildRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5237
+ readonly bulkBanUsersFromGuild: (guildId: string, options: BulkBanUsersRequest) => Effect.Effect<BulkBanUsersResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5136
5238
  readonly listGuildChannels: (guildId: string) => Effect.Effect<ListGuildChannels200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5137
5239
  readonly createGuildChannel: (guildId: string, options: CreateGuildChannelRequest) => Effect.Effect<GuildChannelResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5138
5240
  readonly bulkUpdateGuildChannels: (guildId: string, options: BulkUpdateGuildChannelsRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5153,7 +5255,7 @@ export interface DiscordRest {
5153
5255
  readonly updateGuildMember: (guildId: string, userId: string, options: UpdateGuildMemberRequest) => Effect.Effect<GuildMemberResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5154
5256
  readonly addGuildMemberRole: (guildId: string, userId: string, roleId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5155
5257
  readonly deleteGuildMemberRole: (guildId: string, userId: string, roleId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5156
- readonly setGuildMfaLevel: (guildId: string, options: SetGuildMfaLevelRequest) => Effect.Effect<GuildMFALevelResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5258
+ readonly setGuildMfaLevel: (guildId: string, options: GuildMFARequest) => Effect.Effect<GuildMFALevelResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5157
5259
  readonly getGuildNewMemberWelcome: (guildId: string) => Effect.Effect<GuildHomeSettingsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5158
5260
  readonly getGuildsOnboarding: (guildId: string) => Effect.Effect<UserGuildOnboardingResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5159
5261
  readonly putGuildsOnboarding: (guildId: string, options: UpdateGuildOnboardingRequest) => Effect.Effect<GuildOnboardingResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5162,11 +5264,11 @@ export interface DiscordRest {
5162
5264
  readonly pruneGuild: (guildId: string, options: PruneGuildRequest) => Effect.Effect<GuildPruneResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5163
5265
  readonly listGuildVoiceRegions: (guildId: string) => Effect.Effect<ListGuildVoiceRegions200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5164
5266
  readonly listGuildRoles: (guildId: string) => Effect.Effect<ListGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5165
- readonly createGuildRole: (guildId: string, options: CreateGuildRoleRequest) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5267
+ readonly createGuildRole: (guildId: string, options: CreateRoleRequest) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5166
5268
  readonly bulkUpdateGuildRoles: (guildId: string, options: BulkUpdateGuildRolesRequest) => Effect.Effect<BulkUpdateGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5167
5269
  readonly getGuildRole: (guildId: string, roleId: string) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5168
5270
  readonly deleteGuildRole: (guildId: string, roleId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5169
- readonly updateGuildRole: (guildId: string, roleId: string, options: UpdateGuildRoleRequest) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5271
+ readonly updateGuildRole: (guildId: string, roleId: string, options: UpdateRoleRequestPartial) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5170
5272
  readonly listGuildScheduledEvents: (guildId: string, options?: ListGuildScheduledEventsParams | undefined) => Effect.Effect<ListGuildScheduledEvents200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5171
5273
  readonly createGuildScheduledEvent: (guildId: string, options: CreateGuildScheduledEventRequest) => Effect.Effect<CreateGuildScheduledEvent200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5172
5274
  readonly getGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, options?: GetGuildScheduledEventParams | undefined) => Effect.Effect<GetGuildScheduledEvent200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
@@ -5191,9 +5293,9 @@ export interface DiscordRest {
5191
5293
  readonly getActiveGuildThreads: (guildId: string) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5192
5294
  readonly getGuildVanityUrl: (guildId: string) => Effect.Effect<VanityURLResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5193
5295
  readonly getSelfVoiceState: (guildId: string) => Effect.Effect<VoiceStateResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5194
- readonly updateSelfVoiceState: (guildId: string, options: UpdateSelfVoiceStateRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5296
+ readonly updateSelfVoiceState: (guildId: string, options: UpdateSelfVoiceStateRequestPartial) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5195
5297
  readonly getVoiceState: (guildId: string, userId: string) => Effect.Effect<VoiceStateResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5196
- readonly updateVoiceState: (guildId: string, userId: string, options: UpdateVoiceStateRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5298
+ readonly updateVoiceState: (guildId: string, userId: string, options: UpdateVoiceStateRequestPartial) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5197
5299
  readonly getGuildWebhooks: (guildId: string) => Effect.Effect<GetGuildWebhooks200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5198
5300
  readonly getGuildWelcomeScreen: (guildId: string) => Effect.Effect<GuildWelcomeScreenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
5199
5301
  readonly updateGuildWelcomeScreen: (guildId: string, options: WelcomeScreenPatchRequestPartial) => Effect.Effect<GuildWelcomeScreenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;