summaryrefslogtreecommitdiffstats
path: root/model/command_response.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/command_response.go')
-rw-r--r--model/command_response.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/model/command_response.go b/model/command_response.go
index e3253acc0..27d39e173 100644
--- a/model/command_response.go
+++ b/model/command_response.go
@@ -14,12 +14,12 @@ const (
)
type CommandResponse struct {
- ResponseType string `json:"response_type"`
- Text string `json:"text"`
- Username string `json:"username"`
- IconURL string `json:"icon_url"`
- GotoLocation string `json:"goto_location"`
- Attachments SlackAttachments `json:"attachments"`
+ ResponseType string `json:"response_type"`
+ Text string `json:"text"`
+ Username string `json:"username"`
+ IconURL string `json:"icon_url"`
+ GotoLocation string `json:"goto_location"`
+ Attachments []*SlackAttachment `json:"attachments"`
}
func (o *CommandResponse) ToJson() string {
@@ -40,7 +40,7 @@ func CommandResponseFromJson(data io.Reader) *CommandResponse {
}
o.Text = ExpandAnnouncement(o.Text)
- o.Attachments.Process()
+ o.Attachments = ProcessSlackAttachments(o.Attachments)
return &o
}