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

feat: pretty_name for automod

This commit is contained in:
Ruby 2024-05-12 14:55:21 +02:00
parent b28ca170ed
commit dfb2b82272
7 changed files with 17 additions and 4 deletions

View file

@ -8,6 +8,7 @@ import { log } from "../util/log";
interface LogAutomodActionData {
rule: string;
prettyName: string | undefined;
user?: User | null;
users: User[];
actionsTaken: string;
@ -20,6 +21,7 @@ export function logAutomodAction(pluginData: GuildPluginData<LogsPluginType>, da
LogType.AUTOMOD_ACTION,
createTypedTemplateSafeValueContainer({
rule: data.rule,
prettyName: data.prettyName,
user: data.user ? userToTemplateSafeUser(data.user) : null,
users: data.users.map((user) => userToTemplateSafeUser(user)),
actionsTaken: data.actionsTaken,