diff --git a/build-number.txt b/build-number.txt index c650dc11..c6a69471 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -1421 \ No newline at end of file +1422 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java index ace090a2..128af969 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/DiscordPlugin.java @@ -224,7 +224,7 @@ public class DiscordPlugin { Component attachmentsComponent = Component.empty(); if (!message.getAttachments().isEmpty()) { - if (message.getContentDisplay().isEmpty()) attachmentsComponent = attachmentsComponent.append(Component.space()); + if (!message.getContentDisplay().isEmpty()) attachmentsComponent = attachmentsComponent.append(Component.space()); for (Message.Attachment attachment : message.getAttachments()) { attachmentsComponent = attachmentsComponent @@ -240,7 +240,7 @@ public class DiscordPlugin { Component embedsComponent = Component.empty(); if (!message.getEmbeds().isEmpty()) { - if (message.getAttachments().isEmpty()) embedsComponent = embedsComponent.append(Component.space()); + if (message.getAttachments().isEmpty() || !message.getContentDisplay().isEmpty()) embedsComponent = embedsComponent.append(Component.space()); for (MessageEmbed embed : message.getEmbeds()) { final Component hoverEvent = Component.translatable(