Skip to content

Commit

Permalink
Change comments at L183 to suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Naoki Kanatani <k12naoki@gmail.com>
  • Loading branch information
KouWakai and kanata2 committed Dec 25, 2022
1 parent 7589264 commit c4f3ebe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/modal/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ func handleModal(w http.ResponseWriter, r *http.Request) {
case slack.InteractionTypeViewSubmission:
//you can use any modal you want to show to users just like creating modal.
updateModal := updateModal()
//you can use hash and ViewID from payload and externalID if exists
// You must set one of external_id or view_id and you can use hash for avoiding race condition.
// More details: https://api.slack.com/surfaces/modals/using#updating_apis
_, err := api.UpdateView(updateModal, "", i.View.Hash, i.View.ID)
if err != nil {
fmt.Printf("Error updating view: %s", err)
Expand Down

0 comments on commit c4f3ebe

Please sign in to comment.