From 850df46cc64a0bd752e8767c19ee8681c645929a Mon Sep 17 00:00:00 2001 From: Manjish Date: Fri, 13 Sep 2024 17:17:53 +0545 Subject: [PATCH 1/4] fix: Updated RichTextInputBlockElement InitialValue data type --- block_element.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_element.go b/block_element.go index a2b755be2..64866b9d5 100644 --- a/block_element.go +++ b/block_element.go @@ -527,7 +527,7 @@ type RichTextInputBlockElement struct { Type MessageElementType `json:"type"` ActionID string `json:"action_id,omitempty"` Placeholder *TextBlockObject `json:"placeholder,omitempty"` - InitialValue string `json:"initial_value,omitempty"` + InitialValue *RichTextBlock `json:"initial_value,omitempty"` DispatchActionConfig *DispatchActionConfig `json:"dispatch_action_config,omitempty"` FocusOnLoad bool `json:"focus_on_load,omitempty"` } From ca8b404a00aea440c55436d30cf15eb02c14570a Mon Sep 17 00:00:00 2001 From: Manjish Date: Mon, 16 Sep 2024 12:29:24 +0545 Subject: [PATCH 2/4] chore: updated module names --- chat.go | 2 +- errors.go | 2 +- examples/blocks/blocks.go | 2 +- examples/buttons/buttons.go | 2 +- examples/connparams/connparams.go | 2 +- examples/conversation_history/conversation_history.go | 2 +- examples/dialog/dialog.go | 2 +- examples/eventsapi/events.go | 4 ++-- examples/files/files.go | 2 +- examples/files_remote/files_remote.go | 2 +- examples/manifests/manifest.go | 2 +- examples/messages/messages.go | 2 +- examples/modal/modal.go | 2 +- examples/modal_users/users.go | 2 +- examples/pagination/pagination.go | 2 +- examples/pins/pins.go | 2 +- examples/reactions/reactions.go | 2 +- examples/remotefiles/remotefiles.go | 2 +- examples/slash/slash.go | 2 +- examples/socketmode/socketmode.go | 6 +++--- examples/socketmode_handler/socketmode_handler.go | 6 +++--- examples/stars/stars.go | 2 +- examples/team/team.go | 2 +- examples/tokens/tokens.go | 2 +- examples/users/users.go | 2 +- examples/webhooks/webhooks.go | 2 +- examples/websocket/websocket.go | 2 +- examples/websocket_respond/respond.go | 2 +- examples/workflow_step/handler.go | 4 ++-- examples/workflow_step/main.go | 2 +- examples/workflow_step/middleware.go | 2 +- go.mod | 2 +- misc_test.go | 2 +- slackevents/action_events.go | 2 +- slackevents/inner_events.go | 2 +- slackevents/parsers.go | 2 +- slackevents/parsers_test.go | 2 +- slacktest/data.go | 2 +- slacktest/errors.go | 2 +- slacktest/funcs.go | 2 +- slacktest/handlers.go | 2 +- slacktest/handlers_test.go | 2 +- slacktest/rtm_test.go | 2 +- slacktest/server.go | 2 +- slacktest/server_test.go | 2 +- slacktest/types.go | 2 +- socketmode/client.go | 2 +- socketmode/socket_mode_managed_conn.go | 8 ++++---- socketmode/socket_mode_managed_conn_test.go | 4 ++-- socketmode/socketmode.go | 2 +- socketmode/socketmode_handler.go | 4 ++-- socketmode/socketmode_handler_test.go | 4 ++-- socketmode/socketmode_test.go | 2 +- views_test.go | 2 +- websocket_managed_conn.go | 6 +++--- websocket_managed_conn_test.go | 4 ++-- 56 files changed, 71 insertions(+), 71 deletions(-) diff --git a/chat.go b/chat.go index 18f8e933d..f1975a7aa 100644 --- a/chat.go +++ b/chat.go @@ -10,7 +10,7 @@ import ( "regexp" "strconv" - "github.com/slack-go/slack/slackutilsx" + "github.com/wesionaryTEAM/slack/slackutilsx" ) const ( diff --git a/errors.go b/errors.go index 8be22a659..7aaf442b1 100644 --- a/errors.go +++ b/errors.go @@ -1,6 +1,6 @@ package slack -import "github.com/slack-go/slack/internal/errorsx" +import "github.com/wesionaryTEAM/slack/internal/errorsx" // Errors returned by various methods. const ( diff --git a/examples/blocks/blocks.go b/examples/blocks/blocks.go index 28d54d141..c2d526196 100644 --- a/examples/blocks/blocks.go +++ b/examples/blocks/blocks.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // The functions below mock the different templates slack has as examples on their website. diff --git a/examples/buttons/buttons.go b/examples/buttons/buttons.go index b5ef09c49..5045841af 100644 --- a/examples/buttons/buttons.go +++ b/examples/buttons/buttons.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/connparams/connparams.go b/examples/connparams/connparams.go index 2bf2dce1d..1da1aed83 100644 --- a/examples/connparams/connparams.go +++ b/examples/connparams/connparams.go @@ -6,7 +6,7 @@ import ( "net/url" "os" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/conversation_history/conversation_history.go b/examples/conversation_history/conversation_history.go index 569c12d68..668ceb785 100644 --- a/examples/conversation_history/conversation_history.go +++ b/examples/conversation_history/conversation_history.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/dialog/dialog.go b/examples/dialog/dialog.go index dc0d431c3..46eb3ad9c 100644 --- a/examples/dialog/dialog.go +++ b/examples/dialog/dialog.go @@ -8,7 +8,7 @@ import ( "net/url" "strings" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) var api = slack.New("YOUR_TOKEN") diff --git a/examples/eventsapi/events.go b/examples/eventsapi/events.go index b3bb70ab4..e5c24e9c3 100644 --- a/examples/eventsapi/events.go +++ b/examples/eventsapi/events.go @@ -7,8 +7,8 @@ import ( "net/http" "os" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slackevents" ) // You more than likely want your "Bot User OAuth Access Token" which starts with "xoxb-" diff --git a/examples/files/files.go b/examples/files/files.go index 0eb136a50..3b3f9d5fd 100644 --- a/examples/files/files.go +++ b/examples/files/files.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/files_remote/files_remote.go b/examples/files_remote/files_remote.go index 60bcfa967..00c178fbe 100644 --- a/examples/files_remote/files_remote.go +++ b/examples/files_remote/files_remote.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/manifests/manifest.go b/examples/manifests/manifest.go index bfcfa9cab..c5b717746 100644 --- a/examples/manifests/manifest.go +++ b/examples/manifests/manifest.go @@ -2,7 +2,7 @@ package manifests import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // createManifest programmatically creates a Slack app manifest diff --git a/examples/messages/messages.go b/examples/messages/messages.go index dd7f02da0..c32f1242e 100644 --- a/examples/messages/messages.go +++ b/examples/messages/messages.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/modal/modal.go b/examples/modal/modal.go index 13115a826..bd38af10c 100644 --- a/examples/modal/modal.go +++ b/examples/modal/modal.go @@ -18,7 +18,7 @@ import ( "io" "net/http" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" "time" ) diff --git a/examples/modal_users/users.go b/examples/modal_users/users.go index 578ee51f6..f050c2b4b 100644 --- a/examples/modal_users/users.go +++ b/examples/modal_users/users.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // An example how to open a modal with different kinds of input fields diff --git a/examples/pagination/pagination.go b/examples/pagination/pagination.go index 265910137..6cb25d031 100644 --- a/examples/pagination/pagination.go +++ b/examples/pagination/pagination.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func getAllUserUIDs(ctx context.Context, client *slack.Client, pageSize int) ([]string, error) { diff --git a/examples/pins/pins.go b/examples/pins/pins.go index 55158cb33..d4c0e0610 100644 --- a/examples/pins/pins.go +++ b/examples/pins/pins.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // WARNING: This example is destructive in the sense that it create a channel called testpinning diff --git a/examples/reactions/reactions.go b/examples/reactions/reactions.go index 4e19f508a..8d63098ea 100644 --- a/examples/reactions/reactions.go +++ b/examples/reactions/reactions.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/remotefiles/remotefiles.go b/examples/remotefiles/remotefiles.go index 53569e19c..513534fe8 100644 --- a/examples/remotefiles/remotefiles.go +++ b/examples/remotefiles/remotefiles.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/slash/slash.go b/examples/slash/slash.go index e35ab10a8..b19dbfd2c 100644 --- a/examples/slash/slash.go +++ b/examples/slash/slash.go @@ -7,7 +7,7 @@ import ( "io" "net/http" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/socketmode/socketmode.go b/examples/socketmode/socketmode.go index 1490a932b..cee2b5791 100644 --- a/examples/socketmode/socketmode.go +++ b/examples/socketmode/socketmode.go @@ -6,10 +6,10 @@ import ( "os" "strings" - "github.com/slack-go/slack/socketmode" + "github.com/wesionaryTEAM/slack/socketmode" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slackevents" ) func main() { diff --git a/examples/socketmode_handler/socketmode_handler.go b/examples/socketmode_handler/socketmode_handler.go index 221c3ea23..062402ef4 100644 --- a/examples/socketmode_handler/socketmode_handler.go +++ b/examples/socketmode_handler/socketmode_handler.go @@ -6,10 +6,10 @@ import ( "os" "strings" - "github.com/slack-go/slack/slackevents" - "github.com/slack-go/slack/socketmode" + "github.com/wesionaryTEAM/slack/slackevents" + "github.com/wesionaryTEAM/slack/socketmode" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/stars/stars.go b/examples/stars/stars.go index cc3f9bacb..94b6b929f 100644 --- a/examples/stars/stars.go +++ b/examples/stars/stars.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/team/team.go b/examples/team/team.go index cba71aa74..6e2a53b97 100644 --- a/examples/team/team.go +++ b/examples/team/team.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/tokens/tokens.go b/examples/tokens/tokens.go index 63d46d25f..b1d639805 100644 --- a/examples/tokens/tokens.go +++ b/examples/tokens/tokens.go @@ -2,7 +2,7 @@ package tokens import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/users/users.go b/examples/users/users.go index d6669b18b..e57402822 100644 --- a/examples/users/users.go +++ b/examples/users/users.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/webhooks/webhooks.go b/examples/webhooks/webhooks.go index 7fa5edea9..626e9dee8 100644 --- a/examples/webhooks/webhooks.go +++ b/examples/webhooks/webhooks.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/websocket/websocket.go b/examples/websocket/websocket.go index 96e110e39..63419cc42 100644 --- a/examples/websocket/websocket.go +++ b/examples/websocket/websocket.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/websocket_respond/respond.go b/examples/websocket_respond/respond.go index eed3fa834..d5a4367b9 100644 --- a/examples/websocket_respond/respond.go +++ b/examples/websocket_respond/respond.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func main() { diff --git a/examples/workflow_step/handler.go b/examples/workflow_step/handler.go index d0eee101f..4e7076c86 100644 --- a/examples/workflow_step/handler.go +++ b/examples/workflow_step/handler.go @@ -9,8 +9,8 @@ import ( "net/url" "time" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slackevents" ) const ( diff --git a/examples/workflow_step/main.go b/examples/workflow_step/main.go index 45494d086..bd8b9a358 100644 --- a/examples/workflow_step/main.go +++ b/examples/workflow_step/main.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) type ( diff --git a/examples/workflow_step/middleware.go b/examples/workflow_step/middleware.go index 6fe826910..7c8b2406f 100644 --- a/examples/workflow_step/middleware.go +++ b/examples/workflow_step/middleware.go @@ -5,7 +5,7 @@ import ( "io" "net/http" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func (v *SecretsVerifierMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/go.mod b/go.mod index 5cc8e1a7e..ee9cca972 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/slack-go/slack +module github.com/wesionaryTEAM/slack go 1.16 diff --git a/misc_test.go b/misc_test.go index 637cb77fb..90d02bfca 100644 --- a/misc_test.go +++ b/misc_test.go @@ -8,7 +8,7 @@ import ( "sync" "testing" - "github.com/slack-go/slack/slackutilsx" + "github.com/wesionaryTEAM/slack/slackutilsx" ) var ( diff --git a/slackevents/action_events.go b/slackevents/action_events.go index c6016f107..4a0c388da 100644 --- a/slackevents/action_events.go +++ b/slackevents/action_events.go @@ -3,7 +3,7 @@ package slackevents import ( "encoding/json" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) type MessageActionResponse struct { diff --git a/slackevents/inner_events.go b/slackevents/inner_events.go index 8f8effaae..78b48c125 100644 --- a/slackevents/inner_events.go +++ b/slackevents/inner_events.go @@ -3,7 +3,7 @@ package slackevents import ( - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // EventsAPIInnerEvent the inner event of a EventsAPI event_callback Event. diff --git a/slackevents/parsers.go b/slackevents/parsers.go index 9e8c22b7f..74284dae0 100644 --- a/slackevents/parsers.go +++ b/slackevents/parsers.go @@ -7,7 +7,7 @@ import ( "fmt" "reflect" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // eventsMap checks both slack.EventsMapping and diff --git a/slackevents/parsers_test.go b/slackevents/parsers_test.go index 2e2b63401..29a9a657e 100644 --- a/slackevents/parsers_test.go +++ b/slackevents/parsers_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func TestParserOuterCallBackEvent(t *testing.T) { diff --git a/slacktest/data.go b/slacktest/data.go index 31d9a08f9..6473587f3 100644 --- a/slacktest/data.go +++ b/slacktest/data.go @@ -3,7 +3,7 @@ package slacktest import ( "fmt" - slack "github.com/slack-go/slack" + slack "github.com/wesionaryTEAM/slack" ) const defaultBotName = "TestSlackBot" diff --git a/slacktest/errors.go b/slacktest/errors.go index ec0a9d675..9be2bad3f 100644 --- a/slacktest/errors.go +++ b/slacktest/errors.go @@ -1,7 +1,7 @@ package slacktest import ( - "github.com/slack-go/slack/internal/errorsx" + "github.com/wesionaryTEAM/slack/internal/errorsx" ) const ( diff --git a/slacktest/funcs.go b/slacktest/funcs.go index d083af2b5..ddbdf24f1 100644 --- a/slacktest/funcs.go +++ b/slacktest/funcs.go @@ -8,7 +8,7 @@ import ( websocket "github.com/gorilla/websocket" - slack "github.com/slack-go/slack" + slack "github.com/wesionaryTEAM/slack" ) func (sts *Server) queueForWebsocket(s, hubname string) { diff --git a/slacktest/handlers.go b/slacktest/handlers.go index 22c1680f6..e8b588cad 100644 --- a/slacktest/handlers.go +++ b/slacktest/handlers.go @@ -12,7 +12,7 @@ import ( websocket "github.com/gorilla/websocket" - slack "github.com/slack-go/slack" + slack "github.com/wesionaryTEAM/slack" ) func contextHandler(server *Server, next http.HandlerFunc) http.Handler { diff --git a/slacktest/handlers_test.go b/slacktest/handlers_test.go index 8ccb704cd..14156bd4c 100644 --- a/slacktest/handlers_test.go +++ b/slacktest/handlers_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - slack "github.com/slack-go/slack" + slack "github.com/wesionaryTEAM/slack" ) func TestAuthTestHandler(t *testing.T) { diff --git a/slacktest/rtm_test.go b/slacktest/rtm_test.go index 4beab76c3..b7d24cf9b 100644 --- a/slacktest/rtm_test.go +++ b/slacktest/rtm_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func TestRTMInfo(t *testing.T) { diff --git a/slacktest/server.go b/slacktest/server.go index 6d9849451..03ea8b1db 100644 --- a/slacktest/server.go +++ b/slacktest/server.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "time" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func newMessageChannels() *messageChannels { diff --git a/slacktest/server_test.go b/slacktest/server_test.go index 45f620858..4573b67a0 100644 --- a/slacktest/server_test.go +++ b/slacktest/server_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) func TestDefaultNewServer(t *testing.T) { diff --git a/slacktest/types.go b/slacktest/types.go index 4c90ed9ba..503578dde 100644 --- a/slacktest/types.go +++ b/slacktest/types.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "sync" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) type contextKey string diff --git a/socketmode/client.go b/socketmode/client.go index 8fd0b9871..582a9e1b7 100644 --- a/socketmode/client.go +++ b/socketmode/client.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" "github.com/gorilla/websocket" ) diff --git a/socketmode/socket_mode_managed_conn.go b/socketmode/socket_mode_managed_conn.go index b94456f49..1332e3723 100644 --- a/socketmode/socket_mode_managed_conn.go +++ b/socketmode/socket_mode_managed_conn.go @@ -13,10 +13,10 @@ import ( "github.com/gorilla/websocket" - "github.com/slack-go/slack" - "github.com/slack-go/slack/internal/backoff" - "github.com/slack-go/slack/internal/timex" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/internal/backoff" + "github.com/wesionaryTEAM/slack/internal/timex" + "github.com/wesionaryTEAM/slack/slackevents" ) // Run is a blocking function that connects the Slack Socket Mode API and handles all incoming diff --git a/socketmode/socket_mode_managed_conn_test.go b/socketmode/socket_mode_managed_conn_test.go index 542ccdb45..1e6a2b989 100644 --- a/socketmode/socket_mode_managed_conn_test.go +++ b/socketmode/socket_mode_managed_conn_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slacktest" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slacktest" "github.com/stretchr/testify/assert" ) diff --git a/socketmode/socketmode.go b/socketmode/socketmode.go index 6ca8f487c..32a8fce26 100644 --- a/socketmode/socketmode.go +++ b/socketmode/socketmode.go @@ -8,7 +8,7 @@ import ( "github.com/gorilla/websocket" - "github.com/slack-go/slack" + "github.com/wesionaryTEAM/slack" ) // EventType is the type of events that are emitted by scoketmode.Client. diff --git a/socketmode/socketmode_handler.go b/socketmode/socketmode_handler.go index 0cfe7555d..e6ad836ee 100644 --- a/socketmode/socketmode_handler.go +++ b/socketmode/socketmode_handler.go @@ -2,8 +2,8 @@ package socketmode import ( "context" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slackevents" ) type SocketmodeHandler struct { diff --git a/socketmode/socketmode_handler_test.go b/socketmode/socketmode_handler_test.go index 623e15ef9..2f85151f1 100644 --- a/socketmode/socketmode_handler_test.go +++ b/socketmode/socketmode_handler_test.go @@ -7,8 +7,8 @@ import ( "runtime" "testing" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slackevents" ) func init_SocketmodeHandler() *SocketmodeHandler { diff --git a/socketmode/socketmode_test.go b/socketmode/socketmode_test.go index 5fadea8f4..fb5967501 100644 --- a/socketmode/socketmode_test.go +++ b/socketmode/socketmode_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/slack-go/slack/slackevents" + "github.com/wesionaryTEAM/slack/slackevents" ) const ( diff --git a/views_test.go b/views_test.go index 5908737f8..bf565427c 100644 --- a/views_test.go +++ b/views_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/slack-go/slack/internal/errorsx" + "github.com/wesionaryTEAM/slack/internal/errorsx" ) var dummySlackErr = errorsx.String("dummy_error_from_slack") diff --git a/websocket_managed_conn.go b/websocket_managed_conn.go index f107b2a47..ce161d518 100644 --- a/websocket_managed_conn.go +++ b/websocket_managed_conn.go @@ -11,9 +11,9 @@ import ( "github.com/gorilla/websocket" - "github.com/slack-go/slack/internal/backoff" - "github.com/slack-go/slack/internal/errorsx" - "github.com/slack-go/slack/internal/timex" + "github.com/wesionaryTEAM/slack/internal/backoff" + "github.com/wesionaryTEAM/slack/internal/errorsx" + "github.com/wesionaryTEAM/slack/internal/timex" ) // UnmappedError represents error occurred when there is no mapping between given event name diff --git a/websocket_managed_conn_test.go b/websocket_managed_conn_test.go index c7a8b7034..ed0c2ce23 100644 --- a/websocket_managed_conn_test.go +++ b/websocket_managed_conn_test.go @@ -12,8 +12,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/slack-go/slack" - "github.com/slack-go/slack/slacktest" + "github.com/wesionaryTEAM/slack" + "github.com/wesionaryTEAM/slack/slacktest" ) const ( From c4d92ee278bb5bef1ca5760c53a46a308afe2bca Mon Sep 17 00:00:00 2001 From: Manjish Date: Wed, 18 Sep 2024 10:03:12 +0545 Subject: [PATCH 3/4] chore:revert module name --- chat.go | 2 +- errors.go | 2 +- examples/blocks/blocks.go | 2 +- examples/buttons/buttons.go | 2 +- examples/connparams/connparams.go | 2 +- examples/conversation_history/conversation_history.go | 2 +- examples/dialog/dialog.go | 2 +- examples/eventsapi/events.go | 4 ++-- examples/files/files.go | 2 +- examples/files_remote/files_remote.go | 2 +- examples/manifests/manifest.go | 2 +- examples/messages/messages.go | 2 +- examples/modal/modal.go | 2 +- examples/modal_users/users.go | 2 +- examples/pagination/pagination.go | 2 +- examples/pins/pins.go | 2 +- examples/reactions/reactions.go | 2 +- examples/remotefiles/remotefiles.go | 2 +- examples/slash/slash.go | 2 +- examples/socketmode/socketmode.go | 6 +++--- examples/socketmode_handler/socketmode_handler.go | 6 +++--- examples/stars/stars.go | 2 +- examples/team/team.go | 2 +- examples/tokens/tokens.go | 2 +- examples/users/users.go | 2 +- examples/webhooks/webhooks.go | 2 +- examples/websocket/websocket.go | 2 +- examples/websocket_respond/respond.go | 2 +- examples/workflow_step/handler.go | 4 ++-- examples/workflow_step/main.go | 2 +- examples/workflow_step/middleware.go | 2 +- go.mod | 2 +- misc_test.go | 2 +- slackevents/action_events.go | 2 +- slackevents/inner_events.go | 2 +- slackevents/parsers.go | 2 +- slackevents/parsers_test.go | 2 +- slacktest/data.go | 2 +- slacktest/errors.go | 2 +- slacktest/funcs.go | 2 +- slacktest/handlers.go | 2 +- slacktest/handlers_test.go | 2 +- slacktest/rtm_test.go | 2 +- slacktest/server.go | 2 +- slacktest/server_test.go | 2 +- slacktest/types.go | 2 +- socketmode/client.go | 2 +- socketmode/socket_mode_managed_conn.go | 8 ++++---- socketmode/socket_mode_managed_conn_test.go | 4 ++-- socketmode/socketmode.go | 2 +- socketmode/socketmode_handler.go | 4 ++-- socketmode/socketmode_handler_test.go | 4 ++-- socketmode/socketmode_test.go | 2 +- views_test.go | 2 +- websocket_managed_conn.go | 6 +++--- websocket_managed_conn_test.go | 4 ++-- 56 files changed, 71 insertions(+), 71 deletions(-) diff --git a/chat.go b/chat.go index f1975a7aa..18f8e933d 100644 --- a/chat.go +++ b/chat.go @@ -10,7 +10,7 @@ import ( "regexp" "strconv" - "github.com/wesionaryTEAM/slack/slackutilsx" + "github.com/slack-go/slack/slackutilsx" ) const ( diff --git a/errors.go b/errors.go index 7aaf442b1..8be22a659 100644 --- a/errors.go +++ b/errors.go @@ -1,6 +1,6 @@ package slack -import "github.com/wesionaryTEAM/slack/internal/errorsx" +import "github.com/slack-go/slack/internal/errorsx" // Errors returned by various methods. const ( diff --git a/examples/blocks/blocks.go b/examples/blocks/blocks.go index c2d526196..28d54d141 100644 --- a/examples/blocks/blocks.go +++ b/examples/blocks/blocks.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // The functions below mock the different templates slack has as examples on their website. diff --git a/examples/buttons/buttons.go b/examples/buttons/buttons.go index 5045841af..b5ef09c49 100644 --- a/examples/buttons/buttons.go +++ b/examples/buttons/buttons.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/connparams/connparams.go b/examples/connparams/connparams.go index 1da1aed83..2bf2dce1d 100644 --- a/examples/connparams/connparams.go +++ b/examples/connparams/connparams.go @@ -6,7 +6,7 @@ import ( "net/url" "os" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/conversation_history/conversation_history.go b/examples/conversation_history/conversation_history.go index 668ceb785..569c12d68 100644 --- a/examples/conversation_history/conversation_history.go +++ b/examples/conversation_history/conversation_history.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/dialog/dialog.go b/examples/dialog/dialog.go index 46eb3ad9c..dc0d431c3 100644 --- a/examples/dialog/dialog.go +++ b/examples/dialog/dialog.go @@ -8,7 +8,7 @@ import ( "net/url" "strings" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) var api = slack.New("YOUR_TOKEN") diff --git a/examples/eventsapi/events.go b/examples/eventsapi/events.go index e5c24e9c3..b3bb70ab4 100644 --- a/examples/eventsapi/events.go +++ b/examples/eventsapi/events.go @@ -7,8 +7,8 @@ import ( "net/http" "os" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slackevents" ) // You more than likely want your "Bot User OAuth Access Token" which starts with "xoxb-" diff --git a/examples/files/files.go b/examples/files/files.go index 3b3f9d5fd..0eb136a50 100644 --- a/examples/files/files.go +++ b/examples/files/files.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/files_remote/files_remote.go b/examples/files_remote/files_remote.go index 00c178fbe..60bcfa967 100644 --- a/examples/files_remote/files_remote.go +++ b/examples/files_remote/files_remote.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/manifests/manifest.go b/examples/manifests/manifest.go index c5b717746..bfcfa9cab 100644 --- a/examples/manifests/manifest.go +++ b/examples/manifests/manifest.go @@ -2,7 +2,7 @@ package manifests import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // createManifest programmatically creates a Slack app manifest diff --git a/examples/messages/messages.go b/examples/messages/messages.go index c32f1242e..dd7f02da0 100644 --- a/examples/messages/messages.go +++ b/examples/messages/messages.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/modal/modal.go b/examples/modal/modal.go index bd38af10c..13115a826 100644 --- a/examples/modal/modal.go +++ b/examples/modal/modal.go @@ -18,7 +18,7 @@ import ( "io" "net/http" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" "time" ) diff --git a/examples/modal_users/users.go b/examples/modal_users/users.go index f050c2b4b..578ee51f6 100644 --- a/examples/modal_users/users.go +++ b/examples/modal_users/users.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // An example how to open a modal with different kinds of input fields diff --git a/examples/pagination/pagination.go b/examples/pagination/pagination.go index 6cb25d031..265910137 100644 --- a/examples/pagination/pagination.go +++ b/examples/pagination/pagination.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func getAllUserUIDs(ctx context.Context, client *slack.Client, pageSize int) ([]string, error) { diff --git a/examples/pins/pins.go b/examples/pins/pins.go index d4c0e0610..55158cb33 100644 --- a/examples/pins/pins.go +++ b/examples/pins/pins.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // WARNING: This example is destructive in the sense that it create a channel called testpinning diff --git a/examples/reactions/reactions.go b/examples/reactions/reactions.go index 8d63098ea..4e19f508a 100644 --- a/examples/reactions/reactions.go +++ b/examples/reactions/reactions.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/remotefiles/remotefiles.go b/examples/remotefiles/remotefiles.go index 513534fe8..53569e19c 100644 --- a/examples/remotefiles/remotefiles.go +++ b/examples/remotefiles/remotefiles.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/slash/slash.go b/examples/slash/slash.go index b19dbfd2c..e35ab10a8 100644 --- a/examples/slash/slash.go +++ b/examples/slash/slash.go @@ -7,7 +7,7 @@ import ( "io" "net/http" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/socketmode/socketmode.go b/examples/socketmode/socketmode.go index cee2b5791..1490a932b 100644 --- a/examples/socketmode/socketmode.go +++ b/examples/socketmode/socketmode.go @@ -6,10 +6,10 @@ import ( "os" "strings" - "github.com/wesionaryTEAM/slack/socketmode" + "github.com/slack-go/slack/socketmode" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slackevents" ) func main() { diff --git a/examples/socketmode_handler/socketmode_handler.go b/examples/socketmode_handler/socketmode_handler.go index 062402ef4..221c3ea23 100644 --- a/examples/socketmode_handler/socketmode_handler.go +++ b/examples/socketmode_handler/socketmode_handler.go @@ -6,10 +6,10 @@ import ( "os" "strings" - "github.com/wesionaryTEAM/slack/slackevents" - "github.com/wesionaryTEAM/slack/socketmode" + "github.com/slack-go/slack/slackevents" + "github.com/slack-go/slack/socketmode" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/stars/stars.go b/examples/stars/stars.go index 94b6b929f..cc3f9bacb 100644 --- a/examples/stars/stars.go +++ b/examples/stars/stars.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/team/team.go b/examples/team/team.go index 6e2a53b97..cba71aa74 100644 --- a/examples/team/team.go +++ b/examples/team/team.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/tokens/tokens.go b/examples/tokens/tokens.go index b1d639805..63d46d25f 100644 --- a/examples/tokens/tokens.go +++ b/examples/tokens/tokens.go @@ -2,7 +2,7 @@ package tokens import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/users/users.go b/examples/users/users.go index e57402822..d6669b18b 100644 --- a/examples/users/users.go +++ b/examples/users/users.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/webhooks/webhooks.go b/examples/webhooks/webhooks.go index 626e9dee8..7fa5edea9 100644 --- a/examples/webhooks/webhooks.go +++ b/examples/webhooks/webhooks.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/websocket/websocket.go b/examples/websocket/websocket.go index 63419cc42..96e110e39 100644 --- a/examples/websocket/websocket.go +++ b/examples/websocket/websocket.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/websocket_respond/respond.go b/examples/websocket_respond/respond.go index d5a4367b9..eed3fa834 100644 --- a/examples/websocket_respond/respond.go +++ b/examples/websocket_respond/respond.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func main() { diff --git a/examples/workflow_step/handler.go b/examples/workflow_step/handler.go index 4e7076c86..d0eee101f 100644 --- a/examples/workflow_step/handler.go +++ b/examples/workflow_step/handler.go @@ -9,8 +9,8 @@ import ( "net/url" "time" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slackevents" ) const ( diff --git a/examples/workflow_step/main.go b/examples/workflow_step/main.go index bd8b9a358..45494d086 100644 --- a/examples/workflow_step/main.go +++ b/examples/workflow_step/main.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) type ( diff --git a/examples/workflow_step/middleware.go b/examples/workflow_step/middleware.go index 7c8b2406f..6fe826910 100644 --- a/examples/workflow_step/middleware.go +++ b/examples/workflow_step/middleware.go @@ -5,7 +5,7 @@ import ( "io" "net/http" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func (v *SecretsVerifierMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/go.mod b/go.mod index ee9cca972..5cc8e1a7e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/wesionaryTEAM/slack +module github.com/slack-go/slack go 1.16 diff --git a/misc_test.go b/misc_test.go index 90d02bfca..637cb77fb 100644 --- a/misc_test.go +++ b/misc_test.go @@ -8,7 +8,7 @@ import ( "sync" "testing" - "github.com/wesionaryTEAM/slack/slackutilsx" + "github.com/slack-go/slack/slackutilsx" ) var ( diff --git a/slackevents/action_events.go b/slackevents/action_events.go index 4a0c388da..c6016f107 100644 --- a/slackevents/action_events.go +++ b/slackevents/action_events.go @@ -3,7 +3,7 @@ package slackevents import ( "encoding/json" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) type MessageActionResponse struct { diff --git a/slackevents/inner_events.go b/slackevents/inner_events.go index 78b48c125..8f8effaae 100644 --- a/slackevents/inner_events.go +++ b/slackevents/inner_events.go @@ -3,7 +3,7 @@ package slackevents import ( - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // EventsAPIInnerEvent the inner event of a EventsAPI event_callback Event. diff --git a/slackevents/parsers.go b/slackevents/parsers.go index 74284dae0..9e8c22b7f 100644 --- a/slackevents/parsers.go +++ b/slackevents/parsers.go @@ -7,7 +7,7 @@ import ( "fmt" "reflect" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // eventsMap checks both slack.EventsMapping and diff --git a/slackevents/parsers_test.go b/slackevents/parsers_test.go index 29a9a657e..2e2b63401 100644 --- a/slackevents/parsers_test.go +++ b/slackevents/parsers_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func TestParserOuterCallBackEvent(t *testing.T) { diff --git a/slacktest/data.go b/slacktest/data.go index 6473587f3..31d9a08f9 100644 --- a/slacktest/data.go +++ b/slacktest/data.go @@ -3,7 +3,7 @@ package slacktest import ( "fmt" - slack "github.com/wesionaryTEAM/slack" + slack "github.com/slack-go/slack" ) const defaultBotName = "TestSlackBot" diff --git a/slacktest/errors.go b/slacktest/errors.go index 9be2bad3f..ec0a9d675 100644 --- a/slacktest/errors.go +++ b/slacktest/errors.go @@ -1,7 +1,7 @@ package slacktest import ( - "github.com/wesionaryTEAM/slack/internal/errorsx" + "github.com/slack-go/slack/internal/errorsx" ) const ( diff --git a/slacktest/funcs.go b/slacktest/funcs.go index ddbdf24f1..d083af2b5 100644 --- a/slacktest/funcs.go +++ b/slacktest/funcs.go @@ -8,7 +8,7 @@ import ( websocket "github.com/gorilla/websocket" - slack "github.com/wesionaryTEAM/slack" + slack "github.com/slack-go/slack" ) func (sts *Server) queueForWebsocket(s, hubname string) { diff --git a/slacktest/handlers.go b/slacktest/handlers.go index e8b588cad..22c1680f6 100644 --- a/slacktest/handlers.go +++ b/slacktest/handlers.go @@ -12,7 +12,7 @@ import ( websocket "github.com/gorilla/websocket" - slack "github.com/wesionaryTEAM/slack" + slack "github.com/slack-go/slack" ) func contextHandler(server *Server, next http.HandlerFunc) http.Handler { diff --git a/slacktest/handlers_test.go b/slacktest/handlers_test.go index 14156bd4c..8ccb704cd 100644 --- a/slacktest/handlers_test.go +++ b/slacktest/handlers_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - slack "github.com/wesionaryTEAM/slack" + slack "github.com/slack-go/slack" ) func TestAuthTestHandler(t *testing.T) { diff --git a/slacktest/rtm_test.go b/slacktest/rtm_test.go index b7d24cf9b..4beab76c3 100644 --- a/slacktest/rtm_test.go +++ b/slacktest/rtm_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func TestRTMInfo(t *testing.T) { diff --git a/slacktest/server.go b/slacktest/server.go index 03ea8b1db..6d9849451 100644 --- a/slacktest/server.go +++ b/slacktest/server.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "time" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func newMessageChannels() *messageChannels { diff --git a/slacktest/server_test.go b/slacktest/server_test.go index 4573b67a0..45f620858 100644 --- a/slacktest/server_test.go +++ b/slacktest/server_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) func TestDefaultNewServer(t *testing.T) { diff --git a/slacktest/types.go b/slacktest/types.go index 503578dde..4c90ed9ba 100644 --- a/slacktest/types.go +++ b/slacktest/types.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "sync" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) type contextKey string diff --git a/socketmode/client.go b/socketmode/client.go index 582a9e1b7..8fd0b9871 100644 --- a/socketmode/client.go +++ b/socketmode/client.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" "github.com/gorilla/websocket" ) diff --git a/socketmode/socket_mode_managed_conn.go b/socketmode/socket_mode_managed_conn.go index 1332e3723..b94456f49 100644 --- a/socketmode/socket_mode_managed_conn.go +++ b/socketmode/socket_mode_managed_conn.go @@ -13,10 +13,10 @@ import ( "github.com/gorilla/websocket" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/internal/backoff" - "github.com/wesionaryTEAM/slack/internal/timex" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack" + "github.com/slack-go/slack/internal/backoff" + "github.com/slack-go/slack/internal/timex" + "github.com/slack-go/slack/slackevents" ) // Run is a blocking function that connects the Slack Socket Mode API and handles all incoming diff --git a/socketmode/socket_mode_managed_conn_test.go b/socketmode/socket_mode_managed_conn_test.go index 1e6a2b989..542ccdb45 100644 --- a/socketmode/socket_mode_managed_conn_test.go +++ b/socketmode/socket_mode_managed_conn_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slacktest" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slacktest" "github.com/stretchr/testify/assert" ) diff --git a/socketmode/socketmode.go b/socketmode/socketmode.go index 32a8fce26..6ca8f487c 100644 --- a/socketmode/socketmode.go +++ b/socketmode/socketmode.go @@ -8,7 +8,7 @@ import ( "github.com/gorilla/websocket" - "github.com/wesionaryTEAM/slack" + "github.com/slack-go/slack" ) // EventType is the type of events that are emitted by scoketmode.Client. diff --git a/socketmode/socketmode_handler.go b/socketmode/socketmode_handler.go index e6ad836ee..0cfe7555d 100644 --- a/socketmode/socketmode_handler.go +++ b/socketmode/socketmode_handler.go @@ -2,8 +2,8 @@ package socketmode import ( "context" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slackevents" ) type SocketmodeHandler struct { diff --git a/socketmode/socketmode_handler_test.go b/socketmode/socketmode_handler_test.go index 2f85151f1..623e15ef9 100644 --- a/socketmode/socketmode_handler_test.go +++ b/socketmode/socketmode_handler_test.go @@ -7,8 +7,8 @@ import ( "runtime" "testing" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slackevents" ) func init_SocketmodeHandler() *SocketmodeHandler { diff --git a/socketmode/socketmode_test.go b/socketmode/socketmode_test.go index fb5967501..5fadea8f4 100644 --- a/socketmode/socketmode_test.go +++ b/socketmode/socketmode_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/wesionaryTEAM/slack/slackevents" + "github.com/slack-go/slack/slackevents" ) const ( diff --git a/views_test.go b/views_test.go index bf565427c..5908737f8 100644 --- a/views_test.go +++ b/views_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/wesionaryTEAM/slack/internal/errorsx" + "github.com/slack-go/slack/internal/errorsx" ) var dummySlackErr = errorsx.String("dummy_error_from_slack") diff --git a/websocket_managed_conn.go b/websocket_managed_conn.go index ce161d518..f107b2a47 100644 --- a/websocket_managed_conn.go +++ b/websocket_managed_conn.go @@ -11,9 +11,9 @@ import ( "github.com/gorilla/websocket" - "github.com/wesionaryTEAM/slack/internal/backoff" - "github.com/wesionaryTEAM/slack/internal/errorsx" - "github.com/wesionaryTEAM/slack/internal/timex" + "github.com/slack-go/slack/internal/backoff" + "github.com/slack-go/slack/internal/errorsx" + "github.com/slack-go/slack/internal/timex" ) // UnmappedError represents error occurred when there is no mapping between given event name diff --git a/websocket_managed_conn_test.go b/websocket_managed_conn_test.go index ed0c2ce23..c7a8b7034 100644 --- a/websocket_managed_conn_test.go +++ b/websocket_managed_conn_test.go @@ -12,8 +12,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/wesionaryTEAM/slack" - "github.com/wesionaryTEAM/slack/slacktest" + "github.com/slack-go/slack" + "github.com/slack-go/slack/slacktest" ) const ( From 156daab70c38721653898e114f2878e431c5e6af Mon Sep 17 00:00:00 2001 From: Manjish Date: Thu, 19 Sep 2024 09:45:59 +0545 Subject: [PATCH 4/4] fix:linter issue --- block_element.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_element.go b/block_element.go index 64866b9d5..06bffe358 100644 --- a/block_element.go +++ b/block_element.go @@ -527,7 +527,7 @@ type RichTextInputBlockElement struct { Type MessageElementType `json:"type"` ActionID string `json:"action_id,omitempty"` Placeholder *TextBlockObject `json:"placeholder,omitempty"` - InitialValue *RichTextBlock `json:"initial_value,omitempty"` + InitialValue *RichTextBlock `json:"initial_value,omitempty"` DispatchActionConfig *DispatchActionConfig `json:"dispatch_action_config,omitempty"` FocusOnLoad bool `json:"focus_on_load,omitempty"` }