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

This commit is contained in:
Bruce Marriner 2015-12-17 14:11:10 -06:00
parent bb60b64ecb
commit bd1e20549a
2 changed files with 0 additions and 11 deletions

View file

@ -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 }

View file

@ -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