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

Update backend/src/plugins/ModActions/functions/actualMuteUserCmd.ts

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

View file

@ -45,7 +45,7 @@ export async function actualMuteUserCmd(
const timeUntilUnmute = args.time && humanizeDuration(args.time);
const config = pluginData.config.get();
const reason = args.reason
? parseReason(config, formatReasonWithAttachments(args.reason, [...msg.attachments.values()]))
? formatReasonWithAttachments(parseReason(config, args.reason), [...msg.attachments.values()])
: undefined;
let muteResult: MuteResult;