Skip to content

Commit

Permalink
fix: reply in thread for error replies (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohankmr414 authored Jun 30, 2024
1 parent 07f4ecf commit 5b127cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion response_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b127cb

Please sign in to comment.