Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replying in thread to my own message #218

Open
davich opened this issue Apr 8, 2019 · 4 comments
Open

Replying in thread to my own message #218

davich opened this issue Apr 8, 2019 · 4 comments

Comments

@davich
Copy link

davich commented Apr 8, 2019

I'm writing a command and I want to client.say something then reply to that in a thread with more details. At the moment, I have no way of getting the data.ts or data.thread_ts that I need to make a threaded message. client.say just returns true/false.

Thanks

@dblock
Copy link
Collaborator

dblock commented Apr 8, 2019

I would appreciate a PR that changes this, please.

@davich
Copy link
Author

davich commented Apr 8, 2019

From a quick look, it appears that the information isn't returned by slack-ruby-client. But I'm no expert. Any suggestions for where this info would be? Thanks

@dblock
Copy link
Collaborator

dblock commented Apr 10, 2019

That's where any fix should go and that's where I would look.

@jillguyonnet
Copy link

Just want to highlight a workaround in the mean time:

last_message = client.web_client.conversations_history(channel: data.channel, limit: 1).messages.first
say(channel: data.channel, text: '...', thread_ts: last_message.ts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants