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.6k stars 1.11k forks source link

Support link unfurling properties in slack.WebhookMessage #1207

Open lheiskan opened 1 year ago

lheiskan commented 1 year ago

Description

Slack allows setting 'unfurl_links' and 'unfurl_media' properties for webhook message payloads to control linnk unfurling behavior of links in the message. slack.WebhookMessage does not allow setting these properties. Would ne nice if they were supported in the API.

(Optional) Slack's documentation

https://api.slack.com/reference/messaging/link-unfurling#classic_unfurl