松弛斜杠命令仅显示对通道的响应
slack slash commands show response only to channel
slack 仅提供两种类型的响应:
- 临时 = 只向用户显示命令和响应。
- in_channel = 将命令和响应显示给频道内的所有用户。
短暂的例子:
in_channel 例子:
问题:
如何让斜杠命令在频道中显示响应 仅而不同时显示命令和响应?
好的,所以我找到了问题的答案,在 slack 的 api 中说
The only user-facing difference between immediate responses and delayed responses is that "in channel" delayed responses will not include the initial command sent by the user. To echo the command back to the channel, you'll still need to provide a response to Slack's original visit to your invocation URL.
引用https://api.slack.com/slash-commands#responding_to_a_command
slack 仅提供两种类型的响应:
- 临时 = 只向用户显示命令和响应。
- in_channel = 将命令和响应显示给频道内的所有用户。
短暂的例子:
in_channel 例子:
问题:
如何让斜杠命令在频道中显示响应 仅而不同时显示命令和响应?
好的,所以我找到了问题的答案,在 slack 的 api 中说
The only user-facing difference between immediate responses and delayed responses is that "in channel" delayed responses will not include the initial command sent by the user. To echo the command back to the channel, you'll still need to provide a response to Slack's original visit to your invocation URL.
引用https://api.slack.com/slash-commands#responding_to_a_command