discord.js 15.0.0-dev.1764806526-0aaba0305 → 15.0.0-dev.1765065716-5e6bd4b3d

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "discord.js",
4
- "version": "15.0.0-dev.1764806526-0aaba0305",
4
+ "version": "15.0.0-dev.1765065716-5e6bd4b3d",
5
5
  "description": "A powerful library for interacting with the Discord API",
6
6
  "main": "./src/index.js",
7
7
  "types": "./typings/index.d.ts",
@@ -55,32 +55,32 @@
55
55
  "dependencies": {
56
56
  "@sapphire/snowflake": "3.5.5",
57
57
  "@vladfrangu/async_event_emitter": "^2.4.7",
58
- "discord-api-types": "^0.38.31",
58
+ "discord-api-types": "^0.38.36",
59
59
  "fast-deep-equal": "3.1.3",
60
60
  "lodash.snakecase": "4.1.1",
61
61
  "magic-bytes.js": "^1.12.1",
62
62
  "tslib": "^2.8.1",
63
63
  "undici": "7.16.0",
64
- "@discordjs/builders": "2.0.0-dev.1764806526-0aaba0305",
65
- "@discordjs/formatters": "1.0.0-dev.1764806526-0aaba0305",
66
- "@discordjs/collection": "3.0.0-dev.1764806526-0aaba0305",
67
- "@discordjs/rest": "3.0.0-dev.1764806526-0aaba0305",
68
- "@discordjs/util": "2.0.0-dev.1764806526-0aaba0305",
69
- "@discordjs/ws": "3.0.0-dev.1764806526-0aaba0305"
64
+ "@discordjs/builders": "2.0.0-dev.1765065716-5e6bd4b3d",
65
+ "@discordjs/collection": "3.0.0-dev.1765065716-5e6bd4b3d",
66
+ "@discordjs/formatters": "1.0.0-dev.1765065716-5e6bd4b3d",
67
+ "@discordjs/rest": "3.0.0-dev.1765065716-5e6bd4b3d",
68
+ "@discordjs/ws": "3.0.0-dev.1765065716-5e6bd4b3d",
69
+ "@discordjs/util": "2.0.0-dev.1765065716-5e6bd4b3d"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^6.0.0",
73
- "@types/node": "^22.18.13",
73
+ "@types/node": "^22.19.1",
74
74
  "cross-env": "^10.1.0",
75
- "eslint": "^9.38.0",
75
+ "eslint": "^9.39.1",
76
76
  "eslint-config-neon": "^0.2.9",
77
77
  "eslint-formatter-compact": "^9.0.1",
78
78
  "eslint-formatter-pretty": "^7.0.0",
79
79
  "eslint-plugin-import": "^2.32.0",
80
80
  "eslint-plugin-jsdoc": "^54.7.0",
81
- "prettier": "^3.6.2",
81
+ "prettier": "^3.7.4",
82
82
  "tsd": "^0.33.0",
83
- "turbo": "^2.5.8",
83
+ "turbo": "^2.6.3",
84
84
  "typescript": "~5.9.3",
85
85
  "@discordjs/api-extractor": "7.52.7",
86
86
  "@discordjs/docgen": "0.12.1",
@@ -192,7 +192,7 @@ class GuildInvite extends BaseInvite {
192
192
  if (!guild.members.me) throw new DiscordjsError(ErrorCodes.GuildUncachedMe);
193
193
  return Boolean(
194
194
  this.channel?.permissionsFor(this.client.user).has(PermissionFlagsBits.ManageChannels, false) ||
195
- guild.members.me.permissions.has(PermissionFlagsBits.ManageGuild),
195
+ guild.members.me.permissions.has(PermissionFlagsBits.ManageGuild),
196
196
  );
197
197
  }
198
198
 
@@ -725,8 +725,8 @@ class Message extends Base {
725
725
  get editable() {
726
726
  const precheck = Boolean(
727
727
  this.author.id === this.client.user.id &&
728
- (!this.guild || this.channel?.viewable) &&
729
- this.reference?.type !== MessageReferenceType.Forward,
728
+ (!this.guild || this.channel?.viewable) &&
729
+ this.reference?.type !== MessageReferenceType.Forward,
730
730
  );
731
731
 
732
732
  // Regardless of permissions thread messages cannot be edited if
@@ -837,12 +837,12 @@ class Message extends Base {
837
837
  const { channel } = this;
838
838
  return Boolean(
839
839
  channel?.type === ChannelType.GuildAnnouncement &&
840
- !this.flags.has(MessageFlags.Crossposted) &&
841
- this.reference?.type !== MessageReferenceType.Forward &&
842
- this.type === MessageType.Default &&
843
- !this.poll &&
844
- channel.viewable &&
845
- channel.permissionsFor(this.client.user)?.has(bitfield, false),
840
+ !this.flags.has(MessageFlags.Crossposted) &&
841
+ this.reference?.type !== MessageReferenceType.Forward &&
842
+ this.type === MessageType.Default &&
843
+ !this.poll &&
844
+ channel.viewable &&
845
+ channel.permissionsFor(this.client.user)?.has(bitfield, false),
846
846
  );
847
847
  }
848
848
 
@@ -266,8 +266,9 @@ export type ActionRowComponentData = MessageActionRowComponentData;
266
266
 
267
267
  export type ActionRowComponent = MessageActionRowComponent;
268
268
 
269
- export interface ActionRowData<ComponentType extends ActionRowComponentData | JSONEncodable<APIComponentInActionRow>>
270
- extends BaseComponentData {
269
+ export interface ActionRowData<
270
+ ComponentType extends ActionRowComponentData | JSONEncodable<APIComponentInActionRow>,
271
+ > extends BaseComponentData {
271
272
  components: readonly ComponentType[];
272
273
  }
273
274
 
@@ -603,7 +604,8 @@ export class BaseGuildEmoji extends Emoji {
603
604
  }
604
605
 
605
606
  export interface BaseGuildTextChannel
606
- extends TextBasedChannelFields<true>,
607
+ extends
608
+ TextBasedChannelFields<true>,
607
609
  PinnableChannelFields,
608
610
  WebhookChannelFields,
609
611
  BulkDeleteMethod,
@@ -630,7 +632,8 @@ export class BaseGuildTextChannel extends GuildChannel {
630
632
  }
631
633
 
632
634
  export interface BaseGuildVoiceChannel
633
- extends TextBasedChannelFields<true>,
635
+ extends
636
+ TextBasedChannelFields<true>,
634
637
  WebhookChannelFields,
635
638
  BulkDeleteMethod,
636
639
  SetRateLimitPerUserMethod,
@@ -1282,10 +1285,7 @@ export class PrimaryEntryPointCommandInteraction<
1282
1285
  }
1283
1286
 
1284
1287
  export interface DMChannel
1285
- extends TextBasedChannelFields<false, true>,
1286
- PinnableChannelFields,
1287
- MessageChannelFields,
1288
- SendMethod<false> {}
1288
+ extends TextBasedChannelFields<false, true>, PinnableChannelFields, MessageChannelFields, SendMethod<false> {}
1289
1289
  export class DMChannel extends BaseChannel {
1290
1290
  private constructor(client: Client<true>, data?: RawDMChannelData);
1291
1291
  public flags: Readonly<ChannelFlagsBitField>;
@@ -2558,14 +2558,13 @@ export interface TextInputModalData extends BaseModalData<ComponentType.TextInpu
2558
2558
  value: string;
2559
2559
  }
2560
2560
 
2561
- export interface SelectMenuModalData<Cached extends CacheType = CacheType>
2562
- extends BaseModalData<
2563
- | ComponentType.ChannelSelect
2564
- | ComponentType.MentionableSelect
2565
- | ComponentType.RoleSelect
2566
- | ComponentType.StringSelect
2567
- | ComponentType.UserSelect
2568
- > {
2561
+ export interface SelectMenuModalData<Cached extends CacheType = CacheType> extends BaseModalData<
2562
+ | ComponentType.ChannelSelect
2563
+ | ComponentType.MentionableSelect
2564
+ | ComponentType.RoleSelect
2565
+ | ComponentType.StringSelect
2566
+ | ComponentType.UserSelect
2567
+ > {
2569
2568
  channels?: ReadonlyCollection<
2570
2569
  Snowflake,
2571
2570
  CacheTypeReducer<Cached, GuildBasedChannel, APIInteractionDataResolvedChannel>
@@ -2660,8 +2659,9 @@ export class ModalComponentResolver<Cached extends CacheType = CacheType> {
2660
2659
  public getUploadedFiles(customId: string, required?: boolean): ReadonlyCollection<Snowflake, Attachment> | null;
2661
2660
  }
2662
2661
 
2663
- export interface ModalMessageModalSubmitInteraction<Cached extends CacheType = CacheType>
2664
- extends ModalSubmitInteraction<Cached> {
2662
+ export interface ModalMessageModalSubmitInteraction<
2663
+ Cached extends CacheType = CacheType,
2664
+ > extends ModalSubmitInteraction<Cached> {
2665
2665
  channelId: Snowflake;
2666
2666
  inCachedGuild(): this is ModalMessageModalSubmitInteraction<'cached'>;
2667
2667
  inGuild(): this is ModalMessageModalSubmitInteraction<'cached' | 'raw'>;
@@ -3514,7 +3514,8 @@ export interface PrivateThreadChannel extends ThreadChannel<false> {
3514
3514
  }
3515
3515
 
3516
3516
  export interface ThreadChannel<ThreadOnly extends boolean = boolean>
3517
- extends TextBasedChannelFields<true>,
3517
+ extends
3518
+ TextBasedChannelFields<true>,
3518
3519
  PinnableChannelFields,
3519
3520
  BulkDeleteMethod,
3520
3521
  SetRateLimitPerUserMethod,
@@ -5061,15 +5062,17 @@ export interface ApplicationCommandAutocompleteStringOptionData extends BaseAppl
5061
5062
  type: ApplicationCommandOptionType.String;
5062
5063
  }
5063
5064
 
5064
- export interface ApplicationCommandChoicesData<Type extends number | string = number | string>
5065
- extends BaseApplicationCommandOptionsData {
5065
+ export interface ApplicationCommandChoicesData<
5066
+ Type extends number | string = number | string,
5067
+ > extends BaseApplicationCommandOptionsData {
5066
5068
  autocomplete?: false;
5067
5069
  choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
5068
5070
  type: CommandOptionChoiceResolvableType;
5069
5071
  }
5070
5072
 
5071
- export interface ApplicationCommandChoicesOption<Type extends number | string = number | string>
5072
- extends BaseApplicationCommandOptionsData {
5073
+ export interface ApplicationCommandChoicesOption<
5074
+ Type extends number | string = number | string,
5075
+ > extends BaseApplicationCommandOptionsData {
5073
5076
  autocomplete?: false;
5074
5077
  choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
5075
5078
  type: CommandOptionChoiceResolvableType;
@@ -5252,13 +5255,15 @@ export interface AutoModerationTriggerMetadata {
5252
5255
  regexPatterns: readonly string[];
5253
5256
  }
5254
5257
 
5255
- export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction>
5256
- extends CollectorOptions<[Interaction, Collection<Snowflake, Interaction>]> {
5258
+ export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction> extends CollectorOptions<
5259
+ [Interaction, Collection<Snowflake, Interaction>]
5260
+ > {
5257
5261
  componentType?: ComponentType;
5258
5262
  }
5259
5263
 
5260
- export interface AwaitModalSubmitOptions
5261
- extends CollectorOptions<[ModalSubmitInteraction, Collection<Snowflake, ModalSubmitInteraction>]> {
5264
+ export interface AwaitModalSubmitOptions extends CollectorOptions<
5265
+ [ModalSubmitInteraction, Collection<Snowflake, ModalSubmitInteraction>]
5266
+ > {
5262
5267
  time: number;
5263
5268
  }
5264
5269
 
@@ -5631,8 +5636,9 @@ export interface BaseInteractionResolvedData<Cached extends CacheType = CacheTyp
5631
5636
  users?: ReadonlyCollection<Snowflake, User>;
5632
5637
  }
5633
5638
 
5634
- export interface CommandInteractionResolvedData<Cached extends CacheType = CacheType>
5635
- extends BaseInteractionResolvedData<Cached> {
5639
+ export interface CommandInteractionResolvedData<
5640
+ Cached extends CacheType = CacheType,
5641
+ > extends BaseInteractionResolvedData<Cached> {
5636
5642
  messages?: ReadonlyCollection<Snowflake, CacheTypeReducer<Cached, Message, APIMessage>>;
5637
5643
  }
5638
5644
 
@@ -6618,8 +6624,9 @@ export type CollectedMessageInteraction<Cached extends CacheType = CacheType> =
6618
6624
  ModalSubmitInteraction
6619
6625
  >;
6620
6626
 
6621
- export interface MessageComponentCollectorOptions<Interaction extends CollectedMessageInteraction>
6622
- extends AwaitMessageComponentOptions<Interaction> {
6627
+ export interface MessageComponentCollectorOptions<
6628
+ Interaction extends CollectedMessageInteraction,
6629
+ > extends AwaitMessageComponentOptions<Interaction> {
6623
6630
  max?: number;
6624
6631
  maxComponents?: number;
6625
6632
  maxUsers?: number;
@@ -6658,25 +6665,24 @@ export interface MessageMentionOptions {
6658
6665
 
6659
6666
  export type MessageMentionTypes = 'everyone' | 'roles' | 'users';
6660
6667
 
6661
- export interface MessageSnapshot
6662
- extends Partialize<
6663
- Message,
6664
- null,
6665
- Exclude<
6666
- keyof Message,
6667
- | 'attachments'
6668
- | 'client'
6669
- | 'components'
6670
- | 'content'
6671
- | 'createdTimestamp'
6672
- | 'editedTimestamp'
6673
- | 'embeds'
6674
- | 'flags'
6675
- | 'mentions'
6676
- | 'stickers'
6677
- | 'type'
6678
- >
6679
- > {}
6668
+ export interface MessageSnapshot extends Partialize<
6669
+ Message,
6670
+ null,
6671
+ Exclude<
6672
+ keyof Message,
6673
+ | 'attachments'
6674
+ | 'client'
6675
+ | 'components'
6676
+ | 'content'
6677
+ | 'createdTimestamp'
6678
+ | 'editedTimestamp'
6679
+ | 'embeds'
6680
+ | 'flags'
6681
+ | 'mentions'
6682
+ | 'stickers'
6683
+ | 'type'
6684
+ >
6685
+ > {}
6680
6686
 
6681
6687
  export interface BaseMessageOptions {
6682
6688
  allowedMentions?: MessageMentionOptions;
@@ -6724,11 +6730,7 @@ export interface MessageOptionsStickers {
6724
6730
  }
6725
6731
 
6726
6732
  export interface BaseMessageCreateOptions
6727
- extends BaseMessageOptions,
6728
- MessageOptionsPoll,
6729
- MessageOptionsFlags,
6730
- MessageOptionsTTS,
6731
- MessageOptionsStickers {
6733
+ extends BaseMessageOptions, MessageOptionsPoll, MessageOptionsFlags, MessageOptionsTTS, MessageOptionsStickers {
6732
6734
  enforceNonce?: boolean;
6733
6735
  nonce?: number | string;
6734
6736
  }
@@ -6738,9 +6740,7 @@ export interface MessageCreateOptions extends BaseMessageCreateOptions {
6738
6740
  }
6739
6741
 
6740
6742
  export interface GuildForumThreadMessageCreateOptions
6741
- extends BaseMessageOptions,
6742
- MessageOptionsFlags,
6743
- MessageOptionsStickers {}
6743
+ extends BaseMessageOptions, MessageOptionsFlags, MessageOptionsStickers {}
6744
6744
 
6745
6745
  export interface MessageEditAttachmentData {
6746
6746
  id: Snowflake;
@@ -6943,18 +6943,20 @@ export interface PartialDMChannel extends Partialize<DMChannel, null, null, 'las
6943
6943
 
6944
6944
  export interface PartialGuildMember extends Partialize<GuildMember, 'joinedAt' | 'joinedTimestamp' | 'pending'> {}
6945
6945
 
6946
- export interface PartialMessage<InGuild extends boolean = boolean>
6947
- extends Partialize<Message<InGuild>, 'pinned' | 'system' | 'tts' | 'type', 'author' | 'cleanContent' | 'content'> {}
6946
+ export interface PartialMessage<InGuild extends boolean = boolean> extends Partialize<
6947
+ Message<InGuild>,
6948
+ 'pinned' | 'system' | 'tts' | 'type',
6949
+ 'author' | 'cleanContent' | 'content'
6950
+ > {}
6948
6951
 
6949
6952
  export interface PartialMessageReaction extends Partialize<MessageReaction, 'count'> {}
6950
6953
 
6951
- export interface PartialPoll
6952
- extends Partialize<
6953
- Poll,
6954
- 'allowMultiselect' | 'expiresTimestamp' | 'layoutType',
6955
- null,
6956
- 'answers' | 'message' | 'question'
6957
- > {
6954
+ export interface PartialPoll extends Partialize<
6955
+ Poll,
6956
+ 'allowMultiselect' | 'expiresTimestamp' | 'layoutType',
6957
+ null,
6958
+ 'answers' | 'message' | 'question'
6959
+ > {
6958
6960
  // eslint-disable-next-line no-restricted-syntax
6959
6961
  answers: Collection<number, PartialPollAnswer>;
6960
6962
  message: PartialMessage;
@@ -6965,8 +6967,11 @@ export interface PartialPollAnswer extends Partialize<PollAnswer, 'emoji' | 'tex
6965
6967
  readonly poll: PartialPoll;
6966
6968
  }
6967
6969
 
6968
- export interface PartialGuildScheduledEvent
6969
- extends Partialize<GuildScheduledEvent, 'userCount', 'entityType' | 'name' | 'privacyLevel' | 'status'> {}
6970
+ export interface PartialGuildScheduledEvent extends Partialize<
6971
+ GuildScheduledEvent,
6972
+ 'userCount',
6973
+ 'entityType' | 'name' | 'privacyLevel' | 'status'
6974
+ > {}
6970
6975
 
6971
6976
  export interface PartialThreadMember extends Partialize<ThreadMember, 'flags' | 'joinedAt' | 'joinedTimestamp'> {}
6972
6977
 
@@ -7261,10 +7266,7 @@ export interface WebhookFetchMessageOptions {
7261
7266
  }
7262
7267
 
7263
7268
  export interface WebhookMessageCreateOptions
7264
- extends BaseMessageOptions,
7265
- MessageOptionsPoll,
7266
- MessageOptionsFlags,
7267
- MessageOptionsTTS {
7269
+ extends BaseMessageOptions, MessageOptionsPoll, MessageOptionsFlags, MessageOptionsTTS {
7268
7270
  appliedTags?: readonly Snowflake[];
7269
7271
  avatarURL?: string;
7270
7272
  threadId?: Snowflake;
@@ -266,8 +266,9 @@ export type ActionRowComponentData = MessageActionRowComponentData;
266
266
 
267
267
  export type ActionRowComponent = MessageActionRowComponent;
268
268
 
269
- export interface ActionRowData<ComponentType extends ActionRowComponentData | JSONEncodable<APIComponentInActionRow>>
270
- extends BaseComponentData {
269
+ export interface ActionRowData<
270
+ ComponentType extends ActionRowComponentData | JSONEncodable<APIComponentInActionRow>,
271
+ > extends BaseComponentData {
271
272
  components: readonly ComponentType[];
272
273
  }
273
274
 
@@ -603,7 +604,8 @@ export class BaseGuildEmoji extends Emoji {
603
604
  }
604
605
 
605
606
  export interface BaseGuildTextChannel
606
- extends TextBasedChannelFields<true>,
607
+ extends
608
+ TextBasedChannelFields<true>,
607
609
  PinnableChannelFields,
608
610
  WebhookChannelFields,
609
611
  BulkDeleteMethod,
@@ -630,7 +632,8 @@ export class BaseGuildTextChannel extends GuildChannel {
630
632
  }
631
633
 
632
634
  export interface BaseGuildVoiceChannel
633
- extends TextBasedChannelFields<true>,
635
+ extends
636
+ TextBasedChannelFields<true>,
634
637
  WebhookChannelFields,
635
638
  BulkDeleteMethod,
636
639
  SetRateLimitPerUserMethod,
@@ -1282,10 +1285,7 @@ export class PrimaryEntryPointCommandInteraction<
1282
1285
  }
1283
1286
 
1284
1287
  export interface DMChannel
1285
- extends TextBasedChannelFields<false, true>,
1286
- PinnableChannelFields,
1287
- MessageChannelFields,
1288
- SendMethod<false> {}
1288
+ extends TextBasedChannelFields<false, true>, PinnableChannelFields, MessageChannelFields, SendMethod<false> {}
1289
1289
  export class DMChannel extends BaseChannel {
1290
1290
  private constructor(client: Client<true>, data?: RawDMChannelData);
1291
1291
  public flags: Readonly<ChannelFlagsBitField>;
@@ -2558,14 +2558,13 @@ export interface TextInputModalData extends BaseModalData<ComponentType.TextInpu
2558
2558
  value: string;
2559
2559
  }
2560
2560
 
2561
- export interface SelectMenuModalData<Cached extends CacheType = CacheType>
2562
- extends BaseModalData<
2563
- | ComponentType.ChannelSelect
2564
- | ComponentType.MentionableSelect
2565
- | ComponentType.RoleSelect
2566
- | ComponentType.StringSelect
2567
- | ComponentType.UserSelect
2568
- > {
2561
+ export interface SelectMenuModalData<Cached extends CacheType = CacheType> extends BaseModalData<
2562
+ | ComponentType.ChannelSelect
2563
+ | ComponentType.MentionableSelect
2564
+ | ComponentType.RoleSelect
2565
+ | ComponentType.StringSelect
2566
+ | ComponentType.UserSelect
2567
+ > {
2569
2568
  channels?: ReadonlyCollection<
2570
2569
  Snowflake,
2571
2570
  CacheTypeReducer<Cached, GuildBasedChannel, APIInteractionDataResolvedChannel>
@@ -2660,8 +2659,9 @@ export class ModalComponentResolver<Cached extends CacheType = CacheType> {
2660
2659
  public getUploadedFiles(customId: string, required?: boolean): ReadonlyCollection<Snowflake, Attachment> | null;
2661
2660
  }
2662
2661
 
2663
- export interface ModalMessageModalSubmitInteraction<Cached extends CacheType = CacheType>
2664
- extends ModalSubmitInteraction<Cached> {
2662
+ export interface ModalMessageModalSubmitInteraction<
2663
+ Cached extends CacheType = CacheType,
2664
+ > extends ModalSubmitInteraction<Cached> {
2665
2665
  channelId: Snowflake;
2666
2666
  inCachedGuild(): this is ModalMessageModalSubmitInteraction<'cached'>;
2667
2667
  inGuild(): this is ModalMessageModalSubmitInteraction<'cached' | 'raw'>;
@@ -3514,7 +3514,8 @@ export interface PrivateThreadChannel extends ThreadChannel<false> {
3514
3514
  }
3515
3515
 
3516
3516
  export interface ThreadChannel<ThreadOnly extends boolean = boolean>
3517
- extends TextBasedChannelFields<true>,
3517
+ extends
3518
+ TextBasedChannelFields<true>,
3518
3519
  PinnableChannelFields,
3519
3520
  BulkDeleteMethod,
3520
3521
  SetRateLimitPerUserMethod,
@@ -5061,15 +5062,17 @@ export interface ApplicationCommandAutocompleteStringOptionData extends BaseAppl
5061
5062
  type: ApplicationCommandOptionType.String;
5062
5063
  }
5063
5064
 
5064
- export interface ApplicationCommandChoicesData<Type extends number | string = number | string>
5065
- extends BaseApplicationCommandOptionsData {
5065
+ export interface ApplicationCommandChoicesData<
5066
+ Type extends number | string = number | string,
5067
+ > extends BaseApplicationCommandOptionsData {
5066
5068
  autocomplete?: false;
5067
5069
  choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
5068
5070
  type: CommandOptionChoiceResolvableType;
5069
5071
  }
5070
5072
 
5071
- export interface ApplicationCommandChoicesOption<Type extends number | string = number | string>
5072
- extends BaseApplicationCommandOptionsData {
5073
+ export interface ApplicationCommandChoicesOption<
5074
+ Type extends number | string = number | string,
5075
+ > extends BaseApplicationCommandOptionsData {
5073
5076
  autocomplete?: false;
5074
5077
  choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
5075
5078
  type: CommandOptionChoiceResolvableType;
@@ -5252,13 +5255,15 @@ export interface AutoModerationTriggerMetadata {
5252
5255
  regexPatterns: readonly string[];
5253
5256
  }
5254
5257
 
5255
- export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction>
5256
- extends CollectorOptions<[Interaction, Collection<Snowflake, Interaction>]> {
5258
+ export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction> extends CollectorOptions<
5259
+ [Interaction, Collection<Snowflake, Interaction>]
5260
+ > {
5257
5261
  componentType?: ComponentType;
5258
5262
  }
5259
5263
 
5260
- export interface AwaitModalSubmitOptions
5261
- extends CollectorOptions<[ModalSubmitInteraction, Collection<Snowflake, ModalSubmitInteraction>]> {
5264
+ export interface AwaitModalSubmitOptions extends CollectorOptions<
5265
+ [ModalSubmitInteraction, Collection<Snowflake, ModalSubmitInteraction>]
5266
+ > {
5262
5267
  time: number;
5263
5268
  }
5264
5269
 
@@ -5631,8 +5636,9 @@ export interface BaseInteractionResolvedData<Cached extends CacheType = CacheTyp
5631
5636
  users?: ReadonlyCollection<Snowflake, User>;
5632
5637
  }
5633
5638
 
5634
- export interface CommandInteractionResolvedData<Cached extends CacheType = CacheType>
5635
- extends BaseInteractionResolvedData<Cached> {
5639
+ export interface CommandInteractionResolvedData<
5640
+ Cached extends CacheType = CacheType,
5641
+ > extends BaseInteractionResolvedData<Cached> {
5636
5642
  messages?: ReadonlyCollection<Snowflake, CacheTypeReducer<Cached, Message, APIMessage>>;
5637
5643
  }
5638
5644
 
@@ -6618,8 +6624,9 @@ export type CollectedMessageInteraction<Cached extends CacheType = CacheType> =
6618
6624
  ModalSubmitInteraction
6619
6625
  >;
6620
6626
 
6621
- export interface MessageComponentCollectorOptions<Interaction extends CollectedMessageInteraction>
6622
- extends AwaitMessageComponentOptions<Interaction> {
6627
+ export interface MessageComponentCollectorOptions<
6628
+ Interaction extends CollectedMessageInteraction,
6629
+ > extends AwaitMessageComponentOptions<Interaction> {
6623
6630
  max?: number;
6624
6631
  maxComponents?: number;
6625
6632
  maxUsers?: number;
@@ -6658,25 +6665,24 @@ export interface MessageMentionOptions {
6658
6665
 
6659
6666
  export type MessageMentionTypes = 'everyone' | 'roles' | 'users';
6660
6667
 
6661
- export interface MessageSnapshot
6662
- extends Partialize<
6663
- Message,
6664
- null,
6665
- Exclude<
6666
- keyof Message,
6667
- | 'attachments'
6668
- | 'client'
6669
- | 'components'
6670
- | 'content'
6671
- | 'createdTimestamp'
6672
- | 'editedTimestamp'
6673
- | 'embeds'
6674
- | 'flags'
6675
- | 'mentions'
6676
- | 'stickers'
6677
- | 'type'
6678
- >
6679
- > {}
6668
+ export interface MessageSnapshot extends Partialize<
6669
+ Message,
6670
+ null,
6671
+ Exclude<
6672
+ keyof Message,
6673
+ | 'attachments'
6674
+ | 'client'
6675
+ | 'components'
6676
+ | 'content'
6677
+ | 'createdTimestamp'
6678
+ | 'editedTimestamp'
6679
+ | 'embeds'
6680
+ | 'flags'
6681
+ | 'mentions'
6682
+ | 'stickers'
6683
+ | 'type'
6684
+ >
6685
+ > {}
6680
6686
 
6681
6687
  export interface BaseMessageOptions {
6682
6688
  allowedMentions?: MessageMentionOptions;
@@ -6724,11 +6730,7 @@ export interface MessageOptionsStickers {
6724
6730
  }
6725
6731
 
6726
6732
  export interface BaseMessageCreateOptions
6727
- extends BaseMessageOptions,
6728
- MessageOptionsPoll,
6729
- MessageOptionsFlags,
6730
- MessageOptionsTTS,
6731
- MessageOptionsStickers {
6733
+ extends BaseMessageOptions, MessageOptionsPoll, MessageOptionsFlags, MessageOptionsTTS, MessageOptionsStickers {
6732
6734
  enforceNonce?: boolean;
6733
6735
  nonce?: number | string;
6734
6736
  }
@@ -6738,9 +6740,7 @@ export interface MessageCreateOptions extends BaseMessageCreateOptions {
6738
6740
  }
6739
6741
 
6740
6742
  export interface GuildForumThreadMessageCreateOptions
6741
- extends BaseMessageOptions,
6742
- MessageOptionsFlags,
6743
- MessageOptionsStickers {}
6743
+ extends BaseMessageOptions, MessageOptionsFlags, MessageOptionsStickers {}
6744
6744
 
6745
6745
  export interface MessageEditAttachmentData {
6746
6746
  id: Snowflake;
@@ -6943,18 +6943,20 @@ export interface PartialDMChannel extends Partialize<DMChannel, null, null, 'las
6943
6943
 
6944
6944
  export interface PartialGuildMember extends Partialize<GuildMember, 'joinedAt' | 'joinedTimestamp' | 'pending'> {}
6945
6945
 
6946
- export interface PartialMessage<InGuild extends boolean = boolean>
6947
- extends Partialize<Message<InGuild>, 'pinned' | 'system' | 'tts' | 'type', 'author' | 'cleanContent' | 'content'> {}
6946
+ export interface PartialMessage<InGuild extends boolean = boolean> extends Partialize<
6947
+ Message<InGuild>,
6948
+ 'pinned' | 'system' | 'tts' | 'type',
6949
+ 'author' | 'cleanContent' | 'content'
6950
+ > {}
6948
6951
 
6949
6952
  export interface PartialMessageReaction extends Partialize<MessageReaction, 'count'> {}
6950
6953
 
6951
- export interface PartialPoll
6952
- extends Partialize<
6953
- Poll,
6954
- 'allowMultiselect' | 'expiresTimestamp' | 'layoutType',
6955
- null,
6956
- 'answers' | 'message' | 'question'
6957
- > {
6954
+ export interface PartialPoll extends Partialize<
6955
+ Poll,
6956
+ 'allowMultiselect' | 'expiresTimestamp' | 'layoutType',
6957
+ null,
6958
+ 'answers' | 'message' | 'question'
6959
+ > {
6958
6960
  // eslint-disable-next-line no-restricted-syntax
6959
6961
  answers: Collection<number, PartialPollAnswer>;
6960
6962
  message: PartialMessage;
@@ -6965,8 +6967,11 @@ export interface PartialPollAnswer extends Partialize<PollAnswer, 'emoji' | 'tex
6965
6967
  readonly poll: PartialPoll;
6966
6968
  }
6967
6969
 
6968
- export interface PartialGuildScheduledEvent
6969
- extends Partialize<GuildScheduledEvent, 'userCount', 'entityType' | 'name' | 'privacyLevel' | 'status'> {}
6970
+ export interface PartialGuildScheduledEvent extends Partialize<
6971
+ GuildScheduledEvent,
6972
+ 'userCount',
6973
+ 'entityType' | 'name' | 'privacyLevel' | 'status'
6974
+ > {}
6970
6975
 
6971
6976
  export interface PartialThreadMember extends Partialize<ThreadMember, 'flags' | 'joinedAt' | 'joinedTimestamp'> {}
6972
6977
 
@@ -7261,10 +7266,7 @@ export interface WebhookFetchMessageOptions {
7261
7266
  }
7262
7267
 
7263
7268
  export interface WebhookMessageCreateOptions
7264
- extends BaseMessageOptions,
7265
- MessageOptionsPoll,
7266
- MessageOptionsFlags,
7267
- MessageOptionsTTS {
7269
+ extends BaseMessageOptions, MessageOptionsPoll, MessageOptionsFlags, MessageOptionsTTS {
7268
7270
  appliedTags?: readonly Snowflake[];
7269
7271
  avatarURL?: string;
7270
7272
  threadId?: Snowflake;