Reputation: 4164
I want to post an "ephemeral" message to a user after a modal is submitted via a global shortcut. But in Slack, global shortcuts don't have the context of the channel the user had focused when the shortcut was invoked. The API body on the interactivity endpoint doesn't contain any channel information.
Yet there is this example from the Asana shortcut:
How are they able to respond with an ephemeral message to the channel that the user had focused when they invoked the global shortcut?
Upvotes: 0
Views: 345
Reputation: 2861
As per slack, this functionality may be coming soon:
We are exploring options to add channel context to global shortcut payloads where appropriate, with user opt-in. Please contact us with your desired use case.
https://api.slack.com/interactivity/shortcuts/using#coming-soon
May be they have given early access to Asana, or as mentioned in the comment, they are using some fixed channel work flow.
Upvotes: 1