I've been experimenting with this a bit, it looks like it's hard to mix and match with the existing stuff -- I can add stuff to payload[:blocks] in a custom payload_for block, but if I do it entirely replaces the default message. When you add "blocks", it doesn't use... whatever you are using for the ordinary text message.
So it might be kind of a refactor of some things. But you could have much prettier messages!
https://api.slack.com/messaging/attachments-to-blocks
I've been experimenting with this a bit, it looks like it's hard to mix and match with the existing stuff -- I can add stuff to
payload[:blocks]
in a custompayload_for
block, but if I do it entirely replaces the default message. When you add "blocks", it doesn't use... whatever you are using for the ordinary text message.So it might be kind of a refactor of some things. But you could have much prettier messages!