Drone ENV when using webhooks

I’m trying to send a webhook to Discord using a template.
The question is what “ENVs” I can use in this template. I know that I can use build.status, repo.owner and repo.name. Are there more and if yes, is there any docs to that?

Another question: Is there a way to use conditions in templates?

@KokosnussDEV Thanks for reaching out! Please find the list of environment variables that can be used

Harness support

Thanks for your reply.
I think I have to ask more concisely:
My question is when using a template with the plugin/drone-webhook image I want to send a json based on metadata from my build, e.g. branch, build number etc. but how can I access these data and is there any docs to it?