You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Lets say X does a slash command that causes our app to post a message as X (i.e. as_user is true) in the channel. The message contains an interactive message button. Now Y comes along and clicks the button. Our app responds to Y using replyPrivateDelayed with msg object of {"text": "hello"}. In other words, we want to reply to Y with "hello" ephemerally. We don't want to update/delete X's message, it should remain in the channel.
The result we're seeing is X replaces the original post with the button with a plain text post, "hello".
After experimenting more, it turns out that we also need to msg.replace_original = false to get the expected behaviour.
I created a branch with a simple fix, however not sure if this is the best way to go about it. Also it would be a breaking API change.
The text was updated successfully, but these errors were encountered:
I discovered this when trying to ephemerally respond to an interactive button click. We need to set `replace_original` to `false` in order for our reply to be ephemeral. Otherwise, it will reply publicly.
Update: we can can always set replace_original to false so we don't need to pass in an an extra argument. Thereby, fixing without breaking existing API. Created a PR: #446
I discovered this when trying to ephemerally respond to an interactive button click. We need to set `replace_original` to `false` in order for our reply to be ephemeral. Otherwise, it will reply publicly. Furrther, when responding to an ephemeral message's button click, currently we cannot update it. Thus, introduce new method to provide the option to update or not. The existing one could be depcrecated.
I discovered this when trying to ephemerally respond to an interactive button click. We need to set `replace_original` to `false` in order for our reply to be ephemeral. Otherwise, it will reply publicly. Furrther, when responding to an ephemeral message's button click, currently we cannot update it. Thus, introduce new method to provide the option to update or not. The existing one could be depcrecated.
Lets say X does a slash command that causes our app to post a message as X (i.e.
as_user
is true) in the channel. The message contains an interactive message button. Now Y comes along and clicks the button. Our app responds to Y usingreplyPrivateDelayed
withmsg
object of {"text": "hello"}. In other words, we want to reply to Y with "hello" ephemerally. We don't want to update/delete X's message, it should remain in the channel.The result we're seeing is X replaces the original post with the button with a plain text post, "hello".
After experimenting more, it turns out that we also need to
msg.replace_original = false
to get the expected behaviour.I created a branch with a simple fix, however not sure if this is the best way to go about it. Also it would be a breaking API change.
The text was updated successfully, but these errors were encountered: