@sapphire/discord.js-utilities 7.3.3-next.2acce636 → 7.3.3-next.3b2a6fae

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.
@@ -1,5 +1,5 @@
1
1
  export * from '@sapphire/discord-utilities';
2
- import { Interaction, AutocompleteInteraction, CategoryChannel, DMChannel, DirectoryChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, JSONEncodable, APIEmbed, Message, EmojiIdentifierResolvable, GuildEmoji, ReactionEmoji, ApplicationEmoji, PartialTextBasedChannelFields, User, CollectorFilter, MessageReaction, CollectorOptions, InteractionButtonComponentData, CollectedInteraction, ModalSubmitInteraction, APIMessage, CommandInteraction, ButtonInteraction, InteractionCollector, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, Guild, SelectMenuComponentOptionData, MessageComponentInteraction, BaseMessageOptions, WebhookMessageEditOptions, EmbedBuilder, MessageCreateOptions, MessageActionRowComponentBuilder, Collection, Snowflake, EmojiResolvable, StringSelectMenuInteraction, EmbedData, APIActionRowComponent, APIMessageActionRowComponent, ActionRowData, ActionRowComponentOptions, EmbedField, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, VoiceBasedChannel, BaseInteraction, ButtonBuilder, PartialGroupDMChannel, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment, ButtonComponentData, PublicThreadChannel, PrivateThreadChannel } from 'discord.js';
2
+ import { Interaction, AutocompleteInteraction, CategoryChannel, DMChannel, DirectoryChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, JSONEncodable, APIEmbed, Message, EmojiIdentifierResolvable, GuildEmoji, ReactionEmoji, ApplicationEmoji, PartialTextBasedChannelFields, User, CollectorFilter, MessageReaction, CollectorOptions, InteractionButtonComponentData, CollectedInteraction, ModalSubmitInteraction, APIMessage, CommandInteraction, ButtonInteraction, InteractionCollector, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, Guild, SelectMenuComponentOptionData, MessageComponentInteraction, BaseMessageOptions, WebhookMessageEditOptions, EmbedBuilder, MessageCreateOptions, MessageActionRowComponentBuilder, Collection, Snowflake, EmojiResolvable, StringSelectMenuInteraction, EmbedData, APIActionRowComponent, APIComponentInMessageActionRow, ActionRowData, ActionRowComponentOptions, EmbedField, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, VoiceBasedChannel, BaseInteraction, ButtonBuilder, PartialGroupDMChannel, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment, ButtonComponentData, PublicThreadChannel, PrivateThreadChannel } from 'discord.js';
3
3
  import { ArgumentTypes, Awaitable, Ctor, Nullish } from '@sapphire/utilities';
4
4
 
5
5
  type MessageBuilderFileResolvable = NonNullable<MessageCreateOptions['files']>[number];
@@ -677,11 +677,11 @@ type PaginatedMessageInteractionUnion = Exclude<CollectedInteraction, ModalSubmi
677
677
  /**
678
678
  * Represents a union type for components in a paginated message.
679
679
  * It can be one of the following types:
680
- * - `JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>>`
680
+ * - `JSONEncodable<APIActionRowComponent<APIComponentInMessageActionRow>>`
681
681
  * - `ActionRowData<ActionRowComponentOptions | MessageActionRowComponentBuilder>`
682
- * - `APIActionRowComponent<APIMessageActionRowComponent>`
682
+ * - `APIActionRowComponent<APIComponentInMessageActionRow>`
683
683
  */
684
- type PaginatedMessageComponentUnion = JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>> | ActionRowData<ActionRowComponentOptions | MessageActionRowComponentBuilder> | APIActionRowComponent<APIMessageActionRowComponent>;
684
+ type PaginatedMessageComponentUnion = JSONEncodable<APIActionRowComponent<APIComponentInMessageActionRow>> | ActionRowData<ActionRowComponentOptions | MessageActionRowComponentBuilder> | APIActionRowComponent<APIComponentInMessageActionRow>;
685
685
  /**
686
686
  * @internal This is a duplicate of the same interface in `@sapphire/plugin-i18next`
687
687
  * Duplicated here for the type of the parameters in the functions
@@ -2090,7 +2090,7 @@ declare function isActionChannelMenu(action: PaginatedMessageAction): action is
2090
2090
  /**
2091
2091
  * Creates partitioned message rows based on the provided components.
2092
2092
  * @param components The array of MessageActionRowComponentBuilder objects.
2093
- * @returns An array of `APIActionRowComponent<APIMessageActionRowComponent>` objects.
2093
+ * @returns An array of `APIActionRowComponent<APIComponentInMessageActionRow>` objects.
2094
2094
  */
2095
2095
  declare function createPartitionedMessageRow(components: MessageActionRowComponentBuilder[]): PaginatedMessageComponentUnion[];
2096
2096
  /**
@@ -1,5 +1,5 @@
1
1
  export * from '@sapphire/discord-utilities';
2
- import { Interaction, AutocompleteInteraction, CategoryChannel, DMChannel, DirectoryChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, JSONEncodable, APIEmbed, Message, EmojiIdentifierResolvable, GuildEmoji, ReactionEmoji, ApplicationEmoji, PartialTextBasedChannelFields, User, CollectorFilter, MessageReaction, CollectorOptions, InteractionButtonComponentData, CollectedInteraction, ModalSubmitInteraction, APIMessage, CommandInteraction, ButtonInteraction, InteractionCollector, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, Guild, SelectMenuComponentOptionData, MessageComponentInteraction, BaseMessageOptions, WebhookMessageEditOptions, EmbedBuilder, MessageCreateOptions, MessageActionRowComponentBuilder, Collection, Snowflake, EmojiResolvable, StringSelectMenuInteraction, EmbedData, APIActionRowComponent, APIMessageActionRowComponent, ActionRowData, ActionRowComponentOptions, EmbedField, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, VoiceBasedChannel, BaseInteraction, ButtonBuilder, PartialGroupDMChannel, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment, ButtonComponentData, PublicThreadChannel, PrivateThreadChannel } from 'discord.js';
2
+ import { Interaction, AutocompleteInteraction, CategoryChannel, DMChannel, DirectoryChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, JSONEncodable, APIEmbed, Message, EmojiIdentifierResolvable, GuildEmoji, ReactionEmoji, ApplicationEmoji, PartialTextBasedChannelFields, User, CollectorFilter, MessageReaction, CollectorOptions, InteractionButtonComponentData, CollectedInteraction, ModalSubmitInteraction, APIMessage, CommandInteraction, ButtonInteraction, InteractionCollector, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, Guild, SelectMenuComponentOptionData, MessageComponentInteraction, BaseMessageOptions, WebhookMessageEditOptions, EmbedBuilder, MessageCreateOptions, MessageActionRowComponentBuilder, Collection, Snowflake, EmojiResolvable, StringSelectMenuInteraction, EmbedData, APIActionRowComponent, APIComponentInMessageActionRow, ActionRowData, ActionRowComponentOptions, EmbedField, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, VoiceBasedChannel, BaseInteraction, ButtonBuilder, PartialGroupDMChannel, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment, ButtonComponentData, PublicThreadChannel, PrivateThreadChannel } from 'discord.js';
3
3
  import { ArgumentTypes, Awaitable, Ctor, Nullish } from '@sapphire/utilities';
4
4
 
5
5
  type MessageBuilderFileResolvable = NonNullable<MessageCreateOptions['files']>[number];
@@ -677,11 +677,11 @@ type PaginatedMessageInteractionUnion = Exclude<CollectedInteraction, ModalSubmi
677
677
  /**
678
678
  * Represents a union type for components in a paginated message.
679
679
  * It can be one of the following types:
680
- * - `JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>>`
680
+ * - `JSONEncodable<APIActionRowComponent<APIComponentInMessageActionRow>>`
681
681
  * - `ActionRowData<ActionRowComponentOptions | MessageActionRowComponentBuilder>`
682
- * - `APIActionRowComponent<APIMessageActionRowComponent>`
682
+ * - `APIActionRowComponent<APIComponentInMessageActionRow>`
683
683
  */
684
- type PaginatedMessageComponentUnion = JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>> | ActionRowData<ActionRowComponentOptions | MessageActionRowComponentBuilder> | APIActionRowComponent<APIMessageActionRowComponent>;
684
+ type PaginatedMessageComponentUnion = JSONEncodable<APIActionRowComponent<APIComponentInMessageActionRow>> | ActionRowData<ActionRowComponentOptions | MessageActionRowComponentBuilder> | APIActionRowComponent<APIComponentInMessageActionRow>;
685
685
  /**
686
686
  * @internal This is a duplicate of the same interface in `@sapphire/plugin-i18next`
687
687
  * Duplicated here for the type of the parameters in the functions
@@ -2090,7 +2090,7 @@ declare function isActionChannelMenu(action: PaginatedMessageAction): action is
2090
2090
  /**
2091
2091
  * Creates partitioned message rows based on the provided components.
2092
2092
  * @param components The array of MessageActionRowComponentBuilder objects.
2093
- * @returns An array of `APIActionRowComponent<APIMessageActionRowComponent>` objects.
2093
+ * @returns An array of `APIActionRowComponent<APIComponentInMessageActionRow>` objects.
2094
2094
  */
2095
2095
  declare function createPartitionedMessageRow(components: MessageActionRowComponentBuilder[]): PaginatedMessageComponentUnion[];
2096
2096
  /**