Skip to content

Add ability to use Slack attachments#40

Open
rolfkleef wants to merge 1 commit intogedex:masterfrom
rolfkleef:slack-attachments
Open

Add ability to use Slack attachments#40
rolfkleef wants to merge 1 commit intogedex:masterfrom
rolfkleef:slack-attachments

Conversation

@rolfkleef
Copy link
Contributor

First quick approach to enable Slack attachments as payload:

If the message is a string, it is posted as 'text'. If the message is an array, it is posted as 'attachments'.

It should be an array of arrays: each main element is an attachment, and each attachment has attributes within it.

See https://api.slack.com/docs/attachments

First quick approach to enable Slack attachments as payload:

If the message is a string, it is posted as 'text'. If the message is an array, it is posted as 'attachments'.

It should be an array of arrays: each main element is an attachment, and each attachment has attributes within it.

See https://api.slack.com/docs/attachments
@rolfkleef
Copy link
Contributor Author

and for illustration: the wp-slack-bbpress add-on using the Slack attachments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant