1
0
Fork 0
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:
diamondburned 2020-01-15 10:32:54 -08:00
parent 03d226e23d
commit 127c636310
21 changed files with 20 additions and 20 deletions

View file

@ -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 (

View file

@ -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/"

View file

@ -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.

View file

@ -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/"

View file

@ -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/"

View file

@ -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"
)

View file

@ -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

View file

@ -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"
)

View file

@ -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/"

View file

@ -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"
)

View file

@ -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"
)

View file

@ -9,7 +9,7 @@ import (
"net/http"
"time"
"github.com/diamondburned/arikawa/json"
"github.com/diamondburned/arikawa/internal/json"
)
type Client struct {

View file

@ -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

View file

@ -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"
)

View file

@ -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"
)

View file

@ -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"
)
/*