Skip to content

Commit

Permalink
Added no preorder msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
EazyFTW committed Sep 1, 2020
1 parent 1bf6e83 commit 01b07aa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ public void onCommand(TextChannel channel, Message message, Member member, Strin

Preorder preorder = TechDiscordBot.getStorage().getPreorders(getRoles().get(0).replace(" Preorder", ""), false).stream().filter(po -> po.getDiscordId() == member.getUser().getIdLong()).findFirst().orElse(null);
if(preorder == null) {
new TechEmbedBuilder("Preorder Cmd - Error")
.error()
.setText("Could not find a preorder that belongs to " + selectedMember.getAsMention() + "!")
.sendTemporary(channel, 10);
return;

}

boolean showEmail = isArg(args, "showEmail") && (preorder.getDiscordId() == selectedMember.getUser().getIdLong() || isStaff(member));
Expand Down

0 comments on commit 01b07aa

Please sign in to comment.