@rowanmanning/get-all-messages-in-a-slack-channel v6.1.0
@rowanmanning/get-all-messages-in-a-slack-channel
Get all messages in a public Slack channel.
Requirements
This library requires the following to run:
- Node.js 20+
Usage
Install alongside the Slack web API with npm:
npm install @slack/web-api @rowanmanning/get-all-messages-in-a-slack-channelLoad 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.
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
5 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
6 years ago
6 years ago