# Slack threads and chat integration plugin transcripts

**URL:** <https://meta.discourse.org/t/slack-threads-and-chat-integration-plugin-transcripts/71909>\
**Category:** Feature\
**Tags:** chat-integration\
**Created:** [12 באוקטובר,‏ 2017,‏ 4:57am UTC](https://meta.discourse.org/t/slack-threads-and-chat-integration-plugin-transcripts/71909 "2017-10-12T04:57:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [24 באוקטובר,‏ 2017,‏ 1:32am UTC](https://meta.discourse.org/t/slack-threads-and-chat-integration-plugin-transcripts/71909/5 "2017-10-24T01:32:38Z")

</div>

> [@mcwumbly](#):
>
> what may be technically feasible

I had a look at the API. It looks like we can’t specifically request messages that are/aren’t part of a thread. As you have noticed, messages are simply loaded in chronological order regardless of what thread they’re in. This can lead to a lot of mess!

When we retrieve messages, we are told whether they are part of a thread. So that means it’s definitely possible to filter them out on the discourse end, meaning that the transcript would only contain messages that are part of the “main” conversation. We would need to be careful to include those messages that are “broadcast” out of a thread into the main channel.

As for posting a transcript of a thread - as far as I can see, custom slash commands aren’t supported in threads… So that’s not a great start! [This](https://medium.com/@slackhq/unfortunately-slash-commands-dont-work-in-threads-quite-yet-66ba8ba6655d) is the only mention of the issue I can find.

So to go back to your list:

> [@mcwumbly](#):
>
> If you post the slash command from within a thread, just grab the whole thread and nothing else

I don’t think this is possible, because slash commands don’t work in threads ☹

* * *

> [@mcwumbly](#):
>
> (A) If you post from the main channel, skip messages in the threads

I think we can do this fairly easily 🙂

* * *

> [@mcwumbly](#):
>
> (B) If you post from the main channel, show messages in threads indented underneath the first message

This would be cool. How long do your threads tend to last? If the first post of a thread is more than 500 messages in the past then we might have an issue… And that 500 includes all posts in all threads that are part of a channel.

* * *

**Tl;dr:** Threads in Slack seem like a bit of an afterthought as far as the API is concerned!

---

_[View the full topic](https://meta.discourse.org/t/slack-threads-and-chat-integration-plugin-transcripts/71909)._
