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) {
var conn []discord.Connection
return conn, c.RequestJSON(&conn, "GET", EndpointMe+"/connections")
}
}

View File

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