feat: Better message in music category #74

Merged
Anri merged 11 commits from prettify-music into main 2023-02-17 23:06:19 +01:00
Showing only changes of commit 6b98656a41 - Show all commits

View file

@ -103,6 +103,11 @@ export const cleanCodeBlock = (text: string) => {
return text; 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) => export const emojiPng = (emoji: string) =>
`https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/72x72/${emoji `https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/72x72/${emoji
.codePointAt(0) .codePointAt(0)