From 8fb757c27ba9c31a3db67c3b915733a54cced1e1 Mon Sep 17 00:00:00 2001 From: Jacob Schlecht Date: Mon, 2 Mar 2026 20:39:52 -0700 Subject: [PATCH] feat: Add emoji parsing to sync markdownToText This commit was made without the use of generative AI. Signed-off-by: Jacob Schlecht --- src/Client.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Client.ts b/src/Client.ts index 1c9a810a..93285a8d 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -420,6 +420,15 @@ export class Client extends AsyncEventEmitter { return sub; }) + .replace(RE_CUSTOM_EMOJI, (sub: string, id: string) => { + const emoji = this.emojis.get(id as string); + + if (emoji) { + return `:${emoji.name}:`; + } + + return sub; + }) .replace(RE_SPOILER, ""); }