# Broadcast Types

<table><thead><tr><th width="129">Type</th><th width="219">Description</th><th width="435">Example</th></tr></thead><tbody><tr><td><code>Capture</code></td><td>Initiates a broadcast when a specified Spec if captured.</td><td><pre class="language-yaml"><code class="lang-yaml">    one: #Example Using Shiny Spec
        type: capture
        spec: shiny
        nearest-player-radius: 30.0
        broadcasts:
        - '&#x26;8-------'
        - '&#x26;a%nearest_name% caught %pokemon% at %x%, %y%, %z%, in %world%'
        - '&#x26;8-------'
        webhook: none
        nearest-player-only: false
</code></pre></td></tr><tr><td><code>Spawn</code></td><td>Initiates a broadcast when a specified spec spawns</td><td><pre class="language-yaml"><code class="lang-yaml">    one: #Example Using Shiny Spec
        type: spawn
        spec: shiny
        nearest-player-radius: 30.0
        broadcasts:
        - '&#x26;8-------'
        - '&#x26;aShiny %pokemon% spawned near %nearest_name% at %x%, %y%, %z%, in %world%'
        - '&#x26;8-------'
        webhook: none
        nearest-player-only: true #True means it will only broadcast to the nearest player
</code></pre></td></tr><tr><td><code>Defeat</code></td><td>Initiates a broadcast when a specified spec is defeated</td><td><pre class="language-yaml"><code class="lang-yaml">    one: #Example Using Shiny Spec
        type: defeat
        spec: shiny
        nearest-player-radius: 30.0
        broadcasts:
        - '&#x26;8-------'
        - '&#x26;a%nearest_name% defeated %pokemon% at %x%, %y%, %z%, in %world%'
        - '&#x26;8-------'
        webhook: none
        nearest-player-only: false
</code></pre></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://envyware.gitbook.io/mods/betterpokebroadcaster/broadcast-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
