(channel: string, token: string)
| 194 | }; |
| 195 | |
| 196 | export 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 | |
| 207 | export const getSlackChannels = async (teamId: string, token: string) => { |
| 208 | const url = |
no test coverage detected