slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.69k stars 1.14k forks source link

feat: add file access field to file struct for slackevents #1312

Closed zFlabmonsta closed 3 months ago

zFlabmonsta commented 3 months ago
Description

This PR consist of adding a new field, file_access to the slackevents File Object.

When a slack event is received from a slack connect channel, file data will not be included in the payload and requires an extra step to make API call to fetch the file data i.e. files.info. Slack includes the field file_access to determine this. More info https://api.slack.com/types/file#slack_connect_files

zFlabmonsta commented 3 months ago

hi @lorenzoaiello could i get a PR review 🙇