From 86ba16d676d8f5573285a5c94893dbe63870fb91 Mon Sep 17 00:00:00 2001 From: John Reinstra Date: Thu, 26 May 2022 18:59:29 -0700 Subject: [PATCH 1/3] Add `Permalink` to Msg struct At least in the Slack list-stars method if not others, a permalink is included with each item returned. This permalink is not available via slack-go because it is not a field on the struct used to parse that response, so this change adds that missing field. --- messages.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/messages.go b/messages.go index 2cc31d5bf..1bcc2788a 100644 --- a/messages.go +++ b/messages.go @@ -131,6 +131,9 @@ type Msg struct { // Block type Message Blocks Blocks `json:"blocks,omitempty"` + + // permalink + Permalink string `json:"permalink,omitempty" } const ( From c473c5a08b8d4dc7a4324ff096f5a8e44cfda73c Mon Sep 17 00:00:00 2001 From: John Reinstra Date: Mon, 6 Jun 2022 13:06:07 -0700 Subject: [PATCH 2/3] Update messages.go Co-authored-by: Naoki Kanatani --- messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messages.go b/messages.go index 1bcc2788a..f7a35fe0f 100644 --- a/messages.go +++ b/messages.go @@ -133,7 +133,7 @@ type Msg struct { Blocks Blocks `json:"blocks,omitempty"` // permalink - Permalink string `json:"permalink,omitempty" + Permalink string `json:"permalink,omitempty"` } const ( From 1035b22de5b578fd4a5c26b937b93a6e477ee6a7 Mon Sep 17 00:00:00 2001 From: John Reinstra Date: Mon, 13 Jun 2022 19:41:58 -0700 Subject: [PATCH 3/3] Update messages.go Co-authored-by: Naoki Kanatani --- messages.go | 1 - 1 file changed, 1 deletion(-) diff --git a/messages.go b/messages.go index f7a35fe0f..1a3110e44 100644 --- a/messages.go +++ b/messages.go @@ -131,7 +131,6 @@ type Msg struct { // Block type Message Blocks Blocks `json:"blocks,omitempty"` - // permalink Permalink string `json:"permalink,omitempty"` }