add comment
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-02-17 19:44:33 +01:00
parent dfe7618530
commit 6b98656a41
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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)