func (whs WebhookSender) Send(ctx context.Context, message Message) error {
	res, err := whs.send(ctx, message)
	if err != nil {
		return err
	}
	defer res.Body.Close()

	if statusCode := res.StatusCode; statusCode < http.StatusOK || statusCode > 299 {
		contents, _ := ioutil.ReadAll(res.Body)
		return ex.New(ErrNon200, ex.OptMessage(string(contents)))
	}
	return nil
}
// Send sends a slack hook.
Send sends a slack hook.
// Send sends a slack hook .
func (whs WebhookSender) Send(ctx context.Context, message Message) error {
	res, err := whs.send(ctx, message)
	if err != nil {
		return err
	}
	defer res.Body.Close()
	if statusCode := res.StatusCode; statusCode < http.StatusOK || statusCode > 299 {
		contents, _ := ioutil.ReadAll(res.Body)
		return ex.New(ErrNon200, ex.OptMessage(string(contents)))
	}
	return nil
}
func ( whs WebhookSender ) Send ( ctx context . Context , message Message ) error { res , err := whs . send ( ctx , message ) if err != nil { return err } defer res . Body . Close ( ) if statusCode := res . StatusCode ; statusCode < http . StatusOK || statusCode > 299 { contents , _ := ioutil . ReadAll ( res . Body ) return ex . New ( ErrNon200 , ex . OptMessage ( string ( contents ) ) ) } return nil }
Send sends a slack hook.
Send sends a slack hook .