@sapphire/discord.js-utilities 7.3.3-next.ff2c792d → 7.3.3
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 +12 -0
- package/dist/cjs/index.cjs +8 -8
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +9 -9
- package/dist/esm/index.d.mts +9 -9
- package/dist/esm/index.mjs +10 -10
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.3](https://github.com/sapphiredev/utilities/compare/@sapphire/discord.js-utilities@7.3.2...@sapphire/discord.js-utilities@7.3.3) - (2025-05-07)
|
|
6
|
+
|
|
7
|
+
## 🏠 Refactor
|
|
8
|
+
|
|
9
|
+
- **discord.js-utilities:** Replace ephemeral with message flags ([cfb8940](https://github.com/sapphiredev/utilities/commit/cfb8940c5bbcf8b7df51803c5a770ca78a2098a8)) ([#876](https://github.com/sapphiredev/utilities/pull/876) by @SerenModz21)
|
|
10
|
+
|
|
11
|
+
## 🐛 Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **discord.js-utilities:** Update the action row component type ([3b2a6fa](https://github.com/sapphiredev/utilities/commit/3b2a6faefb4a371678f901e2f973ea64a466e7f5)) ([#888](https://github.com/sapphiredev/utilities/pull/888) by @SerenModz21)
|
|
14
|
+
- **paginatedmessage:** Resolve ts-expect-error by omitting flags from `WebhookMessageEditOptions` ([87bbf48](https://github.com/sapphiredev/utilities/commit/87bbf48fc1b572efe53ec4c3dc64101325c3ff85))
|
|
15
|
+
- **deps:** Update all non-major dependencies ([bc2f01c](https://github.com/sapphiredev/utilities/commit/bc2f01ce7d6932c9a0e02faa7cc081ecbae9640d)) ([#869](https://github.com/sapphiredev/utilities/pull/869) by @renovate[bot])
|
|
16
|
+
|
|
5
17
|
# [@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
18
|
|
|
7
19
|
## 🐛 Bug Fixes
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1507,7 +1507,7 @@ var _PaginatedMessage = class _PaginatedMessage {
|
|
|
1507
1507
|
await safelyReplyToInteraction({
|
|
1508
1508
|
messageOrInteraction,
|
|
1509
1509
|
interactionEditReplyContent: __privateGet(this, _thisMazeWasNotMeantForYouContent),
|
|
1510
|
-
interactionReplyContent: { ...__privateGet(this, _thisMazeWasNotMeantForYouContent),
|
|
1510
|
+
interactionReplyContent: { ...__privateGet(this, _thisMazeWasNotMeantForYouContent), flags: discord_js.MessageFlags.Ephemeral },
|
|
1511
1511
|
componentUpdateContent: __privateGet(this, _thisMazeWasNotMeantForYouContent),
|
|
1512
1512
|
messageMethod: "reply",
|
|
1513
1513
|
messageMethodContent: __privateGet(this, _thisMazeWasNotMeantForYouContent)
|
|
@@ -1752,7 +1752,7 @@ var _PaginatedMessage = class _PaginatedMessage {
|
|
|
1752
1752
|
await safelyReplyToInteraction({
|
|
1753
1753
|
messageOrInteraction: interaction,
|
|
1754
1754
|
interactionEditReplyContent: updateOptions,
|
|
1755
|
-
interactionReplyContent: { ...__privateGet(this, _thisMazeWasNotMeantForYouContent),
|
|
1755
|
+
interactionReplyContent: { ...__privateGet(this, _thisMazeWasNotMeantForYouContent), flags: discord_js.MessageFlags.Ephemeral },
|
|
1756
1756
|
componentUpdateContent: updateOptions
|
|
1757
1757
|
});
|
|
1758
1758
|
}
|
|
@@ -1764,7 +1764,7 @@ var _PaginatedMessage = class _PaginatedMessage {
|
|
|
1764
1764
|
this.resolvePaginatedMessageInternationalizationContext(interaction, targetUser)
|
|
1765
1765
|
);
|
|
1766
1766
|
await interaction.reply(
|
|
1767
|
-
utilities.isObject(interactionReplyOptions) ? interactionReplyOptions : { content: interactionReplyOptions,
|
|
1767
|
+
utilities.isObject(interactionReplyOptions) ? interactionReplyOptions : { content: interactionReplyOptions, flags: discord_js.MessageFlags.Ephemeral, allowedMentions: { users: [], roles: [] } }
|
|
1768
1768
|
);
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
@@ -1781,7 +1781,7 @@ var _PaginatedMessage = class _PaginatedMessage {
|
|
|
1781
1781
|
void safelyReplyToInteraction({
|
|
1782
1782
|
messageOrInteraction: this.response,
|
|
1783
1783
|
interactionEditReplyContent: { components: [] },
|
|
1784
|
-
interactionReplyContent: { ...__privateGet(this, _thisMazeWasNotMeantForYouContent),
|
|
1784
|
+
interactionReplyContent: { ...__privateGet(this, _thisMazeWasNotMeantForYouContent), flags: discord_js.MessageFlags.Ephemeral },
|
|
1785
1785
|
componentUpdateContent: { components: [] },
|
|
1786
1786
|
messageMethod: "edit",
|
|
1787
1787
|
messageMethodContent: { components: [] }
|
|
@@ -2083,7 +2083,7 @@ __publicField(_PaginatedMessage, "selectMenuOptions", /* @__PURE__ */ __name((pa
|
|
|
2083
2083
|
* When modifying this it is recommended that the message is set to be ephemeral so only the user that is pressing the buttons can see them.
|
|
2084
2084
|
* Furthermore, we also recommend setting `allowedMentions: { users: [], roles: [] }`, so you don't have to worry about accidentally pinging anyone.
|
|
2085
2085
|
*
|
|
2086
|
-
* When setting just a string, we will add `{
|
|
2086
|
+
* When setting just a string, we will add `{ flags: MessageFlags.Ephemeral, allowedMentions: { users: [], roles: [] } }` for you.
|
|
2087
2087
|
*
|
|
2088
2088
|
* @param targetUser The {@link User} this {@link PaginatedMessage} was intended for.
|
|
2089
2089
|
* @param interactionUser The {@link User} that actually clicked the button.
|
|
@@ -2093,7 +2093,7 @@ __publicField(_PaginatedMessage, "selectMenuOptions", /* @__PURE__ */ __name((pa
|
|
|
2093
2093
|
*
|
|
2094
2094
|
* {
|
|
2095
2095
|
* content: `Please stop interacting with the components on this message. They are only for ${userMention(targetUser.id)}.`,
|
|
2096
|
-
*
|
|
2096
|
+
* flags: MessageFlags.Ephemeral,
|
|
2097
2097
|
* allowedMentions: { users: [], roles: [] }
|
|
2098
2098
|
* }
|
|
2099
2099
|
* ```
|
|
@@ -2118,14 +2118,14 @@ __publicField(_PaginatedMessage, "selectMenuOptions", /* @__PURE__ */ __name((pa
|
|
|
2118
2118
|
* content: `These buttons are only for ${userMention(
|
|
2119
2119
|
* targetUser.id
|
|
2120
2120
|
* )}. Press them as much as you want, but I won't do anything with your clicks.`,
|
|
2121
|
-
*
|
|
2121
|
+
* flags: MessageFlags.Ephemeral,
|
|
2122
2122
|
* allowedMentions: { users: [], roles: [] }
|
|
2123
2123
|
* });
|
|
2124
2124
|
* ```
|
|
2125
2125
|
*/
|
|
2126
2126
|
__publicField(_PaginatedMessage, "wrongUserInteractionReply", /* @__PURE__ */ __name((targetUser) => ({
|
|
2127
2127
|
content: `Please stop interacting with the components on this message. They are only for ${discord_js.userMention(targetUser.id)}.`,
|
|
2128
|
-
|
|
2128
|
+
flags: discord_js.MessageFlags.Ephemeral,
|
|
2129
2129
|
allowedMentions: { users: [], roles: [] }
|
|
2130
2130
|
}), "wrongUserInteractionReply"));
|
|
2131
2131
|
var PaginatedMessage = _PaginatedMessage;
|