if only revolt was up so i could have tested

This commit is contained in:
Lea 2023-06-24 10:35:01 +02:00
parent 2cc830956c
commit ea46a00bf7
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 20 additions and 4 deletions

View file

@ -180,15 +180,15 @@ async function createLogMessage(
case ModActionType.RemoveInfraction:
case ModActionType.TempBanExpire: {
description =
"### " +
"#### " +
(await tServer(
`server_logs.${log.type}.content`,
config,
user || undefined,
{
username: user
? `${user.username}#${user.discriminator}`
: "*Unknown*",
? user.displayName
: infraction.user,
},
)) +
"\n" +
@ -203,6 +203,14 @@ async function createLogMessage(
item: "id",
id: infraction._id,
},
{
key: "target_user",
item: "id",
id: infraction.user,
user: user
? `${user.username}#${user.discriminator}`
: "*Unknown*",
},
{
key: "moderator",
item: "id",
@ -218,6 +226,14 @@ async function createLogMessage(
item: "id",
id: infraction._id,
},
{
key: "target_user",
item: "id",
id: infraction.user,
username: user
? `${user.username}#${user.discriminator}`
: "*Unknown*",
},
],
));
break;

View file

@ -157,7 +157,7 @@ async function executeEvent(task: DBTimedAction) {
server: infraction.server,
type: ModActionType.TempBanExpire,
user: infraction.user,
infraction: "",
infraction: task.infraction,
},
client,
null,