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

fix: Add required `format` field to rich text date blocks #1317

Closed luke-josh closed 2 months ago

luke-josh commented 3 months ago

As per block kit docs, the date element requires a format string to be included. Currently, submitting a block kit with this element results in a slack API error.

Also added the two optional fields url and fallback for posterity.

PR preparation

Run make pr-prep from the root of the repository to run formatting, linting and tests.

Should this be an issue instead
API changes

Since API changes have to be maintained they undergo a more detailed review and are more likely to require changes.

Examples of API changes that do not meet guidelines: