Skip to content

Commit

Permalink
Update DiscordHtmlTranscripts.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AverageGithub authored May 21, 2023
1 parent eded5cb commit 16ff330
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,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(Objects.requireNonNull(member.getColor()));
var color = Formatter.toHex(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 16ff330

Please sign in to comment.