func GetGuildBan(client httd.Getter, guildID, userID Snowflake) (ret *Ban, err error) {
	resp, body, err := client.Get(&httd.Request{
		Ratelimiter: ratelimitGuildBans(guildID),
		Endpoint:    endpoint.GuildBan(guildID, userID),
	})
	if err != nil {
		return
	}

	if resp.StatusCode == http.StatusNotFound {
		msg := "given user is not registered as banned"
		err = errors.New(msg)
	}

	err = unmarshal(body, &ret)
	return
}
// GetGuildBan [GET]        Returns a ban object for the given user or a 404 not found if the ban cannot be found.
//                          Requires the 'BAN_MEMBERS' permission.
// Endpoint                 /guilds/{guild.id}/bans/{user.id}
// Rate limiter             /guilds/{guild.id}/bans
// Discord documentation    https://discordapp.com/developers/docs/resources/guild#get-guild-ban
// Reviewed                 2018-08-18
// Comment                  -
GetGuildBan [GET]        Returns a ban object for the given user or a 404 not found if the ban cannot be found.
Requires the 'BAN_MEMBERS' permission.
// GetGuildBan [ GET ] Returns a ban object for the given user or a 404 not found if the ban cannot be found . // Requires the ' BAN_MEMBERS ' permission . // Endpoint / guilds / { guild . id } / bans / { user . id } // Rate limiter / guilds / { guild . id } / bans // Discord documentation https : // discordapp . com / developers / docs / resources / guild#get - guild - ban // Reviewed 2018 - 08 - 18 // Comment -
func GetGuildBan(client httd.Getter, guildID, userID Snowflake) (ret *Ban, err error) {
	resp, body, err := client.Get(&httd.Request{
		Ratelimiter: ratelimitGuildBans(guildID),
		Endpoint:    endpoint.GuildBan(guildID, userID),
	})
	if err != nil {
		return
	}
	if resp.StatusCode == http.StatusNotFound {
		msg := "given user is not registered as banned"
		err = errors.New(msg)
	}
	err = unmarshal(body, &ret)
	return
}
func GetGuildBan ( client httd . Getter , guildID , userID Snowflake ) ( ret * Ban , err error ) { resp , body , err := client . Get ( & httd . Request { Ratelimiter : ratelimitGuildBans ( guildID ) , Endpoint : endpoint . GuildBan ( guildID , userID ) , } ) if err != nil { return } if resp . StatusCode == http . StatusNotFound { msg := " " err = errors . New ( msg ) } err = unmarshal ( body , & ret ) return }
GetGuildBan [GET]        Returns a ban object for the given user or a 404 not found if the ban cannot be found.
GetGuildBan [ GET ] Returns a ban object for the given user or a 404 not found if the ban cannot be found .