mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
slacknotifier: handle slack.Attachment pointer
This commit is contained in:
parent
35b15c35e6
commit
ac181959e5
|
@ -83,6 +83,13 @@ func filterSlackAttachments(args []interface{}) (slackAttachments []slack.Attach
|
|||
|
||||
slackAttachments = append(slackAttachments, a)
|
||||
|
||||
case *slack.Attachment:
|
||||
if firstAttachmentOffset == -1 {
|
||||
firstAttachmentOffset = idx
|
||||
}
|
||||
|
||||
slackAttachments = append(slackAttachments, *a)
|
||||
|
||||
case types.SlackAttachmentCreator:
|
||||
if firstAttachmentOffset == -1 {
|
||||
firstAttachmentOffset = idx
|
||||
|
|
Loading…
Reference in New Issue
Block a user