Is there a component so when a topic is marked as Solved, the topic gets locked and a custom message is posted with it?

No “problems,” per-say, but for my purposes, would heavily prefer an immediate lock, but the main thing I want to accomplish here is a message that gets put when Solved.