diff --git a/pom.xml b/pom.xml
index c836d49..d47702b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -114,6 +114,12 @@
joda-time
2.12.4
+
+
+ net.kyori
+ adventure-text-serializer-legacy
+ 4.13.1
+
diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/DiscordPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/DiscordPlugin.java
index 11d5e65..ee1ca06 100644
--- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/DiscordPlugin.java
+++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/DiscordPlugin.java
@@ -18,6 +18,7 @@ import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.ClickEvent;
import net.kyori.adventure.text.event.HoverEvent;
import net.kyori.adventure.text.format.NamedTextColor;
+import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
@@ -155,17 +156,18 @@ public class DiscordPlugin {
)
.clickEvent(ClickEvent.openUrl(discordUrl));
+ final Component deserialized = LegacyComponentSerializer.legacyAmpersand().deserialize(message.replace("\uD83D\uDC80", "☠"));
+
+ final Component messageComponent = Component
+ .text("")
+ .color(NamedTextColor.GRAY)
+ .append(deserialized.append(attachmentsComponent));
+
final Component component = Component.translatable(
"[%s] %s › %s",
discordComponent,
nameComponent,
- Component
- .text(
- message
- .replace("\uD83D\uDC80", "☠")
- )
- .color(NamedTextColor.GRAY)
- .append(attachmentsComponent)
+ messageComponent
).color(NamedTextColor.DARK_GRAY);
bot.chat().tellraw(component);
}