https://linen.dev logo
Slackbot SLACKBOT_LIST_ALL_SLACK_TEAM_CHANNELS_WIT...
# 🖥│support-forum
k
the title below is my code
Copy code
ts
export async function getSlackChannels(
  composioApiKey: string,
  userId: string,
  connectedAccountId: string
) {
  const composio = getComposio(composioApiKey);
  const result = await composio.tools.execute(
    TOOLS.SLACKBOT_LIST_ALL_SLACK_TEAM_CHANNELS_WITH_VARIOUS_FILTERS,
    {
      userId,
      connectedAccountId,
      arguments: { limit: 20 },
    }
  );
  return result;
}
https://cdn.discordapp.com/attachments/1400802267682050098/1400802267849818233/image.png?ex=688df646&is=688ca4c6&hm=9660aeef9faed178c47d429675257834da4fe82dd16108648c0784ff9ab0c446&
c
Hi Kevin, we are checking this.
The team is looking into this Issue, Meanwhile you can use
SLACK_LIST_ALL_SLACK_TEAM_USERS_WITH_PAGINATION
to list all the Channels.
k
c
Awesome, it looks like it is a tool specific Issue. The team will be working on a fix. Meanwhile, does using
SLACK_LIST_ACCESSIBLE_CONVERSATIONS_FOR_A_USER
work for you?
k
No. I want to show the list of channels in a workspace and want the user to select channels from their side which the bot will join
c
Got it, I'll update you when the fix is live!
k
Hey any updates on this?
c
Hi Keviv, missed responding here. The fix is live, could you try it and let me know if you face any Issues?