Skip to content

i was not able to add Color in the Attachment #22

@sajjasivakumar

Description

@sajjasivakumar

Hi i was not able to add Color in the Attachment can you please help on this

how do you add Color to slack message if fail i want to mark it red

attachment := slack.Attachment{
Color: "#1766ff",
}

it was throwing error
`cannot use "red" (untyped string constant) as *string value in struct literalcompiler[IncompatibleAssign](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source%3Dgopls#IncompatibleAs
Screenshot 2022-02-09 at 12 17 13 AM
sign)

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions