david
(David Taylor)
April 22, 2021, 5:57pm
30
Good news! I just merged a change to the plugin which adds support for Slack’s “Shortcuts” API. Now you can hit the … on a thread, click “Post to Discourse”, and you’ll be given a button which takes you straight to Discourse. No more fussing with slash commands or thread permalinks!
committed 05:50PM - 22 Apr 21 UTC
Once configured, this adds a new item to the context menu of slack messages. Whe… n clicked, the menu item will generate a transcript and present the user with a custom "Post to Discourse" modal. This provides the same functionality as the existing slash-command interface, but is much more user friendly.
To get this working, you’ll need the latest version of the chat-integration, and you’ll need to modify your Slack app using this new step of the setup
Go to the Interactivity & Shortcuts page, click Create new Shortcut , choose “On messages”, and click Next . Enter these details:
Name: “Post to Discourse” (feel free to change)
Short description: “Create a transcript to post on Discourse” (feel free to change)
Callback ID: post_shortcut
(do not change)
As always, let us know if you have any feedback
cc @mcwumbly @galligan @mcdanlj
9 Likes