We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, the postMessage api take in a list of objects to build up the payload to send to slack.
postMessage
channelID, timestamp, err := e.slackApiClient.PostMessage( notification.channel, slack.MsgOptionUsername("Bot Name"), slack.MsgOptionText(titleText, false), slack.MsgOptionAttachments( slack.Attachment{ Blocks: slack.Blocks{ BlockSet: blocks, }, Color: notification.color, }, ), )
I'm wondering:
In the example above, I imagine it to be something like
e.slackApiClient.PostMessage(json)
jsonPayload = e.slackApiClient.CreateMessagePayload( notification.channel, slack.MsgOptionUsername("Bot Name"), slack.MsgOptionText(titleText, false), slack.MsgOptionAttachments( slack.Attachment{ Blocks: slack.Blocks{ BlockSet: blocks, }, Color: notification.color, }, ), )
Thanks, Derek
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the
postMessage
api take in a list of objects to build up the payload to send to slack.I'm wondering:
In the example above, I imagine it to be something like
Thanks,
Derek
The text was updated successfully, but these errors were encountered: