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.66k stars 1.13k forks source link

Support is_read_only in slack.Conversation #1234

Closed GGonryun closed 1 month ago

GGonryun commented 1 year ago

Description

Slack allows custom channel permissions which may prevent certain users or bots from posting to that channel. An existing property is_read_only from the API is currently missing from slack.Converstations.

(Optional) Slack's documentation

https://api.slack.com/methods/conversations.info#examples https://api.slack.com/types/conversation

{
    "ok": true,
    "channel": {
        "id": "C012AB3CD",
        "name": "general",
        "is_channel": true,
        // ... other properties
        "is_read_only": false, 
        // ... other properties
    }
}