mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge pull request #1537 from c9s/c9s/fix-slack-attachment
FIX: [slacknotifier] handle slack.Attachment pointer
This commit is contained in:
commit
9ddd91aea5
|
@ -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