We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5eb6da commit 6847ad3Copy full SHA for 6847ad3
1 file changed
application/src/main/java/org/togetherjava/tjbot/logging/discord/DiscordLogForwarder.java
@@ -194,8 +194,8 @@ private static String describeLogEvent(LogEvent event) {
194
}
195
196
private LogMessage shortened() {
197
- String shortDescription =
198
- abbreviate(embed.getDescription(), MAX_EMBED_DESCRIPTION_SHORT);
+ String shortDescription = MessageUtils.abbreviate(
+ Objects.requireNonNull(embed.getDescription()), MAX_EMBED_DESCRIPTION_SHORT);
199
WebhookEmbed shortEmbed =
200
new WebhookEmbedBuilder(embed).setDescription(shortDescription).build();
201
0 commit comments