slack icon indicating copy to clipboard operation
slack copied to clipboard

attachment with only button fail

Open eraac opened this issue 4 years ago • 1 comments

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 ?

eraac avatar May 20 '20 16:05 eraac

This has now been fixed by https://github.com/slack-go/slack/pull/770.

WillSewell avatar May 21 '21 08:05 WillSewell