import { WebClient } from "@slack/web-api";
/*
@param: {string} file - file ID
@param: {number} count - Number of items to return per page
@param: {numb} page - number of pages to return
*/
type Slack = {
token: string;
};
export async function main(
slack_auth: Slack,
file: string,
count?: number,
page?: number
) {
const web = new WebClient(slack_auth.token);
let response = await web.files.info({
file: file,
count: count,
page: page,
});
return { response: response };
}
Submitted by hugo989 7 days ago