3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

fix(mod-actions): note command reason check

This commit is contained in:
Hiroyuki 2021-09-06 19:00:03 -04:00
parent e59c874705
commit e5493742f5
No known key found for this signature in database
GPG key ID: 258488F5F6FE3CAE

View file

@ -33,7 +33,7 @@ export const NoteCmd = modActionsCmd({
const userName = user.tag;
const config = pluginData.config.get();
const reason = formatReasonWithAttachments(args.reason, [...msg.attachments.values()]);
const reason = formatReasonWithAttachments(args.note, [...msg.attachments.values()]);
if (!reason && config.require_reason.includes("note")) {
sendErrorMessage(pluginData, msg.channel, "You must include a reason in your note");
return;