What about a “pull” approach instead of “push”?
Workflow:
- Copy link to particular slack message
- Paste it into discourse
- Onebox has settings for authentication with private slack instances to feature message
- Onebox appends something like [before:0,after:0] to the end of the link, indicating that it’s going to suck in 0 messages before and after the link (maybe site settings to control those defaults?)
- User can edit the plaintext to add more messages before and after the post
I think this would be easier to reason about, and allow pasting slack messages as a new topic or inside any post…
I’m calling it “Onebox” above, but maybe its more of a hybrid onebox/plugin thing… not sure the implementation, just using it as a shorthand for the UX.