Skip to content

Commit

Permalink
socketmode example: use embedded api client in socketmode client
Browse files Browse the repository at this point in the history
  • Loading branch information
kittydoor committed Feb 5, 2023
1 parent a735199 commit ff7c502
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/socketmode/socketmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func main() {
innerEvent := eventsAPIEvent.InnerEvent
switch ev := innerEvent.Data.(type) {
case *slackevents.AppMentionEvent:
_, _, err := api.PostMessage(ev.Channel, slack.MsgOptionText("Yes, hello.", false))
_, _, err := client.PostMessage(ev.Channel, slack.MsgOptionText("Yes, hello.", false))
if err != nil {
fmt.Printf("failed posting message: %v", err)
}
Expand Down Expand Up @@ -137,7 +137,8 @@ func main() {
),
),
),
}}
},
}

client.Ack(*evt.Request, payload)
default:
Expand Down

0 comments on commit ff7c502

Please sign in to comment.