mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +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)
|
slackAttachments = append(slackAttachments, a)
|
||||||
|
|
||||||
|
case *slack.Attachment:
|
||||||
|
if firstAttachmentOffset == -1 {
|
||||||
|
firstAttachmentOffset = idx
|
||||||
|
}
|
||||||
|
|
||||||
|
slackAttachments = append(slackAttachments, *a)
|
||||||
|
|
||||||
case types.SlackAttachmentCreator:
|
case types.SlackAttachmentCreator:
|
||||||
if firstAttachmentOffset == -1 {
|
if firstAttachmentOffset == -1 {
|
||||||
firstAttachmentOffset = idx
|
firstAttachmentOffset = idx
|
||||||
|
|
Loading…
Reference in New Issue
Block a user