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

Fix overly verbose warn cases

This commit is contained in:
Dragory 2019-10-11 04:44:58 +03:00
parent 8a9112c99d
commit 12a41d7af3

View file

@ -607,6 +607,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
{
modId: mod.id,
ppId: mod.id !== msg.author.id ? msg.author.id : null,
reason,
},
msg.channel as TextChannel,
);
@ -670,7 +671,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
userId: member.id,
modId: caseArgs.modId,
type: CaseTypes.Warn,
reason: warnMessage,
reason: caseArgs.reason || warnMessage,
noteDetails: notifyResult.status !== NotifyUserStatus.Ignored ? [ucfirst(notifyResult.text)] : [],
});