Skip to main content

slack.slack.listconversations

Home > @runlightyear/slack > Slack > listConversations

Slack.listConversations() method

List conversations

Signature:
listConversations(props?: ListConversationsProps): Promise<ListConversationsResponse>;

Parameters

ParameterTypeDescription
propsListConversationsProps(Optional1)
Returns:

Promise<ListConversationsResponse>

Example

List conversations

import { defineAction } from "@runlightyear/lightyear";
import { Slack } from "@runlightyear/slack";

defineAction({
name: "listChannels",
title: "List Channels",
apps: ["slack"],
run: async ({ auths }) => {
const slack = new Slack({
auth: auths.slack,
});
const response = await slack.listConversations();
console.log("Response data: ", response.data);
},
});