summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/slack-go/slack/stars.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/slack-go/slack/stars.go')
-rw-r--r--vendor/github.com/slack-go/slack/stars.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/vendor/github.com/slack-go/slack/stars.go b/vendor/github.com/slack-go/slack/stars.go
index 52967604..6e0ebbe3 100644
--- a/vendor/github.com/slack-go/slack/stars.go
+++ b/vendor/github.com/slack-go/slack/stars.go
@@ -130,17 +130,18 @@ func (api *Client) ListStarsContext(ctx context.Context, params StarsParameters)
// GetStarred returns a list of StarredItem items.
//
// The user then has to iterate over them and figure out what they should
-// be looking at according to what is in the Type.
-// for _, item := range items {
-// switch c.Type {
-// case "file_comment":
-// log.Println(c.Comment)
-// case "file":
-// ...
+// be looking at according to what is in the Type:
+//
+// for _, item := range items {
+// switch c.Type {
+// case "file_comment":
+// log.Println(c.Comment)
+// case "file":
+// ...
+// }
//
-// }
// This function still exists to maintain backwards compatibility.
-// I exposed it as returning []StarredItem, so it shall stay as StarredItem
+// I exposed it as returning []StarredItem, so it shall stay as StarredItem.
func (api *Client) GetStarred(params StarsParameters) ([]StarredItem, *Paging, error) {
return api.GetStarredContext(context.Background(), params)
}