if only revolt was up so i could have tested
This commit is contained in:
parent
2cc830956c
commit
ea46a00bf7
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ async function executeEvent(task: DBTimedAction) {
|
|||
server: infraction.server,
|
||||
type: ModActionType.TempBanExpire,
|
||||
user: infraction.user,
|
||||
infraction: "",
|
||||
infraction: task.infraction,
|
||||
},
|
||||
client,
|
||||
null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue