mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Render global emotes
This commit is contained in:
parent
84d3a7ad84
commit
315173924c
@ -670,6 +670,8 @@
|
||||
var rendered = Mustache.render(template, {"id": emoji.id, "name": emoji.name}).trim();
|
||||
message.content = message.content.replaceAll(emoji_format, rendered);
|
||||
}
|
||||
var rendered = Mustache.render(template, {"id": "$2", "name": "$1"}).trim();
|
||||
message.content = message.content.replace(/<:(.*?):(.*?)>/g, rendered);
|
||||
return message;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user