UNPKG

@microfox/slack

Version:

This package provides a lightweight, proxy interface to the official Slack Web API, offering a curated set of the most commonly used functions for building Slack integrations. It is designed to be simple, efficient, and easy to integrate into your project

28 lines (19 loc) 551 B
# listChannelUsers The `listChannelUsers` method lists all users in a specific channel. ## Usage ```typescript import { MicrofoxSlackClient } from '@microfox/slack'; const client = new MicrofoxSlackClient(process.env.SLACK_BOT_TOKEN); (async () => { try { const users = await client.listChannelUsers('C12345678'); console.log(users); } catch (error) { console.error(error); } })(); ``` ## Arguments - `channelId` (string): The ID of the channel to get the members of. ## Response This method returns an array of user IDs.