File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/net/javadiscord/javabot/systems/moderation/warn Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ("============" );
You can’t perform that action at this time.
0 commit comments