( channel: string, ts: string, includeMetadata = false, )
| 62 | } |
| 63 | |
| 64 | export async function threadReplies( |
| 65 | channel: string, |
| 66 | ts: string, |
| 67 | includeMetadata = false, |
| 68 | ) { |
| 69 | const params: Record<string, string | boolean> = { channel, ts }; |
| 70 | if (includeMetadata) params.include_all_metadata = true; |
| 71 | const r = await slack("conversations.replies", params); |
| 72 | return r.messages as SlackMessage[]; |
| 73 | } |
| 74 | |
| 75 | export interface SlackMessage { |
| 76 | ts: string; |
no test coverage detected