Skip to content

Commit a6a2283

Browse files
remove pointer ref from Message struct
1 parent 8cdab15 commit a6a2283

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

slack.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,35 @@ type Message struct {
5858
// Attachment let you add more context to a message, making them more useful and effective.
5959
// See https://api.slack.com/docs/message-attachments
6060
type Attachment struct {
61-
Fallback *string `json:"fallback"`
62-
Color *string `json:"color"`
63-
PreText *string `json:"pretext"`
64-
AuthorName *string `json:"author_name"`
65-
AuthorLink *string `json:"author_link"`
66-
AuthorIcon *string `json:"author_icon"`
67-
Title *string `json:"title"`
68-
TitleLink *string `json:"title_link"`
69-
Text *string `json:"text"`
70-
ImageUrl *string `json:"image_url"`
71-
Fields []*Field `json:"fields"`
72-
Footer *string `json:"footer"`
73-
FooterIcon *string `json:"footer_icon"`
74-
Timestamp *int64 `json:"ts"`
75-
MarkdownIn *[]string `json:"mrkdwn_in"`
76-
Actions []*Action `json:"actions"`
77-
CallbackID *string `json:"callback_id"`
78-
ThumbnailUrl *string `json:"thumb_url"`
61+
Fallback string `json:"fallback"`
62+
Color string `json:"color"`
63+
PreText string `json:"pretext"`
64+
AuthorName string `json:"author_name"`
65+
AuthorLink string `json:"author_link"`
66+
AuthorIcon string `json:"author_icon"`
67+
Title string `json:"title"`
68+
TitleLink string `json:"title_link"`
69+
Text string `json:"text"`
70+
ImageUrl string `json:"image_url"`
71+
Fields []Field `json:"fields"`
72+
Footer string `json:"footer"`
73+
FooterIcon string `json:"footer_icon"`
74+
Timestamp int64 `json:"ts"`
75+
MarkdownIn []string `json:"mrkdwn_in"`
76+
Actions []Action `json:"actions"`
77+
CallbackID string `json:"callback_id"`
78+
ThumbnailUrl string `json:"thumb_url"`
7979
}
8080

8181
// AddField appends a new field to the Attachment
8282
func (attachment *Attachment) AddField(field Field) *Attachment {
83-
attachment.Fields = append(attachment.Fields, &field)
83+
attachment.Fields = append(attachment.Fields, field)
8484
return attachment
8585
}
8686

8787
// AddAction appends a new Action to the Attachment
8888
func (attachment *Attachment) AddAction(action Action) *Attachment {
89-
attachment.Actions = append(attachment.Actions, &action)
89+
attachment.Actions = append(attachment.Actions, action)
9090
return attachment
9191
}
9292

0 commit comments

Comments
 (0)