An00nymushun / DiscordFreeEmojis

228 stars 120 forks source link

[Discord Breaking Change] Can't send emojis #86

Closed EpicGazel closed 6 months ago

EpicGazel commented 6 months ago

Edit: Check out my fork I plan to maintain https://github.com/EpicGazel/DiscordFreeEmojis. Just download it from there.

Discord seems to no longer offer emoji.url in the emoji object, so we have to make the link ourselves now.

If you want to hide the character when embedding by using a hyperlink use the following instead: parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,`[᲼](${emojiUrl})`);

EpicGazel commented 6 months ago

You can also add back the "?size=64" to the end of the emojiUrl to lock its size as it is by default.

Oqarshi commented 6 months ago

Discord seems to no longer offer emoji.url in the emoji object, so we have to make the link ourselves now.

  • ctrl + f/find "function replaceEmoji"
  • const emojiUrl = `https://cdn.discordapp.com/emojis/${emoji.id}.${emoji.animated ? "gif" : "webp"}`;
  • parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,emojiUrl);
  • Delete the original parseResult.content = ...

If you want to hide the character when embedding by using a hyperlink use the following instead: parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,`[᲼](${emojiUrl})`);

This worked than you! But im not sure this plugin is maintained anymore 😞

Haidex commented 6 months ago

Discord seems to no longer offer emoji.url in the emoji object, so we have to make the link ourselves now.

  • ctrl + f/find "function replaceEmoji"
  • const emojiUrl = `https://cdn.discordapp.com/emojis/${emoji.id}.${emoji.animated ? "gif" : "webp"}`;
  • parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,emojiUrl);
  • Delete the original parseResult.content = ...

If you want to hide the character when embedding by using a hyperlink use the following instead: parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,`[᲼](${emojiUrl})`);

where am i supposed to input those? any screen on discord?

fuwa120 commented 6 months ago

Discord seems to no longer offer emoji.url in the emoji object, so we have to make the link ourselves now.

  • ctrl + f/find "function replaceEmoji"
  • const emojiUrl = `https://cdn.discordapp.com/emojis/${emoji.id}.${emoji.animated ? "gif" : "webp"}`;
  • parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,emojiUrl);
  • Delete the original parseResult.content = ...

If you want to hide the character when embedding by using a hyperlink use the following instead: parseResult.content = parseResult.content.replace(`<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`,`[᲼](${emojiUrl})`);

where am i supposed to input those? any screen on discord?

Go into your BetterDiscord plugins menu and click the Edit button for DiscordFreeEmojis and then input it there, at line 146, then save it. If you get an error when trying to save, add a } beneath what you pasted and it should work.

EpicGazel commented 6 months ago

Since An0 is Mia, I'm going to be maintaining a fork in the meantime. Not a perfect 1-to-1 so check the README. https://github.com/EpicGazel/DiscordFreeEmojis

Dinoslav commented 6 months ago

Since An0 is Mia, I'm going to be maintaining a fork in the meantime. Not a perfect 1-to-1 so check the README. https://github.com/EpicGazel/DiscordFreeEmojis

Please, where exactly should i put the "?size=64" in your version?

IruzzArcana commented 6 months ago

Since An0 is Mia, I'm going to be maintaining a fork in the meantime. Not a perfect 1-to-1 so check the README. https://github.com/EpicGazel/DiscordFreeEmojis

Please, where exactly should i put the "?size=64" in your version?

Line 146. const emojiUrl = `https://cdn.discordapp.com/emojis/${emoji.id}.${emoji.animated ? "gif" : "webp"}?size=64`;

Dinoslav commented 6 months ago

Since An0 is Mia, I'm going to be maintaining a fork in the meantime. Not a perfect 1-to-1 so check the README. https://github.com/EpicGazel/DiscordFreeEmojis

Please, where exactly should i put the "?size=64" in your version?

Line 146. const emojiUrl = `https://cdn.discordapp.com/emojis/${emoji.id}.${emoji.animated ? "gif" : "webp"}?size=64`;

Thanks!

EpicGazel commented 6 months ago

I tried this solution, but I cannot press enter to send the message containing emojis anymore?

A fix you can download: https://github.com/EpicGazel/DiscordFreeEmojis/blob/master/DiscordFreeEmojis64px.plugin.js

tic1028 commented 6 months ago

Thanks! Will try

From: EpicGazel @.> Reply-To: An00nymushun/DiscordFreeEmojis @.> Date: Thursday, May 2, 2024 at 10:10 PM To: An00nymushun/DiscordFreeEmojis @.> Cc: Phoebe @.>, Comment @.***> Subject: Re: [An00nymushun/DiscordFreeEmojis] [Discord Breaking Change] Can't send emojis (Issue #86)

I tried this solution, but I cannot press enter to send the message containing emojis anymore?

A fix you can download: https://github.com/EpicGazel/DiscordFreeEmojis/blob/master/DiscordFreeEmojis64px.plugin.js

— Reply to this email directly, view it on GitHubhttps://github.com/An00nymushun/DiscordFreeEmojis/issues/86#issuecomment-2092023456, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVPH6LCL536N5TVT6ICXL4DZALWYZAVCNFSM6AAAAABHBAO5MCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGAZDGNBVGY. You are receiving this because you commented.Message ID: @.***>

DanzoGit commented 6 months ago

Bro, thanks for doing this. I use this plugin all the time. 💖

Outwardwet commented 6 months ago

I changed the plugin to the one given here but I still can't use emojis. It puts my emoji in the message bar but when I press enter it doesn't send

EpicGazel commented 6 months ago

I changed the plugin to the one given here but I still can't use emojis. It puts my emoji in the message bar but when I press enter it doesn't send

Delete the old one from the plugins folder. Enable the new one in your BetterDiscord settings.

I'm going to stop checking in here. If you have issues related to the fork, post them over there.