MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / joinChannel

Function joinChannel

apps/web/services/slack/api/fetch_all_conversations.ts:196–205  ·  view source on GitHub ↗
(channel: string, token: string)

Source from the content-addressed store, hash-verified

194};
195
196export const joinChannel = async (channel: string, token: string) => {
197 const url = 'https://slack.com/api/conversations.join';
198
199 const response = await request
200 .post(url)
201 .send({ channel })
202 .set('Authorization', 'Bearer ' + token);
203
204 return response;
205};
206
207export const getSlackChannels = async (teamId: string, token: string) => {
208 const url =

Callers 2

processChannelCreatedFunction · 0.90
createChannelsFunction · 0.85

Calls 3

setMethod · 0.45
sendMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected