5.1.0 • Published 4 months ago

@rowanmanning/get-all-messages-in-a-slack-channel v5.1.0

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

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

Get all messages in a public Slack channel.

Table of Contents

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-messages-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 getAllMessagesInASlackChannel = require('@rowanmanning/get-all-messages-in-a-slack-channel');

Get all the messages in a Slack channel:

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

See the Slack channels.history response documentation for info on what the messages look like.

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

5.1.0

4 months ago

5.0.1

4 months ago

5.0.0

8 months ago

4.0.2

10 months ago

4.0.1

1 year ago

4.0.0

1 year ago

3.1.5

1 year ago

3.1.4

1 year ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago