Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updated RichTextInputBlockElement InitialValue data type #1320

Merged
merged 4 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion block_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
2 changes: 1 addition & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"regexp"
"strconv"

"github.com/slack-go/slack/slackutilsx"
"github.com/wesionaryTEAM/slack/slackutilsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion examples/blocks/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/buttons/buttons.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/connparams/connparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"os"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/conversation_history/conversation_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/dialog/dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"strings"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

var api = slack.New("YOUR_TOKEN")
Expand Down
4 changes: 2 additions & 2 deletions examples/eventsapi/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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-"
Expand Down
2 changes: 1 addition & 1 deletion examples/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/files_remote/files_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/manifests/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package manifests

import (
"fmt"
"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

// createManifest programmatically creates a Slack app manifest
Expand Down
2 changes: 1 addition & 1 deletion examples/messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/modal/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"io"
"net/http"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/modal_users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/pagination/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion examples/pins/pins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/reactions/reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/remotefiles/remotefiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/slash/slash.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/socketmode/socketmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions examples/socketmode_handler/socketmode_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stars/stars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/tokens/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tokens

import (
"fmt"
"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/webhooks/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket_respond/respond.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/workflow_step/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion examples/workflow_step/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion examples/workflow_step/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/slack-go/slack
module github.com/wesionaryTEAM/slack

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/slack-go/slack/slackutilsx"
"github.com/wesionaryTEAM/slack/slackutilsx"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion slackevents/action_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackevents
import (
"encoding/json"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

type MessageActionResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"reflect"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

// eventsMap checks both slack.EventsMapping and
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/slack-go/slack"
"github.com/wesionaryTEAM/slack"
)

func TestParserOuterCallBackEvent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slacktest
import (
"fmt"

slack "github.com/slack-go/slack"
slack "github.com/wesionaryTEAM/slack"
)

const defaultBotName = "TestSlackBot"
Expand Down
2 changes: 1 addition & 1 deletion slacktest/errors.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package slacktest

import (
"github.com/slack-go/slack/internal/errorsx"
"github.com/wesionaryTEAM/slack/internal/errorsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion slacktest/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading