feat: add stop-gap emoji solution 😎

This commit is contained in:
Paul Makles
2021-12-31 00:49:59 +00:00
parent b5077b62ff
commit 73dfc0ace6
2 changed files with 96 additions and 0 deletions

View File

@@ -41,6 +41,12 @@ function toCodePoint(rune: string) {
}
function parseEmoji(emoji: string) {
if (emoji.startsWith("custom:")) {
return `https://dl.insrt.uk/projects/revolt/emotes/${emoji.substring(
7,
)}`;
}
const codepoint = toCodePoint(emoji);
return `https://static.revolt.chat/emoji/${EMOJI_PACK}/${codepoint}.svg?rev=${REVISION}`;
}