@theholocron/holocron-plugin-discord 5.0.0-alpha.194 → 5.0.0-alpha.196
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.d.mts +19 -1
- package/dist/index.mjs +220 -13
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, EnsureWebhookResult, EnsuredResource, Notifications, NotificationsAccess, NotificationsLayout, NotificationsServerLayout, ResolveTokenInput, ServerInspection, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, EnsureWebhookResult, EnsuredResource, Notifications, NotificationsAccess, NotificationsLayout, NotificationsOnboardingLayout, NotificationsServerLayout, NotificationsWelcomeLayout, ResolveTokenInput, ServerInspection, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
2
2
|
import { DiscordBotClient, DiscordClient, DiscordClientOptions, DiscordWebhookInfo, createDiscordClient, parseWebhookUrl } from "@theholocron/discord-client";
|
|
3
3
|
//#region src/auth.d.ts
|
|
4
4
|
declare const resolveToken: (input?: ResolveTokenInput) => string;
|
|
@@ -56,6 +56,10 @@ declare class DiscordNotifications implements Notifications {
|
|
|
56
56
|
private inviteUrl;
|
|
57
57
|
/** Changing server settings needs Manage Server; an empty edit proves the bot has it without changing anything. */
|
|
58
58
|
preflight(layout: NotificationsLayout): Promise<void>;
|
|
59
|
+
/** The one role with this name, or an error saying why not: two would mean granting something to the wrong members. */
|
|
60
|
+
private static pickRole;
|
|
61
|
+
/** The one text or announcement channel with this name, or an error saying why not. */
|
|
62
|
+
private static pickChannelId;
|
|
59
63
|
/** True for a 403 that is about permissions, not about the bot being unable to see the server at all. */
|
|
60
64
|
private static missingPermissions;
|
|
61
65
|
/** An invite link, or nothing when building it needs a request that fails: the advice must not depend on one. */
|
|
@@ -67,6 +71,20 @@ declare class DiscordNotifications implements Notifications {
|
|
|
67
71
|
ensureServer(settings: NotificationsServerLayout): Promise<{
|
|
68
72
|
updated: string[];
|
|
69
73
|
}>;
|
|
74
|
+
/** A 403 on the welcome screen or onboarding becomes the likely reason; anything else is passed on. */
|
|
75
|
+
private static communityFeatureHint;
|
|
76
|
+
/** The numeric code Discord puts in the JSON body of an error, or undefined when the body is not that. */
|
|
77
|
+
private static codeOf;
|
|
78
|
+
/** The welcome screen; a server that never had one answers 404 (10069), which is an empty screen. */
|
|
79
|
+
private welcomeScreenOf;
|
|
80
|
+
ensureWelcome(welcome: NotificationsWelcomeLayout): Promise<{
|
|
81
|
+
updated: string[];
|
|
82
|
+
}>;
|
|
83
|
+
/** An onboarding prompt reduced to what the layout can state, so the server's and the layout's can be compared. */
|
|
84
|
+
private static onboardingKey;
|
|
85
|
+
ensureOnboarding(onboarding: NotificationsOnboardingLayout): Promise<{
|
|
86
|
+
updated: string[];
|
|
87
|
+
}>;
|
|
70
88
|
validateLayout(layout: NotificationsLayout): string | undefined;
|
|
71
89
|
private botUser?;
|
|
72
90
|
private botId;
|
package/dist/index.mjs
CHANGED
|
@@ -161,6 +161,9 @@ function keepThreadBits(desired, existing) {
|
|
|
161
161
|
}
|
|
162
162
|
return merged;
|
|
163
163
|
}
|
|
164
|
+
let idCounter = 0;
|
|
165
|
+
/** A snowflake-shaped id for a new onboarding question or answer, which Discord asks the sender to make. */
|
|
166
|
+
const newId = () => String((BigInt(Date.now()) - 1420070400000n << 22n) + BigInt(idCounter++ % 4096));
|
|
164
167
|
var DiscordNotifications = class DiscordNotifications {
|
|
165
168
|
client;
|
|
166
169
|
opts;
|
|
@@ -244,11 +247,12 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
244
247
|
} catch (err) {
|
|
245
248
|
rolesError = reason(err);
|
|
246
249
|
}
|
|
250
|
+
const nameOfChannel = (id) => channels.find((c) => c.id === id)?.name ?? id;
|
|
251
|
+
const channelName = (id) => id ? nameOfChannel(id) : void 0;
|
|
247
252
|
let server;
|
|
248
253
|
let serverError;
|
|
249
254
|
if (layout.server) try {
|
|
250
255
|
const guild = await bot.guilds.get(this.guild());
|
|
251
|
-
const channelName = (id) => id ? channels.find((c) => c.id === id)?.name ?? id : void 0;
|
|
252
256
|
const verification = nameOf(VERIFICATION, guild.verification_level);
|
|
253
257
|
const defaultNotifications = nameOf(NOTIFICATIONS, guild.default_message_notifications);
|
|
254
258
|
const contentFilter = nameOf(FILTER, guild.explicit_content_filter);
|
|
@@ -269,6 +273,47 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
269
273
|
} catch (err) {
|
|
270
274
|
serverError = reason(err);
|
|
271
275
|
}
|
|
276
|
+
let welcome;
|
|
277
|
+
let welcomeError;
|
|
278
|
+
if (layout.welcome) try {
|
|
279
|
+
const guild = await bot.guilds.get(this.guild());
|
|
280
|
+
const screen = await this.welcomeScreenOf();
|
|
281
|
+
welcome = {
|
|
282
|
+
enabled: (guild.features ?? []).includes("WELCOME_SCREEN_ENABLED"),
|
|
283
|
+
description: screen.description ?? "",
|
|
284
|
+
channels: (screen.welcome_channels ?? []).map((c) => ({
|
|
285
|
+
channel: nameOfChannel(c.channel_id),
|
|
286
|
+
description: c.description,
|
|
287
|
+
...c.emoji_name ? { emoji: c.emoji_name } : {}
|
|
288
|
+
}))
|
|
289
|
+
};
|
|
290
|
+
} catch (err) {
|
|
291
|
+
welcomeError = reason(err);
|
|
292
|
+
}
|
|
293
|
+
let onboarding;
|
|
294
|
+
let onboardingError;
|
|
295
|
+
if (layout.onboarding) try {
|
|
296
|
+
const found = await bot.guilds.onboarding(this.guild());
|
|
297
|
+
const roleOf = (id) => roles.find((r) => r.id === id)?.name ?? id;
|
|
298
|
+
onboarding = {
|
|
299
|
+
enabled: found.enabled,
|
|
300
|
+
defaultChannels: found.default_channel_ids.map(nameOfChannel),
|
|
301
|
+
prompts: found.prompts.map((p) => ({
|
|
302
|
+
title: p.title,
|
|
303
|
+
singleSelect: p.single_select,
|
|
304
|
+
required: p.required,
|
|
305
|
+
options: p.options.map((o) => ({
|
|
306
|
+
title: o.title,
|
|
307
|
+
...o.description ? { description: o.description } : {},
|
|
308
|
+
...o.emoji?.name ?? o.emoji_name ? { emoji: o.emoji?.name ?? o.emoji_name } : {},
|
|
309
|
+
channels: (o.channel_ids ?? []).map(nameOfChannel),
|
|
310
|
+
roles: (o.role_ids ?? []).map(roleOf)
|
|
311
|
+
}))
|
|
312
|
+
}))
|
|
313
|
+
};
|
|
314
|
+
} catch (err) {
|
|
315
|
+
onboardingError = reason(err);
|
|
316
|
+
}
|
|
272
317
|
const roleName = (id) => roles.find((r) => r.id === id)?.name ?? id;
|
|
273
318
|
found.forEach((entry, i) => {
|
|
274
319
|
entry.access = this.accessOf(text[i].permission_overwrites, roleName);
|
|
@@ -280,6 +325,10 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
280
325
|
categoryAccess,
|
|
281
326
|
...server ? { server } : {},
|
|
282
327
|
...serverError ? { serverError } : {},
|
|
328
|
+
...welcome ? { welcome } : {},
|
|
329
|
+
...welcomeError ? { welcomeError } : {},
|
|
330
|
+
...onboarding ? { onboarding } : {},
|
|
331
|
+
...onboardingError ? { onboardingError } : {},
|
|
283
332
|
channels: found,
|
|
284
333
|
roles,
|
|
285
334
|
...rolesError ? { rolesError } : {}
|
|
@@ -303,6 +352,20 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
303
352
|
throw await this.manageServerHint(err);
|
|
304
353
|
}
|
|
305
354
|
}
|
|
355
|
+
/** The one role with this name, or an error saying why not: two would mean granting something to the wrong members. */
|
|
356
|
+
static pickRole(roles, name, who) {
|
|
357
|
+
const found = roles.filter((r) => DiscordNotifications.same(r.name, name));
|
|
358
|
+
if (found.length === 0) throw new Error(`${who} names the role \`${name}\`, which does not exist on the server yet`);
|
|
359
|
+
if (found.length > 1) throw new Error(`${who} names the role \`${name}\`, but ${found.length} roles have that name (ids ${found.map((r) => r.id).join(", ")}) -- delete or rename the extras`);
|
|
360
|
+
return found[0].id;
|
|
361
|
+
}
|
|
362
|
+
/** The one text or announcement channel with this name, or an error saying why not. */
|
|
363
|
+
static pickChannelId(channels, name, who) {
|
|
364
|
+
const named = channels.filter((c) => (c.type === ChannelType.Text || c.type === ChannelType.Announcement) && DiscordNotifications.same(c.name, name));
|
|
365
|
+
if (named.length === 0) throw new Error(`${who} name the channel \`${name}\`, which does not exist on the server yet`);
|
|
366
|
+
if (named.length > 1) throw new Error(`${who} name the channel \`${name}\`, but ${named.length} channels have that name (ids ${named.map((c) => c.id).join(", ")}) -- rename one`);
|
|
367
|
+
return named[0].id;
|
|
368
|
+
}
|
|
306
369
|
/** True for a 403 that is about permissions, not about the bot being unable to see the server at all. */
|
|
307
370
|
static missingPermissions(err) {
|
|
308
371
|
return err instanceof ProviderApiError && err.status === 403 && !/Missing Access|\b50001\b/.test(String(err.details));
|
|
@@ -333,12 +396,7 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
333
396
|
const bot = this.bot();
|
|
334
397
|
const guild = await bot.guilds.get(this.guild());
|
|
335
398
|
const channels = await this.channelList();
|
|
336
|
-
const idOf = (name) =>
|
|
337
|
-
const named = channels.filter((c) => (c.type === ChannelType.Text || c.type === ChannelType.Announcement) && DiscordNotifications.same(c.name, name));
|
|
338
|
-
if (named.length === 0) throw new Error(`server settings name the channel \`${name}\`, which does not exist on the server yet`);
|
|
339
|
-
if (named.length > 1) throw new Error(`server settings name the channel \`${name}\`, but ${named.length} channels have that name (ids ${named.map((c) => c.id).join(", ")}) -- rename one`);
|
|
340
|
-
return named[0].id;
|
|
341
|
-
};
|
|
399
|
+
const idOf = (name) => DiscordNotifications.pickChannelId(channels, name, "server settings");
|
|
342
400
|
const patch = {};
|
|
343
401
|
const updated = [];
|
|
344
402
|
const set = (label, key, want, have) => {
|
|
@@ -417,7 +475,161 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
417
475
|
}
|
|
418
476
|
return { updated };
|
|
419
477
|
}
|
|
478
|
+
/** A 403 on the welcome screen or onboarding becomes the likely reason; anything else is passed on. */
|
|
479
|
+
static communityFeatureHint(err, what) {
|
|
480
|
+
if (!(err instanceof ProviderApiError && err.status === 403)) return err;
|
|
481
|
+
return new Error(`the bot is not allowed to change ${what} (Discord said: ${String(err.details).slice(0, 120)}). It needs Manage Server, and the server needs community features on`, { cause: err });
|
|
482
|
+
}
|
|
483
|
+
/** The numeric code Discord puts in the JSON body of an error, or undefined when the body is not that. */
|
|
484
|
+
static codeOf(err) {
|
|
485
|
+
try {
|
|
486
|
+
return JSON.parse(String(err.details)).code;
|
|
487
|
+
} catch {
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/** The welcome screen; a server that never had one answers 404 (10069), which is an empty screen. */
|
|
492
|
+
async welcomeScreenOf() {
|
|
493
|
+
try {
|
|
494
|
+
return await this.bot().guilds.welcomeScreen(this.guild());
|
|
495
|
+
} catch (err) {
|
|
496
|
+
if (err instanceof ProviderApiError && err.status === 404 && DiscordNotifications.codeOf(err) === 10069) return {
|
|
497
|
+
description: null,
|
|
498
|
+
welcome_channels: []
|
|
499
|
+
};
|
|
500
|
+
throw err;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
async ensureWelcome(welcome) {
|
|
504
|
+
const bot = this.bot();
|
|
505
|
+
const channels = await this.channelList();
|
|
506
|
+
const idOf = (name) => DiscordNotifications.pickChannelId(channels, name, "the welcome screen");
|
|
507
|
+
const wanted = {
|
|
508
|
+
enabled: welcome.enabled ?? true,
|
|
509
|
+
description: welcome.description,
|
|
510
|
+
welcome_channels: welcome.channels.map((c) => ({
|
|
511
|
+
channel_id: idOf(c.channel),
|
|
512
|
+
description: c.description,
|
|
513
|
+
emoji_name: c.emoji ?? null,
|
|
514
|
+
emoji_id: null
|
|
515
|
+
}))
|
|
516
|
+
};
|
|
517
|
+
const normalise = (list) => JSON.stringify(list.map((c) => [
|
|
518
|
+
c.channel_id,
|
|
519
|
+
c.description,
|
|
520
|
+
c.emoji_name ?? null,
|
|
521
|
+
c.emoji_id ?? null
|
|
522
|
+
]));
|
|
523
|
+
let guild;
|
|
524
|
+
let screen;
|
|
525
|
+
try {
|
|
526
|
+
guild = await bot.guilds.get(this.guild());
|
|
527
|
+
screen = await this.welcomeScreenOf();
|
|
528
|
+
} catch (err) {
|
|
529
|
+
throw DiscordNotifications.communityFeatureHint(err, "the welcome screen");
|
|
530
|
+
}
|
|
531
|
+
const updated = [];
|
|
532
|
+
if ((guild.features ?? []).includes("WELCOME_SCREEN_ENABLED") !== wanted.enabled) updated.push("enabled");
|
|
533
|
+
if ((screen.description ?? "") !== wanted.description) updated.push("description");
|
|
534
|
+
if (normalise(screen.welcome_channels ?? []) !== normalise(wanted.welcome_channels)) updated.push("channels");
|
|
535
|
+
if (updated.length === 0) return { updated };
|
|
536
|
+
let after;
|
|
537
|
+
try {
|
|
538
|
+
after = await bot.guilds.modifyWelcomeScreen(this.guild(), wanted);
|
|
539
|
+
} catch (err) {
|
|
540
|
+
throw DiscordNotifications.communityFeatureHint(err, "the welcome screen");
|
|
541
|
+
}
|
|
542
|
+
if ((after.description ?? "") !== wanted.description || normalise(after.welcome_channels ?? []) !== normalise(wanted.welcome_channels)) throw new Error("sent the welcome screen but it came back different -- Discord may have refused a part of it");
|
|
543
|
+
if (((await bot.guilds.get(this.guild())).features ?? []).includes("WELCOME_SCREEN_ENABLED") !== wanted.enabled) throw new Error(`sent the welcome screen but it is still ${wanted.enabled ? "off" : "on"} -- Discord may have refused the switch`);
|
|
544
|
+
return { updated };
|
|
545
|
+
}
|
|
546
|
+
/** An onboarding prompt reduced to what the layout can state, so the server's and the layout's can be compared. */
|
|
547
|
+
static onboardingKey(prompts) {
|
|
548
|
+
return JSON.stringify(prompts.map((p) => [
|
|
549
|
+
p.type,
|
|
550
|
+
p.in_onboarding,
|
|
551
|
+
p.title,
|
|
552
|
+
p.single_select,
|
|
553
|
+
p.required,
|
|
554
|
+
p.options.map((o) => [
|
|
555
|
+
o.title,
|
|
556
|
+
o.description ?? "",
|
|
557
|
+
[...o.channel_ids ?? []].sort(),
|
|
558
|
+
[...o.role_ids ?? []].sort(),
|
|
559
|
+
o.emoji?.name ?? o.emoji_name ?? null
|
|
560
|
+
])
|
|
561
|
+
]));
|
|
562
|
+
}
|
|
563
|
+
async ensureOnboarding(onboarding) {
|
|
564
|
+
const bot = this.bot();
|
|
565
|
+
const channels = await this.channelList();
|
|
566
|
+
const channelId = (name) => DiscordNotifications.pickChannelId(channels, name, "onboarding");
|
|
567
|
+
const roles = (onboarding.prompts ?? []).some((p) => p.options.some((o) => (o.roles ?? []).length > 0)) ? await this.roleList() : [];
|
|
568
|
+
const roleId = (name) => DiscordNotifications.pickRole(roles, name, "onboarding");
|
|
569
|
+
let current;
|
|
570
|
+
try {
|
|
571
|
+
current = await bot.guilds.onboarding(this.guild());
|
|
572
|
+
} catch (err) {
|
|
573
|
+
throw DiscordNotifications.communityFeatureHint(err, "onboarding");
|
|
574
|
+
}
|
|
575
|
+
const usedIds = /* @__PURE__ */ new Set();
|
|
576
|
+
const prompts = onboarding.prompts === void 0 ? current.prompts : onboarding.prompts.map((p) => {
|
|
577
|
+
const had = current.prompts.find((c) => c.title === p.title && !usedIds.has(c.id));
|
|
578
|
+
if (had) usedIds.add(had.id);
|
|
579
|
+
const hadOptions = /* @__PURE__ */ new Set();
|
|
580
|
+
return {
|
|
581
|
+
id: had?.id ?? newId(),
|
|
582
|
+
type: 0,
|
|
583
|
+
title: p.title,
|
|
584
|
+
single_select: p.singleSelect ?? false,
|
|
585
|
+
required: p.required ?? false,
|
|
586
|
+
in_onboarding: true,
|
|
587
|
+
options: p.options.map((o) => ({
|
|
588
|
+
id: (() => {
|
|
589
|
+
const old = had?.options.find((c) => c.title === o.title && !hadOptions.has(c.id));
|
|
590
|
+
if (old) hadOptions.add(old.id);
|
|
591
|
+
return old?.id ?? newId();
|
|
592
|
+
})(),
|
|
593
|
+
title: o.title,
|
|
594
|
+
description: o.description ?? null,
|
|
595
|
+
channel_ids: (o.channels ?? []).map(channelId),
|
|
596
|
+
role_ids: (o.roles ?? []).map(roleId),
|
|
597
|
+
emoji_name: o.emoji ?? null
|
|
598
|
+
}))
|
|
599
|
+
};
|
|
600
|
+
});
|
|
601
|
+
const defaultChannels = onboarding.defaultChannels === void 0 ? current.default_channel_ids : onboarding.defaultChannels.map(channelId);
|
|
602
|
+
const enabled = onboarding.enabled ?? current.enabled;
|
|
603
|
+
const updated = [];
|
|
604
|
+
if (enabled !== current.enabled) updated.push("enabled");
|
|
605
|
+
if (JSON.stringify([...defaultChannels].sort()) !== JSON.stringify([...current.default_channel_ids].sort())) updated.push("defaultChannels");
|
|
606
|
+
if (DiscordNotifications.onboardingKey(prompts) !== DiscordNotifications.onboardingKey(current.prompts)) updated.push("prompts");
|
|
607
|
+
if (updated.length === 0) return { updated };
|
|
608
|
+
const body = {
|
|
609
|
+
prompts,
|
|
610
|
+
default_channel_ids: defaultChannels,
|
|
611
|
+
enabled,
|
|
612
|
+
mode: current.mode ?? 0
|
|
613
|
+
};
|
|
614
|
+
let after;
|
|
615
|
+
try {
|
|
616
|
+
after = await bot.guilds.modifyOnboarding(this.guild(), body);
|
|
617
|
+
} catch (err) {
|
|
618
|
+
throw DiscordNotifications.communityFeatureHint(err, "onboarding");
|
|
619
|
+
}
|
|
620
|
+
if (after.enabled !== enabled || JSON.stringify([...after.default_channel_ids].sort()) !== JSON.stringify([...defaultChannels].sort()) || DiscordNotifications.onboardingKey(after.prompts) !== DiscordNotifications.onboardingKey(prompts)) throw new Error("sent onboarding but it came back different -- Discord may have refused a part of it");
|
|
621
|
+
return { updated };
|
|
622
|
+
}
|
|
420
623
|
validateLayout(layout) {
|
|
624
|
+
const questions = layout.onboarding?.prompts?.length ?? 0;
|
|
625
|
+
if (questions > 5) return `onboarding: ${questions} questions; Discord allows up to 5`;
|
|
626
|
+
const welcome = layout.welcome;
|
|
627
|
+
if (welcome) {
|
|
628
|
+
if (welcome.description.length > 140) return `welcome: \`description\` is ${welcome.description.length} characters; Discord allows up to 140`;
|
|
629
|
+
if (welcome.channels.length > 5) return `welcome: ${welcome.channels.length} channels; Discord allows up to 5`;
|
|
630
|
+
const long = welcome.channels.find((c) => c.description.length > 50);
|
|
631
|
+
if (long) return `welcome: the description of \`${long.channel}\` is ${long.description.length} characters; Discord allows up to 50`;
|
|
632
|
+
}
|
|
421
633
|
const server = layout.server;
|
|
422
634
|
for (const [field, map] of [
|
|
423
635
|
["verification", VERIFICATION],
|
|
@@ -455,12 +667,7 @@ var DiscordNotifications = class DiscordNotifications {
|
|
|
455
667
|
const everyoneDeny = [...view === "everyone" ? [] : ["ViewChannel"], ...post === "everyone" ? [] : POST];
|
|
456
668
|
if (everyoneDeny.length === 0) return [];
|
|
457
669
|
const roles = [...view === "everyone" ? [] : view, ...post === "everyone" ? [] : post].length > 0 ? await this.roleList() : [];
|
|
458
|
-
const idOf = (name) =>
|
|
459
|
-
const found = roles.filter((r) => DiscordNotifications.same(r.name, name));
|
|
460
|
-
if (found.length === 0) throw new Error(`access names the role \`${name}\`, which does not exist on the server yet`);
|
|
461
|
-
if (found.length > 1) throw new Error(`access names the role \`${name}\`, but ${found.length} roles have that name (ids ${found.map((r) => r.id).join(", ")}) -- delete or rename the extras`);
|
|
462
|
-
return found[0].id;
|
|
463
|
-
};
|
|
670
|
+
const idOf = (name) => DiscordNotifications.pickRole(roles, name, "access");
|
|
464
671
|
const allow = /* @__PURE__ */ new Map();
|
|
465
672
|
const grant = (roleName, names) => {
|
|
466
673
|
const id = idOf(roleName);
|
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.196",
|
|
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.196"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@theholocron/discord-client": "^1.44.0",
|
|
55
55
|
"@theholocron/misc-utils": "^1.16.0",
|
|
56
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
56
|
+
"@theholocron/cli": "5.0.0-alpha.196"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=22"
|