Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Fix bot.replyPrivateDelayed. #444
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sundeepgupta committed Oct 16, 2016
1 parent b4f69f4 commit 138ed53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Slackbot_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ module.exports = function(botkit, config) {
msg.channel = src.channel;

msg.response_type = 'ephemeral';
msg.replace_original = false;

var requestOptions = {
uri: src.response_url,
Expand Down

0 comments on commit 138ed53

Please sign in to comment.