func CreateGuildIntegration(client httd.Poster, guildID Snowflake, params *CreateGuildIntegrationParams) (err error) {
	resp, _, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitGuildIntegrations(guildID),
		Endpoint:    endpoint.GuildIntegrations(guildID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusNoContent {
		msg := "Could not create the integration object. Do you have the MANAGE_GUILD permission?"
		err = errors.New(msg)
	}

	return
}
// CreateGuildIntegration [POST]    Attach an integration object from the current user to the guild. Requires
//                                  the 'MANAGE_GUILD' permission. Returns a 204 empty response on success.
//                                  Fires a Guild Integrations Update Gateway event.
// Endpoint                         /guilds/{guild.id}/integrations
// Rate limiter                     /guilds/{guild.id}/integrations
// Discord documentation            https://discordapp.com/developers/docs/resources/guild#create-guild-integration
// Reviewed                         2018-08-18
// Comment                          -
CreateGuildIntegration [POST]    Attach an integration object from the current user to the guild. Requires
the 'MANAGE_GUILD' permission. Returns a 204 empty response on success.
Fires a Guild Integrations Update Gateway event.
// CreateGuildIntegration [ POST ] Attach an integration object from the current user to the guild . Requires // the ' MANAGE_GUILD ' permission . Returns a 204 empty response on success . // Fires a Guild Integrations Update Gateway event . // Endpoint / guilds / { guild . id } / integrations // Rate limiter / guilds / { guild . id } / integrations // Discord documentation https : // discordapp . com / developers / docs / resources / guild#create - guild - integration // Reviewed 2018 - 08 - 18 // Comment -
func CreateGuildIntegration(client httd.Poster, guildID Snowflake, params *CreateGuildIntegrationParams) (err error) {
	resp, _, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitGuildIntegrations(guildID),
		Endpoint:    endpoint.GuildIntegrations(guildID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "Could not create the integration object. Do you have the MANAGE_GUILD permission?"
		err = errors.New(msg)
	}
	return
}
func CreateGuildIntegration ( client httd . Poster , guildID Snowflake , params * CreateGuildIntegrationParams ) ( err error ) { resp , _ , err := client . Post ( & httd . Request { Ratelimiter : ratelimitGuildIntegrations ( guildID ) , Endpoint : endpoint . GuildIntegrations ( guildID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " err = errors . New ( msg ) } return }
CreateGuildIntegration [POST]    Attach an integration object from the current user to the guild.
CreateGuildIntegration [ POST ] Attach an integration object from the current user to the guild .