3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-08 08:05:03 +00:00

feat: update to djs 14.19.3, node 22, zod 4

This commit is contained in:
Dragory 2025-05-22 22:35:48 +00:00
parent 595e1a0556
commit 09eb8e92f2
No known key found for this signature in database
189 changed files with 1244 additions and 900 deletions

View file

@ -31,8 +31,10 @@ export const AddCaseMsgCmd = modActionsMsgCmd({
return;
}
const member = msg.member || await msg.guild.members.fetch(msg.author.id);
// The moderator who did the action is the message author or, if used, the specified -mod
let mod = msg.member;
let mod = member;
if (args.mod) {
if (!(await hasPermission(pluginData, "can_act_as_other", { message: msg }))) {
pluginData.state.common.sendErrorMessage(msg, "You don't have permission to use -mod");
@ -52,7 +54,7 @@ export const AddCaseMsgCmd = modActionsMsgCmd({
actualAddCaseCmd(
pluginData,
msg,
msg.member,
member,
mod,
[...msg.attachments.values()],
user,