Skip to content

Commit

Permalink
Merge pull request #351 from Ashex/slack_attachments
Browse files Browse the repository at this point in the history
Support for slack attachments
  • Loading branch information
skoczen authored Jun 13, 2018
2 parents eba732d + be3aca3 commit 2da427a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions will/backends/io_adapters/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ def send_message(self, event):
}
]),
})
elif "attachments" in event.kwargs:
data.update({
"text": event.content,
"attachments": json.dumps(event.kwargs["attachments"])
})
else:
data.update({
"text": event.content,
Expand Down

0 comments on commit 2da427a

Please sign in to comment.