felldo / JEmoji

Java Emoji (JEmoji) is a lightweight fast emoji library for Java with the purpose to improve and ease working with emojis
Apache License 2.0
58 stars 10 forks source link

Missing skin tone aliases for Slack #53

Closed viktorzetterstrom closed 1 month ago

viktorzetterstrom commented 1 month ago

Your Question

Hello!

Thanks for all the work with this library! I have a question, we want to get slack aliases from JEmoji for storing reactions to messages. Unfortunately it seems emojis with skin tone do not have slack aliases. Why is that?

Best regards Viktor

felldo commented 1 month ago

Hi, thank you making me aware of this issue. There are definitely emojis that do have a slack alias.

{
  "emoji" : "👋🏻",
  "unicode" : "\uD83D\uDC4B\uD83C\uDFFB",
  "discordAliases" : [ ":wave_tone1:", ":wave::skin-tone-1:", ":waving_hand::skin-tone-1:" ],
  "githubAliases" : [ ],
  "slackAliases" : [ ":wave::skin-tone-2:" ],
  "hasFitzpatrick" : true,
  "hasHairStyle" : false,
  "version" : 1.0,
  "qualification" : "fully-qualified",
  "description" : "waving hand: light skin tone",
  "group" : "People & Body",
  "subgroup" : "hand-fingers-open",
  "hasVariationSelectors" : false
}

Appearently after I switched from loading emojis from a JSON file to having static generated Java code I mixed up the github and slack alias order. Therefore, currently github aliases are slack aliases and vice versa. In the meantime you can use the github aliases for your code while a new version is being released. This might take a couple of hours until it is available on mavencentral with the version 1.5.1.

viktorzetterstrom commented 1 month ago

Great to hear! Thanks for the quick response and action! 🙏