@theholocron/holocron-plugin-discord 5.0.0-alpha.198 → 5.0.0-alpha.199
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/dist/index.mjs +7 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -735,7 +735,13 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
735
735
|
updated.push(field);
|
|
736
736
|
}
|
|
737
737
|
if (updated.length === 0) return { updated };
|
|
738
|
-
|
|
738
|
+
let after;
|
|
739
|
+
try {
|
|
740
|
+
after = await bot.application.modify(body);
|
|
741
|
+
} catch (err) {
|
|
742
|
+
if (err instanceof ProviderApiError && String(err.details).includes("APPLICATION_INSTALL_NEEDS_PUBLIC_INTEGRATION")) throw new Error("Discord only allows an install link on a public application, and this one is private (Public Bot is off). Remove `install` from the layout -- a private bot is invited with a link you build, which `setup` prints when a permission is missing -- or turn on Public Bot in the developer portal, which lets anyone add the bot", { cause: err });
|
|
743
|
+
throw err;
|
|
744
|
+
}
|
|
739
745
|
const stuck = updated.filter((name) => {
|
|
740
746
|
if (name === "description") return (after.description ?? "") !== app.description;
|
|
741
747
|
if (name === "tags") return set(after.tags ?? []) !== set(app.tags);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-discord",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.199",
|
|
4
4
|
"description": "Holocron plugin for Discord. Implements the notifications capability via Discord incoming webhooks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"discord",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"tsx": "4.23.15",
|
|
49
49
|
"typescript": "^5.9.3",
|
|
50
50
|
"vitest": "^4.1.11",
|
|
51
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
51
|
+
"@theholocron/cli": "5.0.0-alpha.199"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@theholocron/discord-client": "^1.45.0",
|
|
55
55
|
"@theholocron/misc-utils": "^1.16.0",
|
|
56
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
56
|
+
"@theholocron/cli": "5.0.0-alpha.199"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=22"
|