codinglab-io / discord-bot

Discord bot for Codinglab's server.
https://discord.com/invite/codinglab-174169014568878080
MIT License
19 stars 14 forks source link

fix: change removeEmoji regex to include custom emojis #63

Closed dilaouid closed 1 year ago

dilaouid commented 1 year ago

(Just tried something after a bit of documentation) I replaced the original regular expression to delete the emojis (/(\p{Extended_Pictographic}|\p{Emoji_Component})/gu), since it doesn't catches the custom emojis which are formatted as such <:emoji_name:emoji_id>

As shown in some requests, the custom emojis are really formatted as such: image