refactor: turn back to using getContentDisplay because the stripped one doesn't look good

This commit is contained in:
ChomeNS
2024-12-31 09:19:29 +07:00
parent ba5f88df36
commit eed3073ee7
2 changed files with 3 additions and 3 deletions

View File

@@ -224,7 +224,7 @@ public class DiscordPlugin {
Component attachmentsComponent = Component.empty();
if (!message.getAttachments().isEmpty()) {
if (message.getContentStripped().isEmpty()) attachmentsComponent = attachmentsComponent.append(Component.space());
if (message.getContentDisplay().isEmpty()) attachmentsComponent = attachmentsComponent.append(Component.space());
for (Message.Attachment attachment : message.getAttachments()) {
attachmentsComponent = attachmentsComponent
@@ -344,7 +344,7 @@ public class DiscordPlugin {
final Component deserialized = LegacyComponentSerializer
.legacyAmpersand()
.deserialize(
message.getContentStripped()
message.getContentDisplay()
// replaces skull emoji
.replace("\uD83D\uDC80", "")
);