Irrelevant. If you haven't told anybody, they have to violate your rights to your property (stealing the plans of the invention) or to your liberty (coercing you in some way to tell them your plans) to obtain your invention.
The whole point of copyright and patents¹ is not to protect your right to the invention, but to give you the right to prevent others from using their legally obtained copies of your invention as they see fit.
¹ I don't like the term IP; see https://www.gnu.org/philosophy/not-ipr.html