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

@ -41,8 +41,10 @@ export const BanMsgCmd = 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");
@ -67,7 +69,7 @@ export const BanMsgCmd = modActionsMsgCmd({
args["time"] ? args["time"] : null,
args.reason || "",
[...msg.attachments.values()],
msg.member,
member,
mod,
contactMethods,
);