( threadTs: string, channel: string, token: string )
| 121 | }; |
| 122 | |
| 123 | export const fetchReplies = async ( |
| 124 | threadTs: string, |
| 125 | channel: string, |
| 126 | token: string |
| 127 | ) => { |
| 128 | const url = `https://slack.com/api/conversations.replies?channel=${channel}&ts=${threadTs}`; |
| 129 | return callApi<FetchRepliesResponseType>(url, token); |
| 130 | }; |
| 131 | |
| 132 | export const fetchFile = async (fileUrl: string, token: string) => { |
| 133 | if (!token) return await request.get(fileUrl); |
no test coverage detected