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

implement dialog.open #45

Merged
merged 2 commits into from
Dec 11, 2017
Merged

implement dialog.open #45

merged 2 commits into from
Dec 11, 2017

Conversation

inoc603
Copy link
Contributor

@inoc603 inoc603 commented Dec 11, 2017

Hi, I implement the missing dialog.open API, plz review.
Also I added the trigger_id field in InteractiveButtonRequest, which is needed to open a dialog.

The new DialogSubmission struct is very similar to InteractiveButtonRequest, I didn't try to merge the two, maybe it can be done in the future.

@inoc603 inoc603 mentioned this pull request Dec 11, 2017
90 tasks
@lestrrat
Copy link
Collaborator

I was going to accept this without testing, but I was lucky to have merged the slack server mock before that... the Travis CI failure (https://travis-ci.org/lestrrat/go-slack/jobs/314643784) means you haven't defined a stock response variable that we would be returning for this dialog operation. Once you define it, you should be able to use the mock app to test your client method, too!

@inoc603
Copy link
Contributor Author

inoc603 commented Dec 11, 2017

My bad. Forgot to run go test before commit... I tested it when writing my own app. The test should pass now.

@lestrrat
Copy link
Collaborator

Since I don't and probably will not use dialog.open myself in the near future, I'll take your word for it that it's working. Thanks!

@lestrrat lestrrat merged commit 4712d4d into lestrrat-go:master Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants