Skip to content

Commit

Permalink
Add docstring for dialog.open
Browse files Browse the repository at this point in the history
  • Loading branch information
cbui committed Apr 29, 2019
1 parent 490f3a6 commit d4e4320
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/clj_slack/dialog.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
(:require [clj-slack.core :refer [slack-post-request]]))

(defn open
"Opens a dialog for the user that caused the trigger trigger-id.
- dialog: a json encoded string of a dialog
- trigger-id: the trigger-id of the event that the dialog will open for
See: https://api.slack.com/methods/dialog.open
"
[connection dialog trigger-id]
(slack-post-request connection "dialog.open" {"dialog" dialog "trigger_id" trigger-id}))

0 comments on commit d4e4320

Please sign in to comment.