This adds support for Slack message attachments. Because it is both legal and common to post a message to Slack with attachments and no text, the text parameter is now handled in the following fashion:
When attachments IS specified, text and text_file are optional.
When attachments IS NOT specified, the old behavior of requiring text or text_file is retained.
As such, there should be no breaking changes. I updated the documentation to reflect this change.
This adds support for Slack message attachments. Because it is both legal and common to post a message to Slack with attachments and no
text
, thetext
parameter is now handled in the following fashion:attachments
IS specified,text
andtext_file
are optional.attachments
IS NOT specified, the old behavior of requiringtext
ortext_file
is retained.As such, there should be no breaking changes. I updated the documentation to reflect this change.