Don't really need seperate const block

This commit is contained in:
Bruce Marriner 2015-11-23 08:46:18 -06:00
parent 50f315d014
commit 141da94538

View file

@ -1,8 +1,8 @@
package discordgo
// Constants of all known Discord API Endpoints
// All known Discord endpoints.
// Please let me know if you know of any others.
const (
var (
STATUS = "https://status.discordapp.com/api/v2/"
SM = STATUS + "scheduled-maintenances/"
SM_ACTIVE = SM + "active.json"
@ -35,10 +35,7 @@ const (
SSO = API + "sso"
REPORT = API + "report"
INTEGRATIONS = API + "integrations"
)
// Almost like the constants above :) Except can't be constants
var (
USER = func(uID string) string { return USERS + uID }
USER_AVATAR = func(uID, aID string) string { return USERS + uID + "/avatars/" + aID + ".jpg" }
USER_SETTINGS = func(uID string) string { return USERS + uID + "/settings" }