我找不到有关如何实现此目的的集中文档。 似乎可以使用默认情况下为Slash的Slash命令。
我尝试过的事情:
挂钩响应:
{
"attachments": [
{
"pretext": "This is the attachment pretext.",
"text": "This is the attachment text.",
"actions": [
{
"name": "Ephemeral Message",
"integration": {
"url": "https://webhook.site/028da195-ed7d-4e6e-b23e-30ace3e6b2d4",
"context": {
"action": "do_something_ephemeral"
}
}
}, {
"name": "Update",
"integration": {
"url": "http://127.0.0.1:7357",
"context": {
"action": "do_something_update"
}
}
}
]
}
]
}
按钮动作响应:
{
"update": {
"message": "Updated!"
},
"ephemeral_text": "You updated the post!"
}
如何使所有这些交互都是短暂的,而不仅仅是动作响应中的ephemeral_text?