Skip to content

Commit 30e3f01

Browse files
committed
information about discarded warns in /warn export
1 parent cc4aa6e commit 30e3f01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/moderation/warn/WarnExportSubcommand.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
8585
.build())
8686
.addFiles(FileUpload.fromData(pis, "warns"+target.getId()+".txt"))
8787
.queue();
88-
for (Iterator<Warn> it = warns.iterator(); it.hasNext();) {
88+
for (Iterator<Warn> it = warns.iterator(); it.hasNext()) {
8989
Warn warn = it.next();
9090
pw.println("Reason: \"" + warn.getReason()+"\"");
9191
pw.println("Severity: " + warn.getSeverity() + "(" + warn.getSeverityWeight() + ")");
9292
pw.println("Warn ID: " + warn.getId());
9393
pw.println("Warned by: " + warn.getWarnedBy());
9494
pw.println("Warned at " + warn.getCreatedAt());
95+
if (warn.isDiscarded()) {
96+
pw.print("This warn has been discarded.");
97+
}
9598
if (it.hasNext()) {
9699
pw.println();
97100
pw.println("============");

0 commit comments

Comments
 (0)