Browse Source

Removed /guilds/:guild_id/members endpoint, closes #14

Bruce Marriner 9 years ago
parent
commit
bd1e20549a
2 changed files with 0 additions and 11 deletions
  1. 0 1
      endpoints.go
  2. 0 10
      restapi.go

+ 0 - 1
endpoints.go

@@ -56,7 +56,6 @@ var (
 	GUILD              = func(gID string) string { return GUILDS + gID }
 	GUILD_INIVTES      = func(gID string) string { return GUILDS + gID + "/invites" }
 	GUILD_CHANNELS     = func(gID string) string { return GUILDS + gID + "/channels" }
-	GUILD_MEMBERS      = func(gID string) string { return GUILDS + gID + "/members" }
 	GUILD_MEMBER_DEL   = func(gID, uID string) string { return GUILDS + gID + "/members/" + uID }
 	GUILD_BANS         = func(gID string) string { return GUILDS + gID + "/bans" }
 	GUILD_BAN          = func(gID, uID string) string { return GUILDS + gID + "/bans/" + uID }

+ 0 - 10
restapi.go

@@ -250,16 +250,6 @@ func (s *Session) GuildBanDelete(guildID, userID string) (err error) {
 	return
 }
 
-// GuildMembers returns an array of Member structures for all members of a
-// given guild.
-// guildID   : The ID of a Guild.
-func (s *Session) GuildMembers(guildID string) (st []Member, err error) {
-
-	body, err := s.Request("GET", GUILD_MEMBERS(guildID), nil)
-	err = json.Unmarshal(body, &st)
-	return
-}
-
 // GuildMemberDelete removes the given user from the given guild.
 // guildID   : The ID of a Guild.
 // userID    : The ID of a User