松弛发展

Slack development

问题: 当我点击 'Yes' 按钮时,按钮下方会出现一条消息,但一段时间后,该消息会自动消失。为什么?如何解决这个问题呢? 代码如下:

//
app.blockAction("button-action", (req, ctx) -> {
  String value = req.getPayload().getActions().get(0).getValue(); // "button's value"
  if (req.getPayload().getResponseUrl() != null) {
    // Post a message to the same channel if it's a block in a message
    ctx.respond("You've sent " + value + " by clicking the button!");
  }
  return ctx.ack();
});

该消息可能正在消失,因为它是一条临时消息。

至于为什么这是短暂的,原因在于解决方案的实施。