@sapphire/discord.js-utilities 7.3.2-next.da31f25c → 7.3.3-next.c73fb3fc
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/CHANGELOG.md +6 -0
- package/dist/cjs/index.d.cts +3 -3
- package/dist/esm/index.d.mts +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@sapphire/discord.js-utilities@7.3.2](https://github.com/sapphiredev/utilities/compare/@sapphire/discord.js-utilities@7.3.1...@sapphire/discord.js-utilities@7.3.2) - (2025-01-05)
|
|
6
|
+
|
|
7
|
+
## 🐛 Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **discord.js:** Update code for latest discord.js and discord-api-types ([15bf4d5](https://github.com/sapphiredev/utilities/commit/15bf4d536ff7cc4f5414431360f937b04c2f7e1a)) ([#852](https://github.com/sapphiredev/utilities/pull/852) by @favna)
|
|
10
|
+
|
|
5
11
|
# [@sapphire/discord.js-utilities@7.3.1](https://github.com/sapphiredev/utilities/compare/@sapphire/discord.js-utilities@7.3.0...@sapphire/discord.js-utilities@7.3.1) - (2024-11-02)
|
|
6
12
|
|
|
7
13
|
## 🏠 Refactor
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from '@sapphire/discord-utilities';
|
|
2
|
-
import { MessageCreateOptions, CategoryChannel, DMChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, Message, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, AutocompleteInteraction, StringSelectMenuInteraction, ButtonInteraction, Interaction, PartialTextBasedChannelFields, EmojiIdentifierResolvable, User, CollectorFilter, MessageReaction, CollectorOptions, GuildEmoji, ReactionEmoji, EmojiResolvable, InteractionButtonComponentData, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, APIMessage, CommandInteraction, InteractionCollector, EmbedBuilder, BaseMessageOptions, WebhookMessageEditOptions, SelectMenuComponentOptionData, MessageComponentInteraction, APIEmbed, JSONEncodable, CollectedInteraction, ModalSubmitInteraction, APIActionRowComponent, APIMessageActionRowComponent, ActionRowData, ActionRowComponentOptions, MessageActionRowComponentBuilder, Guild, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, Collection, Snowflake, EmbedData, EmbedField, ButtonComponentData, ButtonBuilder, PartialGroupDMChannel, PublicThreadChannel, PrivateThreadChannel, VoiceBasedChannel, BaseInteraction, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment } from 'discord.js';
|
|
2
|
+
import { MessageCreateOptions, CategoryChannel, DMChannel, DirectoryChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, Message, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, AutocompleteInteraction, StringSelectMenuInteraction, ButtonInteraction, Interaction, PartialTextBasedChannelFields, EmojiIdentifierResolvable, User, CollectorFilter, MessageReaction, CollectorOptions, GuildEmoji, ReactionEmoji, ApplicationEmoji, EmojiResolvable, InteractionButtonComponentData, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, APIMessage, CommandInteraction, InteractionCollector, EmbedBuilder, BaseMessageOptions, WebhookMessageEditOptions, SelectMenuComponentOptionData, MessageComponentInteraction, APIEmbed, JSONEncodable, CollectedInteraction, ModalSubmitInteraction, APIActionRowComponent, APIMessageActionRowComponent, ActionRowData, ActionRowComponentOptions, MessageActionRowComponentBuilder, Guild, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, Collection, Snowflake, EmbedData, EmbedField, ButtonComponentData, ButtonBuilder, PartialGroupDMChannel, PublicThreadChannel, PrivateThreadChannel, VoiceBasedChannel, BaseInteraction, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment } from 'discord.js';
|
|
3
3
|
import { ArgumentTypes, Awaitable, Ctor, Nullish } from '@sapphire/utilities';
|
|
4
4
|
|
|
5
5
|
type MessageBuilderFileResolvable = NonNullable<MessageCreateOptions['files']>[number];
|
|
@@ -105,7 +105,7 @@ declare class MessageBuilder implements MessageCreateOptions {
|
|
|
105
105
|
/**
|
|
106
106
|
* A union of all the various types of channels that Discord.js has
|
|
107
107
|
*/
|
|
108
|
-
type ChannelTypes = CategoryChannel | DMChannel | PartialDMChannel | NewsChannel | StageChannel | TextChannel | ThreadChannel | VoiceChannel | GuildChannel | Channel;
|
|
108
|
+
type ChannelTypes = CategoryChannel | DMChannel | DirectoryChannel | PartialDMChannel | NewsChannel | StageChannel | TextChannel | ThreadChannel | VoiceChannel | GuildChannel | Channel;
|
|
109
109
|
/**
|
|
110
110
|
* A union of all the channel types that a message can come from
|
|
111
111
|
*/
|
|
@@ -221,7 +221,7 @@ declare abstract class MessagePrompterBaseStrategy {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
interface IMessagePrompterExplicitReturnBase {
|
|
224
|
-
emoji?: GuildEmoji | ReactionEmoji;
|
|
224
|
+
emoji?: GuildEmoji | ReactionEmoji | ApplicationEmoji;
|
|
225
225
|
reaction?: string | EmojiIdentifierResolvable;
|
|
226
226
|
strategy: MessagePrompterBaseStrategy;
|
|
227
227
|
appliedMessage: Message;
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from '@sapphire/discord-utilities';
|
|
2
|
-
import { MessageCreateOptions, CategoryChannel, DMChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, Message, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, AutocompleteInteraction, StringSelectMenuInteraction, ButtonInteraction, Interaction, PartialTextBasedChannelFields, EmojiIdentifierResolvable, User, CollectorFilter, MessageReaction, CollectorOptions, GuildEmoji, ReactionEmoji, EmojiResolvable, InteractionButtonComponentData, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, APIMessage, CommandInteraction, InteractionCollector, EmbedBuilder, BaseMessageOptions, WebhookMessageEditOptions, SelectMenuComponentOptionData, MessageComponentInteraction, APIEmbed, JSONEncodable, CollectedInteraction, ModalSubmitInteraction, APIActionRowComponent, APIMessageActionRowComponent, ActionRowData, ActionRowComponentOptions, MessageActionRowComponentBuilder, Guild, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, Collection, Snowflake, EmbedData, EmbedField, ButtonComponentData, ButtonBuilder, PartialGroupDMChannel, PublicThreadChannel, PrivateThreadChannel, VoiceBasedChannel, BaseInteraction, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment } from 'discord.js';
|
|
2
|
+
import { MessageCreateOptions, CategoryChannel, DMChannel, DirectoryChannel, PartialDMChannel, NewsChannel, StageChannel, TextChannel, ThreadChannel, VoiceChannel, GuildChannel, Channel, Message, ChatInputCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, AutocompleteInteraction, StringSelectMenuInteraction, ButtonInteraction, Interaction, PartialTextBasedChannelFields, EmojiIdentifierResolvable, User, CollectorFilter, MessageReaction, CollectorOptions, GuildEmoji, ReactionEmoji, ApplicationEmoji, EmojiResolvable, InteractionButtonComponentData, LinkButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, APIMessage, CommandInteraction, InteractionCollector, EmbedBuilder, BaseMessageOptions, WebhookMessageEditOptions, SelectMenuComponentOptionData, MessageComponentInteraction, APIEmbed, JSONEncodable, CollectedInteraction, ModalSubmitInteraction, APIActionRowComponent, APIMessageActionRowComponent, ActionRowData, ActionRowComponentOptions, MessageActionRowComponentBuilder, Guild, InteractionReplyOptions, InteractionUpdateOptions, MessageReplyOptions, MessageEditOptions, Collection, Snowflake, EmbedData, EmbedField, ButtonComponentData, ButtonBuilder, PartialGroupDMChannel, PublicThreadChannel, PrivateThreadChannel, VoiceBasedChannel, BaseInteraction, GuildMember, APIGuildMember, APIInteractionGuildMember, APIInteractionDataResolvedGuildMember, Attachment } from 'discord.js';
|
|
3
3
|
import { ArgumentTypes, Awaitable, Ctor, Nullish } from '@sapphire/utilities';
|
|
4
4
|
|
|
5
5
|
type MessageBuilderFileResolvable = NonNullable<MessageCreateOptions['files']>[number];
|
|
@@ -105,7 +105,7 @@ declare class MessageBuilder implements MessageCreateOptions {
|
|
|
105
105
|
/**
|
|
106
106
|
* A union of all the various types of channels that Discord.js has
|
|
107
107
|
*/
|
|
108
|
-
type ChannelTypes = CategoryChannel | DMChannel | PartialDMChannel | NewsChannel | StageChannel | TextChannel | ThreadChannel | VoiceChannel | GuildChannel | Channel;
|
|
108
|
+
type ChannelTypes = CategoryChannel | DMChannel | DirectoryChannel | PartialDMChannel | NewsChannel | StageChannel | TextChannel | ThreadChannel | VoiceChannel | GuildChannel | Channel;
|
|
109
109
|
/**
|
|
110
110
|
* A union of all the channel types that a message can come from
|
|
111
111
|
*/
|
|
@@ -221,7 +221,7 @@ declare abstract class MessagePrompterBaseStrategy {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
interface IMessagePrompterExplicitReturnBase {
|
|
224
|
-
emoji?: GuildEmoji | ReactionEmoji;
|
|
224
|
+
emoji?: GuildEmoji | ReactionEmoji | ApplicationEmoji;
|
|
225
225
|
reaction?: string | EmojiIdentifierResolvable;
|
|
226
226
|
strategy: MessagePrompterBaseStrategy;
|
|
227
227
|
appliedMessage: Message;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/discord.js-utilities",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.3-next.c73fb3fc",
|
|
4
4
|
"description": "Discord.js specific utilities for your JavaScript/TypeScript bots",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@sapphire/discord-utilities": "^3.4.
|
|
64
|
+
"@sapphire/discord-utilities": "^3.4.4",
|
|
65
65
|
"@sapphire/duration": "^1.1.4",
|
|
66
66
|
"@sapphire/utilities": "^3.18.1",
|
|
67
67
|
"tslib": "^2.8.1"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@favware/cliff-jumper": "^5.0.0",
|
|
71
71
|
"@favware/rollup-type-bundler": "^3.3.0",
|
|
72
|
-
"concurrently": "^9.1.
|
|
72
|
+
"concurrently": "^9.1.2",
|
|
73
73
|
"tsup": "^8.3.5",
|
|
74
74
|
"tsx": "^4.19.2",
|
|
75
75
|
"typedoc": "^0.26.11",
|