bump go modules

This commit is contained in:
Dmitry Verkhoturov
2021-10-29 11:48:46 -05:00
committed by Umputun
parent 8818faf189
commit c852ea4834
92 changed files with 1801 additions and 9819 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func main() {
// If you set debugging, it will log all requests to the console
// Useful when encountering issues
// slack.New("YOUR_TOKEN_HERE", slack.OptionDebug(true))
groups, err := api.GetGroups(false)
groups, err := api.GetUserGroups(false)
if err != nil {
fmt.Printf("%s\n", err)
return
+1 -1
View File
@@ -3,7 +3,7 @@ package slack
// ContextBlock defines data that is used to display message context, which can
// include both images and text.
//
// More Information: https://api.slack.com/reference/messaging/blocks#actions
// More Information: https://api.slack.com/reference/messaging/blocks#context
type ContextBlock struct {
Type MessageBlockType `json:"type"`
BlockID string `json:"block_id,omitempty"`
+6
View File
@@ -53,6 +53,7 @@ type InteractionCallback struct {
APIAppID string `json:"api_app_id"`
BlockID string `json:"block_id"`
Container Container `json:"container"`
Enterprise Enterprise `json:"enterprise"`
DialogSubmissionCallback
ViewSubmissionCallback
ViewClosedCallback
@@ -128,6 +129,11 @@ type Container struct {
IsAppUnfurl bool `json:"is_app_unfurl"`
}
type Enterprise struct {
ID string `json:"id"`
Name string `json:"name"`
}
// ActionCallback is a convenience struct defined to allow dynamic unmarshalling of
// the "actions" value in Slack's JSON response, which varies depending on block type
type ActionCallbacks struct {