func CreateGuildBan(client httd.Puter, guildID, userID Snowflake, params *CreateGuildBanParams) (err error) {
	resp, _, err := client.Put(&httd.Request{
		Ratelimiter: ratelimitGuildBans(guildID),
		Endpoint:    endpoint.GuildBan(guildID, userID) + params.GetQueryString(),
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusNoContent {
		msg := "could not ban member"
		err = errors.New(msg)
	}

	return
}
// CreateGuildBan [PUT]     Create a guild ban, and optionally delete previous messages sent by the banned user.
//                          Requires the 'BAN_MEMBERS' permission. Returns a 204 empty response on success.
//                          Fires a Guild Ban Add Gateway event.
// Endpoint                 /guilds/{guild.id}/bans/{user.id}
// Rate limiter             /guilds/{guild.id}/bans
// Discord documentation    https://discordapp.com/developers/docs/resources/guild#create-guild-ban
// Reviewed                 2018-08-18
// Comment                  -
CreateGuildBan [PUT]     Create a guild ban, and optionally delete previous messages sent by the banned user.
Requires the 'BAN_MEMBERS' permission. Returns a 204 empty response on success.
Fires a Guild Ban Add Gateway event.
// CreateGuildBan [ PUT ] Create a guild ban and optionally delete previous messages sent by the banned user . // Requires the ' BAN_MEMBERS ' permission . Returns a 204 empty response on success . // Fires a Guild Ban Add Gateway event . // Endpoint / guilds / { guild . id } / bans / { user . id } // Rate limiter / guilds / { guild . id } / bans // Discord documentation https : // discordapp . com / developers / docs / resources / guild#create - guild - ban // Reviewed 2018 - 08 - 18 // Comment -
func CreateGuildBan(client httd.Puter, guildID, userID Snowflake, params *CreateGuildBanParams) (err error) {
	resp, _, err := client.Put(&httd.Request{
		Ratelimiter: ratelimitGuildBans(guildID),
		Endpoint:    endpoint.GuildBan(guildID, userID) + params.GetQueryString(),
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "could not ban member"
		err = errors.New(msg)
	}
	return
}
func CreateGuildBan ( client httd . Puter , guildID , userID Snowflake , params * CreateGuildBanParams ) ( err error ) { resp , _ , err := client . Put ( & httd . Request { Ratelimiter : ratelimitGuildBans ( guildID ) , Endpoint : endpoint . GuildBan ( guildID , userID ) + params . GetQueryString ( ) , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " err = errors . New ( msg ) } return }
CreateGuildBan [PUT]     Create a guild ban, and optionally delete previous messages sent by the banned user.
CreateGuildBan [ PUT ] Create a guild ban and optionally delete previous messages sent by the banned user .