Include user notification result in warn/kick/ban cases
This commit is contained in:
parent
1ead037b8a
commit
dd7ae1d4b8
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ import {
|
|||
stripObjectToScalars,
|
||||
successMessage,
|
||||
trimLines,
|
||||
ucfirst,
|
||||
unknownUser,
|
||||
} from "../utils";
|
||||
import { GuildMutes } from "../data/GuildMutes";
|
||||
|
@ -382,6 +383,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
|
|||
type: CaseTypes.Warn,
|
||||
reason,
|
||||
ppId: mod.id !== msg.author.id ? msg.author.id : null,
|
||||
noteDetails: userMessageResult.status !== NotifyUserStatus.Ignored ? [ucfirst(userMessageResult.text)] : [],
|
||||
});
|
||||
|
||||
const messageResultText = userMessageResult.text ? ` (${userMessageResult.text})` : "";
|
||||
|
@ -598,6 +600,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
|
|||
type: CaseTypes.Kick,
|
||||
reason,
|
||||
ppId: mod.id !== msg.author.id ? msg.author.id : null,
|
||||
noteDetails: userMessageResult.status !== NotifyUserStatus.Ignored ? [ucfirst(userMessageResult.text)] : [],
|
||||
});
|
||||
|
||||
// Confirm the action to the moderator
|
||||
|
@ -667,6 +670,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
|
|||
type: CaseTypes.Ban,
|
||||
reason,
|
||||
ppId: mod.id !== msg.author.id ? msg.author.id : null,
|
||||
noteDetails: userMessageResult.status !== NotifyUserStatus.Ignored ? [ucfirst(userMessageResult.text)] : [],
|
||||
});
|
||||
|
||||
// Confirm the action to the moderator
|
||||
|
|
Loading…
Add table
Reference in a new issue