Skip to content

Commit

Permalink
fixed empty alertlist bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasGnG committed Sep 26, 2023
1 parent 90c6f8d commit 0ef6087
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public void onSlashCommandInteraction(SlashCommandInteractionEvent event) {
builder.append("-> ").append(alert.get("name")).append(System.lineSeparator());
}

if(builder.isEmpty())
builder.append("Es wurden keine Erinnerungen gefunden.");

event.reply(builder.toString()).setEphemeral(true).queue();
return;
}
Expand Down

0 comments on commit 0ef6087

Please sign in to comment.