1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-11-26 06:07:16 +00:00

Merge pull request #72 from mavolin/70-endpoint

Discord: fix wrong URL endpoint
This commit is contained in:
diamondburned 2020-05-15 12:16:22 -07:00 committed by GitHub
commit aa99f50b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -84,4 +84,4 @@ func (c *Client) CreatePrivateChannel(recipientID discord.Snowflake) (*discord.C
func (c *Client) UserConnections() ([]discord.Connection, error) { func (c *Client) UserConnections() ([]discord.Connection, error) {
var conn []discord.Connection var conn []discord.Connection
return conn, c.RequestJSON(&conn, "GET", EndpointMe+"/connections") return conn, c.RequestJSON(&conn, "GET", EndpointMe+"/connections")
} }

View file

@ -92,7 +92,7 @@ func (g Guild) SplashURL() string {
return "" return ""
} }
return "https://cdn.discordapp.com/banners/" + return "https://cdn.discordapp.com/splashes/" +
g.ID.String() + "/" + g.Splash + ".png" g.ID.String() + "/" + g.Splash + ".png"
} }