Add emoji to message
 private void Test()
 {
     DiscordEmbedBuilder builder = new DiscordEmbedBuilder();
     builder.AddTitle("msg");

     _wipeChannel.CreateMessage(Client, builder.Build()).Then((msg) =>
     {
         try
         {
             msg.CreateReaction(Client, "1️⃣");
         }
         catch (Exception ex) 
         {
             Puts(ex.Message);
         }
     });
 }

Copy emoji from discord, and i get this:

"Discord Extension Exception (3.1.5): '1️⃣' failed emoji validation with error: Emoji string is not in the correct format.
If using a normal emoji please use the unicode character for that emoji."

How i can get unicode character?

\u0031\ufe0f\u20e3 = 1️⃣ - \u0031 not working

maybe I'm misunderstanding something?

Hey, Can you see if this works "\ufe0f\u20e3"?

Discord Extension Exception (3.1.5): '️⃣' failed emoji validation with error: Emoji of length 2 must be a surrogate pair

MJSU

Hey, Can you see if this works "\ufe0f\u20e3"?



Merged post

private void Test()
{
DiscordEmbedBuilder builder = new DiscordEmbedBuilder();
builder.AddTitle("msg");

_wipeChannel.CreateMessage(Client, builder.Build()).Then((msg) =>
{
try
{
TestReaction(msg, WebUtility.UrlEncode("1️⃣")); // working

//msg.CreateReaction(Client, "1%EF%B8%8F%E2%83%A3"); - not working
}
catch (Exception ex)
{
Puts(ex.Message);
}
});
}
private IPromise TestReaction(DiscordMessage msg, string emoji)
=> Client.Bot.Rest.Put(Client, $"channels/{msg.ChannelId}/messages/{msg.Id}/reactions/{emoji}/@me", null);

i try this, and its working.
But this

msg.CreateReaction(Client, "1%EF%B8%8F%E2%83%A3");

not working



Merged post

Discord Extension Exception (3.1.5): '1%EF%B8%8F%E2%83%A3' failed emoji validation with error: Emoji string is not in the correct format.

Merged post

@MJSU Can u fix it? or...?

Hey, I got some time to play around with this. I have it fixed. Just need to wait a day for the umod GitHub rate limit to reset so I can push the release. It will now support "1️⃣" or ":one:".