JackuB / mermaid-preview

Create Mermaid diagrams and charts in Slack
https://mermaid-preview.com
MIT License
16 stars 0 forks source link

Support /mermaid in threads #3

Open HolisticDeveloper opened 7 months ago

HolisticDeveloper commented 7 months ago

I tried to use /mermaid in a thread today but Slackbot let me know that it doesn't work in threads. Is this easy to implement?

JackuB commented 7 months ago

Sadly this is a Slack limitation:

Slash commands created by developers cannot, however, be invoked in message threads.

https://api.slack.com/interactivity/slash-commands

There is no way around this. I'm wondering about your usage, is there some other way mermaid could help in a thread? 👀

HolisticDeveloper commented 7 months ago

Ah, that's too bad.

We're heavy users of Slack threads at work. I had a case where I wanted to explain something on a thread and a quick mermaid diagram was just the ticket. I typically use mermaid live to build the diagram initially -- due to the live preview -- but wanted to share it in Slack with your app so it would be easy to share both the markup and the image.