discord.js 15.0.0-dev.1740615141-b6fda781c → 15.0.0-dev.1740679933-8a37b7b93

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.1740615141-b6fda781c",
4
+ "version": "15.0.0-dev.1740679933-8a37b7b93",
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",
@@ -52,7 +52,6 @@
52
52
  "homepage": "https://discord.js.org",
53
53
  "funding": "https://github.com/discordjs/discord.js?sponsor",
54
54
  "dependencies": {
55
- "@discordjs/builders": "^1.9.0",
56
55
  "@sapphire/snowflake": "3.5.5",
57
56
  "@vladfrangu/async_event_emitter": "^2.4.6",
58
57
  "discord-api-types": "^0.37.118",
@@ -60,11 +59,12 @@
60
59
  "lodash.snakecase": "4.1.1",
61
60
  "tslib": "^2.8.1",
62
61
  "undici": "6.21.1",
62
+ "@discordjs/builders": "^1.9.0",
63
63
  "@discordjs/formatters": "^0.5.0",
64
64
  "@discordjs/collection": "^2.1.1",
65
- "@discordjs/util": "^1.1.1",
65
+ "@discordjs/rest": "^2.4.0",
66
66
  "@discordjs/ws": "^2.0.0",
67
- "@discordjs/rest": "^2.4.0"
67
+ "@discordjs/util": "^1.1.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@favware/cliff-jumper": "^4.1.0",
package/src/index.js CHANGED
@@ -92,7 +92,6 @@ exports.VoiceStateManager = require('./managers/VoiceStateManager.js').VoiceStat
92
92
 
93
93
  // Structures
94
94
  exports.ActionRow = require('./structures/ActionRow.js').ActionRow;
95
- exports.ActionRowBuilder = require('./structures/ActionRowBuilder.js').ActionRowBuilder;
96
95
  exports.Activity = require('./structures/Presence.js').Activity;
97
96
  exports.AnnouncementChannel = require('./structures/AnnouncementChannel.js').AnnouncementChannel;
98
97
  exports.AnonymousGuild = require('./structures/AnonymousGuild.js').AnonymousGuild;
@@ -115,11 +114,9 @@ exports.BaseGuildTextChannel = require('./structures/BaseGuildTextChannel.js').B
115
114
  exports.BaseGuildVoiceChannel = require('./structures/BaseGuildVoiceChannel.js').BaseGuildVoiceChannel;
116
115
  exports.BaseInteraction = require('./structures/BaseInteraction.js').BaseInteraction;
117
116
  exports.BaseSelectMenuComponent = require('./structures/BaseSelectMenuComponent.js').BaseSelectMenuComponent;
118
- exports.ButtonBuilder = require('./structures/ButtonBuilder.js').ButtonBuilder;
119
117
  exports.ButtonComponent = require('./structures/ButtonComponent.js').ButtonComponent;
120
118
  exports.ButtonInteraction = require('./structures/ButtonInteraction.js').ButtonInteraction;
121
119
  exports.CategoryChannel = require('./structures/CategoryChannel.js').CategoryChannel;
122
- exports.ChannelSelectMenuBuilder = require('./structures/ChannelSelectMenuBuilder.js').ChannelSelectMenuBuilder;
123
120
  exports.ChannelSelectMenuComponent = require('./structures/ChannelSelectMenuComponent.js').ChannelSelectMenuComponent;
124
121
  exports.ChannelSelectMenuInteraction =
125
122
  require('./structures/ChannelSelectMenuInteraction.js').ChannelSelectMenuInteraction;
@@ -137,7 +134,6 @@ exports.ContextMenuCommandInteraction =
137
134
  require('./structures/ContextMenuCommandInteraction.js').ContextMenuCommandInteraction;
138
135
  exports.DMChannel = require('./structures/DMChannel.js').DMChannel;
139
136
  exports.Embed = require('./structures/Embed.js').Embed;
140
- exports.EmbedBuilder = require('./structures/EmbedBuilder.js').EmbedBuilder;
141
137
  exports.Emoji = require('./structures/Emoji.js').Emoji;
142
138
  exports.Entitlement = require('./structures/Entitlement.js').Entitlement;
143
139
  exports.ForumChannel = require('./structures/ForumChannel.js').ForumChannel;
@@ -168,8 +164,6 @@ exports.InteractionWebhook = require('./structures/InteractionWebhook.js').Inter
168
164
  exports.Invite = require('./structures/Invite.js').Invite;
169
165
  exports.InviteGuild = require('./structures/InviteGuild.js').InviteGuild;
170
166
  exports.MediaChannel = require('./structures/MediaChannel.js').MediaChannel;
171
- exports.MentionableSelectMenuBuilder =
172
- require('./structures/MentionableSelectMenuBuilder.js').MentionableSelectMenuBuilder;
173
167
  exports.MentionableSelectMenuComponent =
174
168
  require('./structures/MentionableSelectMenuComponent.js').MentionableSelectMenuComponent;
175
169
  exports.MentionableSelectMenuInteraction =
@@ -185,7 +179,6 @@ exports.MessageContextMenuCommandInteraction =
185
179
  exports.MessageMentions = require('./structures/MessageMentions.js').MessageMentions;
186
180
  exports.MessagePayload = require('./structures/MessagePayload.js').MessagePayload;
187
181
  exports.MessageReaction = require('./structures/MessageReaction.js').MessageReaction;
188
- exports.ModalBuilder = require('./structures/ModalBuilder.js').ModalBuilder;
189
182
  exports.ModalSubmitFields = require('./structures/ModalSubmitFields.js').ModalSubmitFields;
190
183
  exports.ModalSubmitInteraction = require('./structures/ModalSubmitInteraction.js').ModalSubmitInteraction;
191
184
  exports.OAuth2Guild = require('./structures/OAuth2Guild.js').OAuth2Guild;
@@ -198,7 +191,6 @@ exports.ReactionCollector = require('./structures/ReactionCollector.js').Reactio
198
191
  exports.ReactionEmoji = require('./structures/ReactionEmoji.js').ReactionEmoji;
199
192
  exports.RichPresenceAssets = require('./structures/Presence.js').RichPresenceAssets;
200
193
  exports.Role = require('./structures/Role.js').Role;
201
- exports.RoleSelectMenuBuilder = require('./structures/RoleSelectMenuBuilder.js').RoleSelectMenuBuilder;
202
194
  exports.RoleSelectMenuComponent = require('./structures/RoleSelectMenuComponent.js').RoleSelectMenuComponent;
203
195
  exports.RoleSelectMenuInteraction = require('./structures/RoleSelectMenuInteraction.js').RoleSelectMenuInteraction;
204
196
  exports.SKU = require('./structures/SKU.js').SKU;
@@ -206,17 +198,13 @@ exports.StageChannel = require('./structures/StageChannel.js').StageChannel;
206
198
  exports.StageInstance = require('./structures/StageInstance.js').StageInstance;
207
199
  exports.Sticker = require('./structures/Sticker.js').Sticker;
208
200
  exports.StickerPack = require('./structures/StickerPack.js').StickerPack;
209
- exports.StringSelectMenuBuilder = require('./structures/StringSelectMenuBuilder.js').StringSelectMenuBuilder;
210
201
  exports.StringSelectMenuComponent = require('./structures/StringSelectMenuComponent.js').StringSelectMenuComponent;
211
202
  exports.StringSelectMenuInteraction =
212
203
  require('./structures/StringSelectMenuInteraction.js').StringSelectMenuInteraction;
213
- exports.StringSelectMenuOptionBuilder =
214
- require('./structures/StringSelectMenuOptionBuilder.js').StringSelectMenuOptionBuilder;
215
204
  exports.Subscription = require('./structures/Subscription.js').Subscription;
216
205
  exports.Team = require('./structures/Team.js').Team;
217
206
  exports.TeamMember = require('./structures/TeamMember.js').TeamMember;
218
207
  exports.TextChannel = require('./structures/TextChannel.js').TextChannel;
219
- exports.TextInputBuilder = require('./structures/TextInputBuilder.js').TextInputBuilder;
220
208
  exports.TextInputComponent = require('./structures/TextInputComponent.js').TextInputComponent;
221
209
  exports.ThreadChannel = require('./structures/ThreadChannel.js').ThreadChannel;
222
210
  exports.ThreadMember = require('./structures/ThreadMember.js').ThreadMember;
@@ -225,7 +213,6 @@ exports.Typing = require('./structures/Typing.js').Typing;
225
213
  exports.User = require('./structures/User.js').User;
226
214
  exports.UserContextMenuCommandInteraction =
227
215
  require('./structures/UserContextMenuCommandInteraction.js').UserContextMenuCommandInteraction;
228
- exports.UserSelectMenuBuilder = require('./structures/UserSelectMenuBuilder.js').UserSelectMenuBuilder;
229
216
  exports.UserSelectMenuComponent = require('./structures/UserSelectMenuComponent.js').UserSelectMenuComponent;
230
217
  exports.UserSelectMenuInteraction = require('./structures/UserSelectMenuInteraction.js').UserSelectMenuInteraction;
231
218
  exports.VoiceChannel = require('./structures/VoiceChannel.js').VoiceChannel;
@@ -3,7 +3,6 @@
3
3
  const { Buffer } = require('node:buffer');
4
4
  const { isJSONEncodable } = require('@discordjs/util');
5
5
  const { DiscordSnowflake } = require('@sapphire/snowflake');
6
- const { ActionRowBuilder } = require('./ActionRowBuilder.js');
7
6
  const { DiscordjsError, DiscordjsRangeError, ErrorCodes } = require('../errors/index.js');
8
7
  const { resolveFile } = require('../util/DataResolver.js');
9
8
  const { MessageFlagsBitField } = require('../util/MessageFlagsBitField.js');
@@ -133,7 +132,7 @@ class MessagePayload {
133
132
  }
134
133
 
135
134
  const components = this.options.components?.map(component =>
136
- (isJSONEncodable(component) ? component : new ActionRowBuilder(component)).toJSON(),
135
+ isJSONEncodable(component) ? component.toJSON() : this.target.client.options.jsonTransformer(component),
137
136
  );
138
137
 
139
138
  let username;
package/src/util/Util.js CHANGED
@@ -112,7 +112,6 @@ function parseEmoji(text) {
112
112
  * Resolves a partial emoji object from an {@link EmojiIdentifierResolvable}, without checking a Client.
113
113
  * @param {Emoji|EmojiIdentifierResolvable} emoji Emoji identifier to resolve
114
114
  * @returns {?(PartialEmoji|PartialEmojiOnlyId)} Supplying a snowflake yields `PartialEmojiOnlyId`.
115
- * @private
116
115
  */
117
116
  function resolvePartialEmoji(emoji) {
118
117
  if (!emoji) return null;
@@ -1,21 +1,3 @@
1
- import {
2
- ActionRowBuilder as BuilderActionRow,
3
- MessageActionRowComponentBuilder,
4
- ButtonBuilder as BuilderButtonComponent,
5
- EmbedBuilder as BuildersEmbed,
6
- ChannelSelectMenuBuilder as BuilderChannelSelectMenuComponent,
7
- MentionableSelectMenuBuilder as BuilderMentionableSelectMenuComponent,
8
- RoleSelectMenuBuilder as BuilderRoleSelectMenuComponent,
9
- StringSelectMenuBuilder as BuilderStringSelectMenuComponent,
10
- UserSelectMenuBuilder as BuilderUserSelectMenuComponent,
11
- TextInputBuilder as BuilderTextInputComponent,
12
- SelectMenuOptionBuilder as BuildersSelectMenuOption,
13
- ModalActionRowComponentBuilder,
14
- ModalBuilder as BuildersModal,
15
- AnyComponentBuilder,
16
- type RestOrArray,
17
- ApplicationCommandOptionAllowedChannelTypes,
18
- } from '@discordjs/builders';
19
1
  import { Awaitable, JSONEncodable } from '@discordjs/util';
20
2
  import { Collection, ReadonlyCollection } from '@discordjs/collection';
21
3
  import { BaseImageURLOptions, ImageURLOptions, RawFile, REST, RESTOptions } from '@discordjs/rest';
@@ -236,6 +218,7 @@ import {
236
218
  RawWidgetData,
237
219
  RawWidgetMemberData,
238
220
  } from './rawDataTypes.mjs';
221
+ import { ApplicationCommandOptionAllowedChannelTypes, MessageActionRowComponentBuilder } from '@discordjs/builders';
239
222
 
240
223
  //#region Classes
241
224
 
@@ -293,22 +276,6 @@ export interface ActionRowData<ComponentType extends JSONEncodable<APIActionRowC
293
276
  components: readonly ComponentType[];
294
277
  }
295
278
 
296
- export class ActionRowBuilder<
297
- ComponentType extends AnyComponentBuilder = AnyComponentBuilder,
298
- > extends BuilderActionRow<ComponentType> {
299
- public constructor(
300
- data?: Partial<
301
- | ActionRowData<ActionRowComponentData | JSONEncodable<APIActionRowComponentTypes>>
302
- | APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
303
- >,
304
- );
305
- public static from<ComponentType extends AnyComponentBuilder = AnyComponentBuilder>(
306
- other:
307
- | JSONEncodable<APIActionRowComponent<ReturnType<ComponentType['toJSON']>>>
308
- | APIActionRowComponent<ReturnType<ComponentType['toJSON']>>,
309
- ): ActionRowBuilder<ComponentType>;
310
- }
311
-
312
279
  export type MessageActionRowComponent =
313
280
  | ButtonComponent
314
281
  | StringSelectMenuComponent
@@ -750,70 +717,6 @@ export class ButtonComponent extends Component<APIButtonComponent> {
750
717
 
751
718
  export type ComponentEmojiResolvable = APIMessageComponentEmoji | string;
752
719
 
753
- export class ButtonBuilder extends BuilderButtonComponent {
754
- public constructor(data?: Partial<ButtonComponentData> | Partial<APIButtonComponent>);
755
- public static from(other: JSONEncodable<APIButtonComponent> | APIButtonComponent): ButtonBuilder;
756
- public override setEmoji(emoji: ComponentEmojiResolvable): this;
757
- }
758
-
759
- export class StringSelectMenuBuilder extends BuilderStringSelectMenuComponent {
760
- public constructor(data?: Partial<StringSelectMenuComponentData | APIStringSelectComponent>);
761
- private static normalizeEmoji(
762
- selectMenuOption: JSONEncodable<APISelectMenuOption> | SelectMenuComponentOptionData,
763
- ): (APISelectMenuOption | StringSelectMenuOptionBuilder)[];
764
- public override addOptions(
765
- ...options: RestOrArray<BuildersSelectMenuOption | SelectMenuComponentOptionData | APISelectMenuOption>
766
- ): this;
767
- public override setOptions(
768
- ...options: RestOrArray<BuildersSelectMenuOption | SelectMenuComponentOptionData | APISelectMenuOption>
769
- ): this;
770
- public static from(
771
- other: JSONEncodable<APIStringSelectComponent> | APIStringSelectComponent,
772
- ): StringSelectMenuBuilder;
773
- }
774
-
775
- export class UserSelectMenuBuilder extends BuilderUserSelectMenuComponent {
776
- public constructor(data?: Partial<UserSelectMenuComponentData | APIUserSelectComponent>);
777
- public static from(other: JSONEncodable<APIUserSelectComponent> | APIUserSelectComponent): UserSelectMenuBuilder;
778
- }
779
-
780
- export class RoleSelectMenuBuilder extends BuilderRoleSelectMenuComponent {
781
- public constructor(data?: Partial<RoleSelectMenuComponentData | APIRoleSelectComponent>);
782
- public static from(other: JSONEncodable<APIRoleSelectComponent> | APIRoleSelectComponent): RoleSelectMenuBuilder;
783
- }
784
-
785
- export class MentionableSelectMenuBuilder extends BuilderMentionableSelectMenuComponent {
786
- public constructor(data?: Partial<MentionableSelectMenuComponentData | APIMentionableSelectComponent>);
787
- public static from(
788
- other: JSONEncodable<APIMentionableSelectComponent> | APIMentionableSelectComponent,
789
- ): MentionableSelectMenuBuilder;
790
- }
791
-
792
- export class ChannelSelectMenuBuilder extends BuilderChannelSelectMenuComponent {
793
- public constructor(data?: Partial<ChannelSelectMenuComponentData | APIChannelSelectComponent>);
794
- public static from(
795
- other: JSONEncodable<APIChannelSelectComponent> | APIChannelSelectComponent,
796
- ): ChannelSelectMenuBuilder;
797
- }
798
-
799
- export class StringSelectMenuOptionBuilder extends BuildersSelectMenuOption {
800
- public constructor(data?: SelectMenuComponentOptionData | APISelectMenuOption);
801
- public override setEmoji(emoji: ComponentEmojiResolvable): this;
802
- public static from(other: JSONEncodable<APISelectMenuOption> | APISelectMenuOption): StringSelectMenuOptionBuilder;
803
- }
804
-
805
- export class ModalBuilder extends BuildersModal {
806
- public constructor(data?: Partial<ModalComponentData> | Partial<APIModalInteractionResponseCallbackData>);
807
- public static from(
808
- other: JSONEncodable<APIModalInteractionResponseCallbackData> | APIModalInteractionResponseCallbackData,
809
- ): ModalBuilder;
810
- }
811
-
812
- export class TextInputBuilder extends BuilderTextInputComponent {
813
- public constructor(data?: Partial<TextInputComponentData | APITextInputComponent>);
814
- public static from(other: JSONEncodable<APITextInputComponent> | APITextInputComponent): TextInputBuilder;
815
- }
816
-
817
720
  export class TextInputComponent extends Component<APITextInputComponent> {
818
721
  public get customId(): string;
819
722
  public get value(): string;
@@ -871,13 +774,6 @@ export interface EmbedAssetData extends Omit<APIEmbedImage, 'proxy_url'> {
871
774
  proxyURL?: string;
872
775
  }
873
776
 
874
- export class EmbedBuilder extends BuildersEmbed {
875
- public constructor(data?: EmbedData | APIEmbed);
876
- public override setColor(color: ColorResolvable | null): this;
877
- public static from(other: JSONEncodable<APIEmbed> | APIEmbed): EmbedBuilder;
878
- public get length(): number;
879
- }
880
-
881
777
  export class Embed {
882
778
  private constructor(data: APIEmbed);
883
779
  public readonly data: Readonly<APIEmbed>;
@@ -3507,9 +3403,7 @@ export function moveElementInArray(
3507
3403
  ): number;
3508
3404
  export function parseEmoji(text: string): PartialEmoji | null;
3509
3405
  export function resolveColor(color: ColorResolvable): number;
3510
- /** @internal */
3511
3406
  export function resolvePartialEmoji(emoji: Snowflake): PartialEmojiOnlyId;
3512
- /** @internal */
3513
3407
  export function resolvePartialEmoji(emoji: Emoji | EmojiIdentifierResolvable): PartialEmoji | null;
3514
3408
  /** @internal */
3515
3409
  export function resolveGuildEmoji(client: Client, emojiId: Snowflake): GuildEmoji | null;
@@ -6265,16 +6159,6 @@ export interface MessageCollectorOptions extends CollectorOptions<[Message, Coll
6265
6159
  maxProcessed?: number;
6266
6160
  }
6267
6161
 
6268
- export type MessageComponent =
6269
- | Component
6270
- | ActionRowBuilder<MessageActionRowComponentBuilder | ModalActionRowComponentBuilder>
6271
- | ButtonComponent
6272
- | StringSelectMenuComponent
6273
- | UserSelectMenuComponent
6274
- | RoleSelectMenuComponent
6275
- | MentionableSelectMenuComponent
6276
- | ChannelSelectMenuComponent;
6277
-
6278
6162
  export type CollectedMessageInteraction<Cached extends CacheType = CacheType> = Exclude<
6279
6163
  CollectedInteraction<Cached>,
6280
6164
  ModalSubmitInteraction
@@ -6345,7 +6229,7 @@ export interface BaseMessageOptions {
6345
6229
  | AttachmentPayload
6346
6230
  )[];
6347
6231
  components?: readonly (
6348
- | JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>>
6232
+ | JSONEncodable<APIActionRowComponent<APIActionRowComponentTypes>>
6349
6233
  | ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder>
6350
6234
  | APIActionRowComponent<APIMessageActionRowComponent>
6351
6235
  )[];
@@ -1,21 +1,3 @@
1
- import {
2
- ActionRowBuilder as BuilderActionRow,
3
- MessageActionRowComponentBuilder,
4
- ButtonBuilder as BuilderButtonComponent,
5
- EmbedBuilder as BuildersEmbed,
6
- ChannelSelectMenuBuilder as BuilderChannelSelectMenuComponent,
7
- MentionableSelectMenuBuilder as BuilderMentionableSelectMenuComponent,
8
- RoleSelectMenuBuilder as BuilderRoleSelectMenuComponent,
9
- StringSelectMenuBuilder as BuilderStringSelectMenuComponent,
10
- UserSelectMenuBuilder as BuilderUserSelectMenuComponent,
11
- TextInputBuilder as BuilderTextInputComponent,
12
- SelectMenuOptionBuilder as BuildersSelectMenuOption,
13
- ModalActionRowComponentBuilder,
14
- ModalBuilder as BuildersModal,
15
- AnyComponentBuilder,
16
- type RestOrArray,
17
- ApplicationCommandOptionAllowedChannelTypes,
18
- } from '@discordjs/builders';
19
1
  import { Awaitable, JSONEncodable } from '@discordjs/util';
20
2
  import { Collection, ReadonlyCollection } from '@discordjs/collection';
21
3
  import { BaseImageURLOptions, ImageURLOptions, RawFile, REST, RESTOptions } from '@discordjs/rest';
@@ -236,6 +218,7 @@ import {
236
218
  RawWidgetData,
237
219
  RawWidgetMemberData,
238
220
  } from './rawDataTypes.js';
221
+ import { ApplicationCommandOptionAllowedChannelTypes, MessageActionRowComponentBuilder } from '@discordjs/builders';
239
222
 
240
223
  //#region Classes
241
224
 
@@ -293,22 +276,6 @@ export interface ActionRowData<ComponentType extends JSONEncodable<APIActionRowC
293
276
  components: readonly ComponentType[];
294
277
  }
295
278
 
296
- export class ActionRowBuilder<
297
- ComponentType extends AnyComponentBuilder = AnyComponentBuilder,
298
- > extends BuilderActionRow<ComponentType> {
299
- public constructor(
300
- data?: Partial<
301
- | ActionRowData<ActionRowComponentData | JSONEncodable<APIActionRowComponentTypes>>
302
- | APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
303
- >,
304
- );
305
- public static from<ComponentType extends AnyComponentBuilder = AnyComponentBuilder>(
306
- other:
307
- | JSONEncodable<APIActionRowComponent<ReturnType<ComponentType['toJSON']>>>
308
- | APIActionRowComponent<ReturnType<ComponentType['toJSON']>>,
309
- ): ActionRowBuilder<ComponentType>;
310
- }
311
-
312
279
  export type MessageActionRowComponent =
313
280
  | ButtonComponent
314
281
  | StringSelectMenuComponent
@@ -750,70 +717,6 @@ export class ButtonComponent extends Component<APIButtonComponent> {
750
717
 
751
718
  export type ComponentEmojiResolvable = APIMessageComponentEmoji | string;
752
719
 
753
- export class ButtonBuilder extends BuilderButtonComponent {
754
- public constructor(data?: Partial<ButtonComponentData> | Partial<APIButtonComponent>);
755
- public static from(other: JSONEncodable<APIButtonComponent> | APIButtonComponent): ButtonBuilder;
756
- public override setEmoji(emoji: ComponentEmojiResolvable): this;
757
- }
758
-
759
- export class StringSelectMenuBuilder extends BuilderStringSelectMenuComponent {
760
- public constructor(data?: Partial<StringSelectMenuComponentData | APIStringSelectComponent>);
761
- private static normalizeEmoji(
762
- selectMenuOption: JSONEncodable<APISelectMenuOption> | SelectMenuComponentOptionData,
763
- ): (APISelectMenuOption | StringSelectMenuOptionBuilder)[];
764
- public override addOptions(
765
- ...options: RestOrArray<BuildersSelectMenuOption | SelectMenuComponentOptionData | APISelectMenuOption>
766
- ): this;
767
- public override setOptions(
768
- ...options: RestOrArray<BuildersSelectMenuOption | SelectMenuComponentOptionData | APISelectMenuOption>
769
- ): this;
770
- public static from(
771
- other: JSONEncodable<APIStringSelectComponent> | APIStringSelectComponent,
772
- ): StringSelectMenuBuilder;
773
- }
774
-
775
- export class UserSelectMenuBuilder extends BuilderUserSelectMenuComponent {
776
- public constructor(data?: Partial<UserSelectMenuComponentData | APIUserSelectComponent>);
777
- public static from(other: JSONEncodable<APIUserSelectComponent> | APIUserSelectComponent): UserSelectMenuBuilder;
778
- }
779
-
780
- export class RoleSelectMenuBuilder extends BuilderRoleSelectMenuComponent {
781
- public constructor(data?: Partial<RoleSelectMenuComponentData | APIRoleSelectComponent>);
782
- public static from(other: JSONEncodable<APIRoleSelectComponent> | APIRoleSelectComponent): RoleSelectMenuBuilder;
783
- }
784
-
785
- export class MentionableSelectMenuBuilder extends BuilderMentionableSelectMenuComponent {
786
- public constructor(data?: Partial<MentionableSelectMenuComponentData | APIMentionableSelectComponent>);
787
- public static from(
788
- other: JSONEncodable<APIMentionableSelectComponent> | APIMentionableSelectComponent,
789
- ): MentionableSelectMenuBuilder;
790
- }
791
-
792
- export class ChannelSelectMenuBuilder extends BuilderChannelSelectMenuComponent {
793
- public constructor(data?: Partial<ChannelSelectMenuComponentData | APIChannelSelectComponent>);
794
- public static from(
795
- other: JSONEncodable<APIChannelSelectComponent> | APIChannelSelectComponent,
796
- ): ChannelSelectMenuBuilder;
797
- }
798
-
799
- export class StringSelectMenuOptionBuilder extends BuildersSelectMenuOption {
800
- public constructor(data?: SelectMenuComponentOptionData | APISelectMenuOption);
801
- public override setEmoji(emoji: ComponentEmojiResolvable): this;
802
- public static from(other: JSONEncodable<APISelectMenuOption> | APISelectMenuOption): StringSelectMenuOptionBuilder;
803
- }
804
-
805
- export class ModalBuilder extends BuildersModal {
806
- public constructor(data?: Partial<ModalComponentData> | Partial<APIModalInteractionResponseCallbackData>);
807
- public static from(
808
- other: JSONEncodable<APIModalInteractionResponseCallbackData> | APIModalInteractionResponseCallbackData,
809
- ): ModalBuilder;
810
- }
811
-
812
- export class TextInputBuilder extends BuilderTextInputComponent {
813
- public constructor(data?: Partial<TextInputComponentData | APITextInputComponent>);
814
- public static from(other: JSONEncodable<APITextInputComponent> | APITextInputComponent): TextInputBuilder;
815
- }
816
-
817
720
  export class TextInputComponent extends Component<APITextInputComponent> {
818
721
  public get customId(): string;
819
722
  public get value(): string;
@@ -871,13 +774,6 @@ export interface EmbedAssetData extends Omit<APIEmbedImage, 'proxy_url'> {
871
774
  proxyURL?: string;
872
775
  }
873
776
 
874
- export class EmbedBuilder extends BuildersEmbed {
875
- public constructor(data?: EmbedData | APIEmbed);
876
- public override setColor(color: ColorResolvable | null): this;
877
- public static from(other: JSONEncodable<APIEmbed> | APIEmbed): EmbedBuilder;
878
- public get length(): number;
879
- }
880
-
881
777
  export class Embed {
882
778
  private constructor(data: APIEmbed);
883
779
  public readonly data: Readonly<APIEmbed>;
@@ -3507,9 +3403,7 @@ export function moveElementInArray(
3507
3403
  ): number;
3508
3404
  export function parseEmoji(text: string): PartialEmoji | null;
3509
3405
  export function resolveColor(color: ColorResolvable): number;
3510
- /** @internal */
3511
3406
  export function resolvePartialEmoji(emoji: Snowflake): PartialEmojiOnlyId;
3512
- /** @internal */
3513
3407
  export function resolvePartialEmoji(emoji: Emoji | EmojiIdentifierResolvable): PartialEmoji | null;
3514
3408
  /** @internal */
3515
3409
  export function resolveGuildEmoji(client: Client, emojiId: Snowflake): GuildEmoji | null;
@@ -6265,16 +6159,6 @@ export interface MessageCollectorOptions extends CollectorOptions<[Message, Coll
6265
6159
  maxProcessed?: number;
6266
6160
  }
6267
6161
 
6268
- export type MessageComponent =
6269
- | Component
6270
- | ActionRowBuilder<MessageActionRowComponentBuilder | ModalActionRowComponentBuilder>
6271
- | ButtonComponent
6272
- | StringSelectMenuComponent
6273
- | UserSelectMenuComponent
6274
- | RoleSelectMenuComponent
6275
- | MentionableSelectMenuComponent
6276
- | ChannelSelectMenuComponent;
6277
-
6278
6162
  export type CollectedMessageInteraction<Cached extends CacheType = CacheType> = Exclude<
6279
6163
  CollectedInteraction<Cached>,
6280
6164
  ModalSubmitInteraction
@@ -6345,7 +6229,7 @@ export interface BaseMessageOptions {
6345
6229
  | AttachmentPayload
6346
6230
  )[];
6347
6231
  components?: readonly (
6348
- | JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>>
6232
+ | JSONEncodable<APIActionRowComponent<APIActionRowComponentTypes>>
6349
6233
  | ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder>
6350
6234
  | APIActionRowComponent<APIMessageActionRowComponent>
6351
6235
  )[];