slack
slack copied to clipboard
attachment with only button fail
I move my projet from the old library (nlopes) to this one and discover something a bit weird
My attachment with callbackID and 4 buttons isn't display on Slack when the text is empty.
slack.Attachment{
Text: " ", // without the white space, button are never render
CallbackID: "my-callback",
Actions: []slack.AttachmentAction{
{Name: "name", Value: "value", Text: "text", Type: "button"},
},
}
The field text is tag with omitempty
so I guess this field isn't required ?
This has now been fixed by https://github.com/slack-go/slack/pull/770.