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.63k stars 1.12k forks source link

Feature Request: Add support for datetimepicker block element #1152

Closed Houndie closed 1 year ago

Houndie commented 1 year ago

Description

Slack has a datetimepicker element that is absent from this SDK. It would be great to have it.

semiworkaround: You can use a datepicker element and manually use "datetimepicker" as the type. However you be unable to unmarshal the view, as InputBlock.UnmarshalJSON and BlockActions.UnmarshalJSON have no idea what to do with the type.

(Optional) Slack's documentation

https://api.slack.com/reference/block-kit/block-elements#datetimepicker

Houndie commented 1 year ago

Looks like someone actually beat me to it by a few days. Leaving this issue up to track, but this PR already in the pipe should fix my concerns:

https://github.com/slack-go/slack/pull/1145

kanata2 commented 1 year ago

Merged #1145.