Skip to content

Commit

Permalink
Use existing response metadata struct
Browse files Browse the repository at this point in the history
  • Loading branch information
alyosha committed Sep 19, 2020
1 parent 505712e commit bbc9865
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

// SlackResponse handles parsing out errors from the web api.
type SlackResponse struct {
Ok bool `json:"ok"`
Error string `json:"error"`
ResponseMetadata map[string]interface{} `json:"response_metadata"`
Ok bool `json:"ok"`
Error string `json:"error"`
ResponseMetadata ResponseMetadata `json:"response_metadata"`
}

func (t SlackResponse) Err() error {
Expand Down

0 comments on commit bbc9865

Please sign in to comment.