Skip to content

Commit

Permalink
[frmj] base emoji url generation on ID instead of url
Browse files Browse the repository at this point in the history
Discord seems to have removed the url from the react fiber. Meanwhile we might just hardcode Discord URLs so that this will only break when Discord eventually™ decommissions the discordapp.com domain.
  • Loading branch information
aaronliu0130 authored and yellowsink committed May 10, 2024
1 parent f46b60b commit 3beb381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/freemoji/slateTreeProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default (slateTree) => {
) {
// add to emotes to send
extractedEmojis.push(
`${emoji.url.split("?")[0]}?size=${getEmoteSize()}`,
`https://cdn.discordapp.com/emojis/${emoji.id}?size=${getEmoteSize()}`,
);
// don't add to the line
continue;
Expand Down

0 comments on commit 3beb381

Please sign in to comment.