Blocking PM to admin user

Ok, my bad :frowning:

If there is not such feature I want to write simple plugin to overwrite disabled state for send PM button which is checking user id or group id first.
Is there any painless way to do that in JS/HTML? I’m not ruby person and simple solution which hides button but allows sending msg using API etc is ok for me. I want to just discourage people from writing to me, not necessary preventing them technically.

I’m searching how to start doing this, but I see there is a new API and I don’t know where to start. Can someone point me to right direction?

I saw:

https://meta.discourse.org/t/how-to-override-an-existing-handlebars-template-from-plugin/10201/5?u=systemz

But this means that I will need to copy-paste current template to my plugin? This can be a problem when updating to new Discourse version.

Are editing this lines could help me?