Skip to content

Commit

Permalink
Fix v4
Browse files Browse the repository at this point in the history
  • Loading branch information
AverageGithub authored Jun 7, 2024
1 parent b12b2a2 commit decfec4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public InputStream generateFromMessages(Collection<Message> messages) throws IOE
var referenceMessage = message.getReferencedMessage();
User author = referenceMessage.getAuthor();
Member member = channel.getGuild().getMember(author);
var color = Formatter.toHex(member.getColor() == null ? java.awt.Color.WHITE : member.getColor());
var color = Formatter.toHex((member == null || member.getColor() == null) ? java.awt.Color.WHITE : member.getColor());

// System.out.println("REFERENCE MSG " + referenceMessage.getContentDisplay());
reference.html("<img class=\"chatlog__reference-avatar\" src=\""
Expand Down

0 comments on commit decfec4

Please sign in to comment.