slack-apislack

How can I get the FULL list of slack emoji through API?


I am using the slack API to get the full list of emoji, so that when I get a message, I will just replace :squirrel: with the icon.

The method https://slack.com/api/emoji.list works like a charm, but returns 30 icons only. I think this is correct since in the documentation page (https://api.slack.com/methods/emoji.list) they say:

This method lists the custom emoji for a team.

Fair enough, but how can I get the full list of the associations icon-name / icon URL ?


Solution

  • Not entirely sure if this is what you are looking for, but if it's just about mapping images to slack-style names, this is a pretty good library:

    https://github.com/iamcal/emoji-data

    So, building on the example in their README:

    The emoji with the Slack style short name point_uphas the hex value 261d, and can thus be found here: https://github.com/iamcal/emoji-data/blob/master/img-apple-160/261d.png

    (Apple, because the default slack emoji are the apple emoji)