From 141da94538bd5677a042b189bd74fa3a54dc7d7c Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Mon, 23 Nov 2015 08:46:18 -0600 Subject: [PATCH] Don't really need seperate const block --- endpoints.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/endpoints.go b/endpoints.go index c96d3c0..aa236e3 100644 --- a/endpoints.go +++ b/endpoints.go @@ -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" }