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

slackevents.sharedLinks struct is unexported #1079

Closed pmenglund closed 2 years ago

pmenglund commented 2 years ago

What happened

I'm writing a test for my shared link unfurler, and the LinkSharedEvent struct has a field Links which is an array of sharedLinks.

https://github.com/slack-go/slack/blob/9de73cee5f30be540fd051e94c3753c6d89ea905/slackevents/inner_events.go#L185-L188

Expected behavior

The sharedLinks type should be exported.

Steps to reproduce

reproducible code

Try to create a LinkSharedEvent with a list of Links:

    e := slackevents.LinkSharedEvent{
        Links:            []slackevents.sharedLinks{},
    }

Versions