mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-30 10:43:30 +00:00
Moved misc packages to internal
This commit is contained in:
parent
03d226e23d
commit
127c636310
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
|
||||
"github.com/diamondburned/arikawa/api/rate"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -2,8 +2,8 @@ package api
|
|||
|
||||
import (
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
)
|
||||
|
||||
const EndpointChannels = Endpoint + "channels/"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
)
|
||||
|
||||
// EmojiAPI is a special format that the API wants.
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"github.com/diamondburned/arikawa/discord" // for clarity
|
||||
d "github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
)
|
||||
|
||||
const EndpointGuilds = Endpoint + "guilds/"
|
||||
|
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
)
|
||||
|
||||
const EndpointInvites = Endpoint + "invites/"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"io"
|
||||
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
)
|
||||
|
||||
// React adds a reaction to the message. This requires READ_MESSAGE_HISTORY (and
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
)
|
||||
|
||||
const EndpointUsers = Endpoint + "users/"
|
||||
|
|
|
@ -15,9 +15,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/diamondburned/arikawa/api"
|
||||
"github.com/diamondburned/arikawa/httputil"
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/wsutil"
|
||||
"github.com/diamondburned/arikawa/internal/httputil"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
"github.com/diamondburned/arikawa/internal/wsutil"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/wsutil"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
"github.com/diamondburned/arikawa/internal/wsutil"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
)
|
||||
|
||||
type Client struct {
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
)
|
||||
|
||||
type RequestOption func(*http.Request) error
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
"github.com/pkg/errors"
|
||||
"nhooyr.io/websocket"
|
||||
)
|
|
@ -6,7 +6,7 @@ import (
|
|||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
"github.com/pkg/errors"
|
||||
"golang.org/x/time/rate"
|
||||
)
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
"github.com/diamondburned/arikawa/api"
|
||||
"github.com/diamondburned/arikawa/gateway"
|
||||
"github.com/diamondburned/arikawa/json"
|
||||
"github.com/diamondburned/arikawa/internal/json"
|
||||
)
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue