mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-08 00:05:01 +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
|
@ -10,7 +10,7 @@ export const ListFollowCmd = locateUserCmd({
|
|||
permission: "can_alert",
|
||||
|
||||
async run({ message: msg, pluginData }) {
|
||||
const alerts = await pluginData.state.alerts.getAlertsByRequestorId(msg.member.id);
|
||||
const alerts = await pluginData.state.alerts.getAlertsByRequestorId(msg.author.id);
|
||||
if (alerts.length === 0) {
|
||||
void pluginData.state.common.sendErrorMessage(msg, "You have no active alerts!");
|
||||
return;
|
||||
|
@ -41,7 +41,7 @@ export const DeleteFollowCmd = locateUserCmd({
|
|||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
const alerts = await pluginData.state.alerts.getAlertsByRequestorId(msg.member.id);
|
||||
const alerts = await pluginData.state.alerts.getAlertsByRequestorId(msg.author.id);
|
||||
alerts.sort(sorter("expires_at"));
|
||||
|
||||
if (args.num > alerts.length || args.num <= 0) {
|
||||
|
|
|
@ -13,6 +13,6 @@ export const WhereCmd = locateUserCmd({
|
|||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
sendWhere(pluginData, args.member, msg.channel, `<@${msg.member.id}> | `);
|
||||
sendWhere(pluginData, args.member, msg.channel, `<@${msg.author.id}> | `);
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BasePluginType, guildPluginEventListener, guildPluginMessageCommand, pluginUtils } from "knub";
|
||||
import z from "zod";
|
||||
import z from "zod/v4";
|
||||
import { GuildVCAlerts } from "../../data/GuildVCAlerts.js";
|
||||
import { CommonPlugin } from "../Common/CommonPlugin.js";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue