mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-05-22 23:31:06 +00:00
Fixed package header pointing to sourcehut instead of GitHub
This commit is contained in:
parent
e41a2c7c42
commit
b77d5f20da
|
@ -3,7 +3,7 @@ package api
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.sr.ht/~diamondburned/arikawa/httputil"
|
"github.com/diamondburned/arikawa/httputil"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.sr.ht/~diamondburned/arikawa/discord"
|
"github.com/diamondburned/arikawa/discord"
|
||||||
"git.sr.ht/~diamondburned/arikawa/httputil"
|
"github.com/diamondburned/arikawa/httputil"
|
||||||
"git.sr.ht/~diamondburned/arikawa/json"
|
"github.com/diamondburned/arikawa/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
const EndpointChannels = Endpoint + "channels/"
|
const EndpointChannels = Endpoint + "channels/"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.sr.ht/~diamondburned/arikawa/discord"
|
"github.com/diamondburned/arikawa/discord"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EmojiAPI is a special format that the API wants.
|
// EmojiAPI is a special format that the API wants.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.sr.ht/~diamondburned/arikawa/discord"
|
"github.com/diamondburned/arikawa/discord"
|
||||||
)
|
)
|
||||||
|
|
||||||
const EndpointInvites = Endpoint + "invites/"
|
const EndpointInvites = Endpoint + "invites/"
|
||||||
|
|
|
@ -3,8 +3,8 @@ package api
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"git.sr.ht/~diamondburned/arikawa/discord"
|
"github.com/diamondburned/arikawa/discord"
|
||||||
"git.sr.ht/~diamondburned/arikawa/httputil"
|
"github.com/diamondburned/arikawa/httputil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.sr.ht/~diamondburned/arikawa/discord"
|
"github.com/diamondburned/arikawa/discord"
|
||||||
"git.sr.ht/~diamondburned/arikawa/httputil"
|
"github.com/diamondburned/arikawa/httputil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// React adds a reaction to the message. This requires READ_MESSAGE_HISTORY (and
|
// React adds a reaction to the message. This requires READ_MESSAGE_HISTORY (and
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.sr.ht/~diamondburned/arikawa/discord"
|
"github.com/diamondburned/arikawa/discord"
|
||||||
"git.sr.ht/~diamondburned/arikawa/json"
|
"github.com/diamondburned/arikawa/json"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module git.sr.ht/~diamondburned/arikawa
|
module github.com/diamondburned/arikawa
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.sr.ht/~diamondburned/arikawa/json"
|
"github.com/diamondburned/arikawa/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.sr.ht/~diamondburned/arikawa/json"
|
"github.com/diamondburned/arikawa/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RequestOption func(*http.Request) error
|
type RequestOption func(*http.Request) error
|
||||||
|
|
Loading…
Reference in a new issue