mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Improve emoji support
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
module.exports = function parseEmoji(text) {
|
||||
if (text.includes('%')) {
|
||||
text = decodeURIComponent(text);
|
||||
}
|
||||
if (text.includes(':')) {
|
||||
const [name, id] = text.split(':');
|
||||
return { name, id };
|
||||
|
||||
Reference in New Issue
Block a user