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

Update backend/src/plugins/ModActions/commands/AddCaseCmd.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-09-23 12:03:35 +01:00 committed by almeidx
parent 7a7f0733e1
commit ae270d21fe
No known key found for this signature in database
GPG key ID: F403F80B79353CB4

View file

@ -60,7 +60,7 @@ export const AddCaseCmd = modActionsCmd({
return;
}
const config = pluginData.config.get();
const reason = parseReason(config, formatReasonWithAttachments(args.reason, [...msg.attachments.values()]));
const reason = formatReasonWithAttachments(parseReason(config, args.reason), [...msg.attachments.values()]);
// Create the case
const casesPlugin = pluginData.getPlugin(CasesPlugin);