mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Fix overly verbose warn cases
This commit is contained in:
parent
8a9112c99d
commit
12a41d7af3
1 changed files with 2 additions and 1 deletions
|
@ -607,6 +607,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
{
|
{
|
||||||
modId: mod.id,
|
modId: mod.id,
|
||||||
ppId: mod.id !== msg.author.id ? msg.author.id : null,
|
ppId: mod.id !== msg.author.id ? msg.author.id : null,
|
||||||
|
reason,
|
||||||
},
|
},
|
||||||
msg.channel as TextChannel,
|
msg.channel as TextChannel,
|
||||||
);
|
);
|
||||||
|
@ -670,7 +671,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
userId: member.id,
|
userId: member.id,
|
||||||
modId: caseArgs.modId,
|
modId: caseArgs.modId,
|
||||||
type: CaseTypes.Warn,
|
type: CaseTypes.Warn,
|
||||||
reason: warnMessage,
|
reason: caseArgs.reason || warnMessage,
|
||||||
noteDetails: notifyResult.status !== NotifyUserStatus.Ignored ? [ucfirst(notifyResult.text)] : [],
|
noteDetails: notifyResult.status !== NotifyUserStatus.Ignored ? [ucfirst(notifyResult.text)] : [],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue