From 6b98656a41f4329284cf7defd5abf1dad010e0c8 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 17 Feb 2023 19:44:33 +0100 Subject: [PATCH] add comment --- src/utils/misc.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/misc.ts b/src/utils/misc.ts index dd23171..8a24cbc 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -103,6 +103,11 @@ export const cleanCodeBlock = (text: string) => { return text; }; +/** + * Returns the emoji URL as png, only works with one-composed emoji code + * @param emoji Emoji + * @returns URL of emoji as png + */ export const emojiPng = (emoji: string) => `https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/72x72/${emoji .codePointAt(0)