瀏覽代碼

Removed endpoint variables and moved to restapi.go

Bruce Marriner 9 年之前
父節點
當前提交
0840d1003d
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      discord.go

+ 0 - 10
discord.go

@@ -10,16 +10,6 @@
 
 package discordgo
 
-// These will absolutely change.  I already don't like them.
-// Constants that define the different Discord API URLs.
-const (
-	discordUrl = "http://discordapp.com"
-	discordApi = discordUrl + "/api/"
-	servers    = discordApi + "guilds"
-	channels   = discordApi + "channels"
-	users      = discordApi + "users"
-) // TODO: make this do something, better names, move to restapi.go
-
 // A Discord structure represents a all-inclusive (hopefully) structure to
 // access the Discord REST API for a given authenticated user.
 type Discord struct {