mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 01:25:02 +00:00
fix(mod-actions): note command reason check
This commit is contained in:
parent
e59c874705
commit
e5493742f5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue