func CreateWebhook(client httd.Poster, channelID Snowflake, params *CreateWebhookParams) (ret *Webhook, err error) {
	_, body, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitChannelWebhooks(channelID),
		Endpoint:    endpoint.ChannelWebhooks(channelID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// CreateWebhook [POST]     Create a new webhook. Requires the 'MANAGE_WEBHOOKS' permission.
//                          Returns a webhook object on success.
// Endpoint                 /channels/{channel.id}/webhooks
// Rate limiter             /channels/{channel.id}/webhooks
// Discord documentation    https://discordapp.com/developers/docs/resources/webhook#create-webhook
// Reviewed                 2018-08-14
// Comment                  -
CreateWebhook [POST]     Create a new webhook. Requires the 'MANAGE_WEBHOOKS' permission.
Returns a webhook object on success.
// CreateWebhook [ POST ] Create a new webhook . Requires the ' MANAGE_WEBHOOKS ' permission . // Returns a webhook object on success . // Endpoint / channels / { channel . id } / webhooks // Rate limiter / channels / { channel . id } / webhooks // Discord documentation https : // discordapp . com / developers / docs / resources / webhook#create - webhook // Reviewed 2018 - 08 - 14 // Comment -
func CreateWebhook(client httd.Poster, channelID Snowflake, params *CreateWebhookParams) (ret *Webhook, err error) {
	_, body, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitChannelWebhooks(channelID),
		Endpoint:    endpoint.ChannelWebhooks(channelID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func CreateWebhook ( client httd . Poster , channelID Snowflake , params * CreateWebhookParams ) ( ret * Webhook , err error ) { _ , body , err := client . Post ( & httd . Request { Ratelimiter : ratelimitChannelWebhooks ( channelID ) , Endpoint : endpoint . ChannelWebhooks ( channelID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
CreateWebhook [POST]     Create a new webhook.
CreateWebhook [ POST ] Create a new webhook .