Method
joinConversation
(
key: IntegrationTaskKey,
params: { channel: string }
)
Source from the content-addressed store, hash-verified
| 149 | } |
| 150 | |
| 151 | joinConversation( |
| 152 | key: IntegrationTaskKey, |
| 153 | params: { channel: string } |
| 154 | ): Promise<ConversationsJoinResponse> { |
| 155 | return this.runTask( |
| 156 | key, |
| 157 | async (client) => { |
| 158 | return client.conversations.join(params); |
| 159 | }, |
| 160 | { |
| 161 | name: "Join Channel", |
| 162 | params, |
| 163 | icon: "slack", |
| 164 | properties: [ |
| 165 | { |
| 166 | label: "Channel ID", |
| 167 | text: params.channel, |
| 168 | }, |
| 169 | ], |
| 170 | } |
| 171 | ); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | function isPlatformError(error: unknown): error is WebAPIPlatformError { |
Tested by
no test coverage detected