{"full_name":"slack-go/slack","owner":"slack-go","name":"slack","shard":"1","url":"https://github.com/slack-go/slack","description":"Slack API in Go","homepage":"https://pkg.go.dev/github.com/slack-go/slack","topics":["slack","go","golang"],"tag_pages":["go","golang","slack"],"language":"Go","license":"BSD-2-Clause","avatar":"https://avatars.githubusercontent.com/u/61079382?v=4","created_at":"2015-01-24T14:19:00Z","pushed_at":"2026-11-15T22:11:19Z","metrics":{"stars":4973,"forks":1203,"watchers":50,"issues":574,"prs":1113,"releases":79,"issues_open":0,"issues_closed":574,"prs_open":3,"prs_closed":204,"prs_merged":906,"discussions":31},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[4972,4972,4972,4972,4973,4973,4973],"forks":[1203,1203,1203,1203,1203,1203,1203],"watchers":[null,50,50,50,50,50,50],"issues_open":[null,0,0,0,0,0,0],"prs_open":[null,1,1,1,1,1,3]},"boards":{},"same_owner":[],"issues":[],"discussions":[{"number":1455,"title":"How do I get additional user properties?","comments":1,"category":"Q&A","created_at":"2025-07-01T00:27:07Z"},{"number":1454,"title":"socketmode_handler.go:47: Unexpected event type received: events_api","comments":2,"category":"Q&A","created_at":"2025-06-30T01:56:21Z"},{"number":1420,"title":"Not receiving response from button click","comments":1,"category":"Q&A","created_at":"2025-05-12T16:04:30Z"},{"number":1337,"title":"v0.15.0","comments":0,"category":"Announcements","created_at":"2024-10-14T17:37:58Z"},{"number":1335,"title":"GitHub Sponsors","comments":1,"category":"General","created_at":"2024-10-14T14:08:54Z"},{"number":1313,"title":"v0.14.0","comments":0,"category":"Announcements","created_at":"2024-08-15T17:22:50Z"},{"number":1305,"title":"v0.13.1","comments":0,"category":"Announcements","created_at":"2024-07-16T15:14:55Z"},{"number":1294,"title":"Any suggestions on a way to run local copies on each developers machine without conflict?","comments":1,"category":"Q&A","created_at":"2024-06-24T18:41:49Z"}],"latest_release":{"name":"v0.36.0","tag":"v0.36.0","published_at":"2026-11-14T14:42:49Z","body":"Thanks again to Michal (@akfaew) for another round of fixes in this release.\n\n## Breaking changes — read before upgrading\n\n> [!WARNING]\n> **v0.36.0 includes breaking API, decoding, and serialization changes.**\n>\n> **Your code may fail to compile. Code that still compiles may decode or serialize\n> differently. Events API URL-verification responses now use a different JSON key.**\n>\n> Review every item below before upgrading, including RTM and Events API handlers,\n> tests that build or compare event payloads, and code that decodes into reused values.\n\n### 1. RTM `group_rename` event types have changed\n\n- **`slack.GroupRenameEvent` gains `EventTimestamp`.** Positional struct literals no\n  longer compile. Use keyed literals, such as\n  `slack.GroupRenameEvent{Type: \"group_rename\", Group: info, Timestamp: ts}`.\n  `Timestamp` keeps its `ts` JSON key; the new `event_ts` key is omitted when empty.\n- **`slack.GroupRenameInfo.Created` is now `int64`.** Replace `Created: \"1360782804\"`\n  with `Created: 1360782804`. Parse input strings with `strconv.ParseInt(value, 10, 64)`,\n  and use `strconv.FormatInt(info.Created, 10)` where a string is still needed.\n  Marshaling now emits a JSON number, and decoding rejects quoted timestamps.\n\n### 2. URL-verification responses use a lowercase `challenge` key\n\n`slackevents.ChallengeResponse` now marshals as `{\"challenge\":\"...\"}` instead of\n`{\"Challenge\":\"...\"}`, matching Slack's documented response. **Assignments from\nuntagged anonymous structs no longer compile;** use\n`slackevents.ChallengeResponse{Challenge: value}` instead.\n\n### 3. `slackevents.CallRejectedEvent` is flattened\n\n- **Read fields directly from the event.** Replace `event.Event.CallID` with\n  `event.CallID`, and likewise for `Type`, `UserID`, `ChannelID`, and `ExternalUniqueID`.\n- **Envelope fields are removed.** `Token`, `TeamID`, `APIAppID`, `EventID`, and\n  `AuthedUsers` are gone. Decode full callback payloads with `slackevents.ParseEvent`\n  and read envelope metadata from the returned `EventsAPIEvent` and its\n  `*EventsAPICallbackEvent` data.\n- **`Type` is now `call_rejected`**, not the outer `event_callback`. Marshaling\n  produces the inner event object instead of the complete callback envelope.\n\n### 4. Decoding into reused values replaces previous contents\n\n- **`ActionCallbacks`, `ContextElements`, and `BlockObjects` replace previous entries\n  instead of appending.** Decoding `[A, B]` followed by `[C]` now leaves `[C]`; `[]` and\n  JSON `null` clear all entries. The legacy `{\"elements\":null}` wrapper remains a no-op\n  for `ContextElements`. To accumulate entries, decode separately and append the slices.\n- **`Accessory` and `SlackResponseErrors` replace all previous variants** on a\n  successful decode, instead of retaining fields from earlier decodes. JSON `null`\n  clears accessory variants; it remains a no-op for `SlackResponseErrors` and for the\n  legacy `{\"accessory\":null}` wrapper.\n\n**A failed decode may clear or partially replace the destination.** Do not use it\nafter a decoding error. To keep the previous value, decode into a separate value and\nassign it only after success.\n\n## Added\n\n- Add `AdminUsersSetAdmin`, `AdminUsersSetOwner`, and `AdminUsersSetRegular`, with\n  `Context` variants, to change a user's account type on a workspace or Enterprise org.\n  With an org ID, `admin.users.setRegular` also removes the user's Workspace Owner\n  roles ([Slack changelog](https://docs.slack.dev/changelog/2026/11/13/admin-users-set-regular-org-demotion)).\n  The existing `SetRegular` still calls the legacy `users.admin.setRegular` endpoint.\n- Add `AdminUsersGetExpiration` and `AdminUsersSetExpiration`, with `Context`\n  variants, to read and set when a guest account is disabled.\n  `AdminUsersGetExpirationOptionTargetTeam` and `AdminUsersSetExpirationOptionTeamID`\n  select a workspace in the org. Slack API reference:\n  [`admin.users.getExpiration`](https://docs.slack.dev/reference/methods/admin.users.getExpiration),\n  [`admin.users.setExpiration`","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}