mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-17 11:25:03 +00:00
feat: update to djs 14.19.3, node 22, zod 4
This commit is contained in:
parent
595e1a0556
commit
09eb8e92f2
189 changed files with 1244 additions and 900 deletions
|
@ -1,5 +1,5 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { canActOn } from "../../../pluginUtils.js";
|
||||
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { resolveMember, zSnowflake } from "../../../utils.js";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { zBoundedCharacters, zSnowflake } from "../../../utils.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { convertDelayStringToMS, noop, zDelayString, zSnowflake } from "../../../utils.js";
|
||||
import { ActionError } from "../ActionError.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { zSnowflake } from "../../../utils.js";
|
||||
import { ActionError } from "../ActionError.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Snowflake, TextChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter.js";
|
||||
import { zBoundedCharacters, zSnowflake } from "../../../utils.js";
|
||||
import { ActionError } from "../ActionError.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Snowflake, VoiceChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { canActOn } from "../../../pluginUtils.js";
|
||||
import { TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter.js";
|
||||
import { resolveMember, zSnowflake } from "../../../utils.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { PermissionsBitField, PermissionsString, Snowflake } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { zSnowflake } from "../../../utils.js";
|
||||
import { ActionError } from "../ActionError.js";
|
||||
|
|
|
@ -38,7 +38,7 @@ export async function runEvent(
|
|||
} catch (e) {
|
||||
if (e instanceof ActionError) {
|
||||
if (event.trigger.type === "command") {
|
||||
void pluginData.state.common.sendErrorMessage((eventData.msg as Message).channel, e.message);
|
||||
void pluginData.state.common.sendErrorMessage(eventData.msg, e.message);
|
||||
} else {
|
||||
// TODO: Where to log action errors from other kinds of triggers?
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BasePluginType, pluginUtils } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { zBoundedCharacters, zBoundedRecord } from "../../utils.js";
|
||||
import { CommonPlugin } from "../Common/CommonPlugin.js";
|
||||
import { zAddRoleAction } from "./actions/addRoleAction.js";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue