slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.6k stars 1.11k forks source link

Fix: parse is_enterprise_install string #1264

Closed yunginnanet closed 4 months ago

yunginnanet commented 4 months ago

Cause: (*fmt.wrapError)(0xc004b8f3c0)(parsing slash command: json: cannot unmarshal string into Go struct field SlashCommand.is_enterprise_install of type bool),

sometimes we get "is_enterprise_install":"false", sometimes we get "is_enterprise_install": false

add ,string: and now both work

yunginnanet commented 4 months ago

errr, actually it won't be that simple

i'll look at this later - needs an issue - can't do it rn