Skip to content

Commit

Permalink
fix(api): send Slack messages to private channels
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergalvao committed Jan 27, 2025
1 parent cad2394 commit 43fea47
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export const findSlackChannel = async (
channelName: string
) => {
// TO-DO: Paginate
const channels = await slackClient?.conversations.list({ limit: 1000 });
const channels = await slackClient?.conversations.list({
limit: 1000,
types: "public_channel,private_channel",
});

return channels?.channels?.find((ch) => ch.name === channelName);
};
Expand Down

0 comments on commit 43fea47

Please sign in to comment.