From 68085cd5ef7bc6e5f5de89c73a52e214ae48b7ae Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 16 Apr 2024 19:23:42 +0530 Subject: [PATCH] fix: reply in thread for error replies --- response_writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/response_writer.go b/response_writer.go index 4d26930..a331c1a 100644 --- a/response_writer.go +++ b/response_writer.go @@ -31,7 +31,7 @@ func (r *Writer) PostError(channel string, err error, options ...PostOption) (st Color: "danger", Text: err.Error(), }) - return r.post(channel, "", []slack.Block{}, SetAttachments(attachments)) + return r.post(channel, "", []slack.Block{}, append(options, SetAttachments(attachments))...) } // PostBlocks send blocks to a channel