Change public reason used on imported punishments
This commit is contained in:
parent
24a73f72cf
commit
131e255116
@ -39,7 +39,7 @@ public final class PunishmentConverter implements Block<Document> {
|
|||||||
Punishment created = new Punishment(
|
Punishment created = new Punishment(
|
||||||
new ObjectId().toString(),
|
new ObjectId().toString(),
|
||||||
target,
|
target,
|
||||||
"Imported Ban; reason hidden",
|
"Hidden (legacy punishment)",
|
||||||
punishment.getString("reason").toString(),
|
punishment.getString("reason").toString(),
|
||||||
Punishment.PunishmentType.valueOf(punishment.getString("type").toUpperCase()),
|
Punishment.PunishmentType.valueOf(punishment.getString("type").toUpperCase()),
|
||||||
punishment.containsKey("expires") ? punishment.getDate("expires").toInstant() : null,
|
punishment.containsKey("expires") ? punishment.getDate("expires").toInstant() : null,
|
||||||
|
Loading…
Reference in New Issue
Block a user