6.1.0 • Published 11 months ago

@rowanmanning/get-all-emoji-in-a-slack-channel v6.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
11 months ago

@rowanmanning/get-all-emoji-in-a-slack-channel

Get all emoji in a public Slack channel.

Requirements

This library requires the following to run:

Usage

Install alongside the Slack web API with npm:

npm install @slack/web-api @rowanmanning/get-all-emoji-in-a-slack-channel

Load the library into your code with a require call (you'll also need the Slack WebClient class):

const { WebClient } = require('@slack/web-api');
const { getAllEmojiInASlackChannel } = require('@rowanmanning/get-all-emoji-in-a-slack-channel');

Get all occurrences of an emoji in a Slack channel:

const slackWebClient = new WebClient('YOUR-SLACK-TOKEN');
const emojiOccurrences = await getAllEmojiInASlackChannel(slackWebClient, 'YOUR-CHANNEL-ID');

emojiOccurrences will be an array of objects which look like this:

{
    emoji: String,         // The name of the emoji that was used (excluding wrapping colons)
    modifierEmoji: String, // The name of any modifier emoji (currently only skin-tone modifiers)
    user: String,          // The Slack user ID of the person who used this emoji
    ts: String,            // The Slack timestamp for the message that this emoji appear in
    isReaction: Boolean    // Whether the emoji was a reaction rather than part of the message
}

Migration

A new major version of this project is released if breaking changes are introduced. We maintain a migration guide to help users migrate between these versions.

Contributing

The contributing guide is available here. All contributors must follow this library's code of conduct.

License

Licensed under the MIT license. Copyright © 2019, Rowan Manning

6.1.0

11 months ago

6.0.0

1 year ago

5.2.3

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

5.1.0

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.4

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.0

7 years ago