Don't really need seperate const block
This commit is contained in:
parent
50f315d014
commit
141da94538
1 changed files with 2 additions and 5 deletions
|
@ -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" }
|
||||
|
|
Loading…
Reference in a new issue