Replies: 2 comments 3 replies
-
Hey there! I moved this to discussions since it's more of a general question. The reason I have all the helper functions is because writing all the JSON and formatting it properly can be tricky. The helper functions provide type-hinting so that it prompts the developer letting them know what they can add to a block, doing all the formatting for them, etc. That being said, I think the idea of providing a way to just use raw JSON would be good. It would allow copying the JSON from Slack's nifty block builder tool, and if there's a new feature added to the API, a savvy user could write the JSON for it before it makes it into this package. Could you write some pseudo-code in the way you would like it to work and paste it here? |
Beta Was this translation helpful? Give feedback.
-
I would also love it would have this ability, as the Block Kit Builder uses JSON. Due to that we cannot use it. A good usage would be something like the following:
There is another package that does something like this, but I prefer not changing what I'm already using. I won't post the link as I think it's usually in bad taste to post links to other competing packages. Unless you are ok with it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and thank you for creating this.
I was wondering why we cant just use the slack json as attachment instead of using ->type(...) ->text(...) etc
Beta Was this translation helpful? Give feedback.
All reactions