lamby / django-slack

Slack integration for Django, using the templating engine to generate messages
https://django-slack.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
241 stars 57 forks source link

Blocks support #89

Closed chesstrian closed 5 years ago

chesstrian commented 5 years ago

Support for layout blocks: https://api.slack.com/messaging/composing/layouts

chesstrian commented 5 years ago

Hi @lamby, it'd be great to have this feature in the next version, please let me know if this makes sense for you or something additional is required.

slack_message('app/template.slack', blocks=[{
    'type': 'divider'
}])
lamby commented 5 years ago

@chesstrian Looks great. Can you just address these concerns and we can merge it ASAP.

chesstrian commented 5 years ago

@lamby, changes done

lamby commented 5 years ago

Awesome, this has been released in 5.14.0. :)

chesstrian commented 5 years ago

Great, thanks a lot :slightly_smiling_face: