You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
</span></span><spanclass=line><spanclass=cl><spanclass=p>})</span><spanclass=o>:</span><spanclass=nb>Promise</span><spanclass=o><</span><spanclass=nx>string</span><spanclass=o>></span></span></span></code></pre></div></figure></div><p><code>post</code> posts a message to chat, either creating a new message or overwriting an existing one. It requires a character id and message content, a string containing either plain text or HTML to be posted.</p><p>The method also accepts an options object. Currently, only whisper and secret are supported, the only valid value for whisper is gm, which will send the message as a whisper to the gm.</p><p>The secret option is ignored unless whisper is also set, toggling to true will cause the message to not be visible to the controlling player.</p><p>Like roll, messageId can be provided to update an existing chat message, but if omitted the method will generate a new messageId and post a new chat message. The method returns the messageId.</p><h4id=query>query<ahref=#queryclass=anchoraria-hidden=true>#</a></h4><divclass=expressive-code><figureclass="frame not-content"><figcaptionclass=header><spanclass=title></span></figcaption><divclass=highlight><pretabindex=0class=chroma><codeclass=language-javascriptdata-lang=javascript><spanclass=line><spanclass=cl><spanclass=nx>dispatch</span><spanclass=p>.</span><spanclass=nx>query</span><spanclass=p>(</span><spanclass=nx>options</span><spanclass=o>:</span><spanclass=nx>Swal2Options</span><spanclass=p>)</span><spanclass=o>:</span><spanclass=p>{</span>
28
+
</span></span><spanclass=line><spanclass=cl><spanclass=p>})</span><spanclass=o>:</span><spanclass=nb>Promise</span><spanclass=o><</span><spanclass=nx>string</span><spanclass=o>></span></span></span></code></pre></div></figure></div><p><code>post</code> posts a message to chat, either creating a new message or overwriting an existing one. It requires a character id and message content, a string containing either plain text or HTML to be posted.</p><p>The method also accepts an options object. Currently, only whisper and secret are supported, the only valid value for whisper is gm, which will send the message as a whisper to the gm.</p><p>The secret option is ignored unless whisper is also set, toggling to true will cause the message to not be visible to the controlling player.</p><p>Like roll, messageId can be provided to update an existing chat message, but if omitted the method will generate a new messageId and post a new chat message. The method returns the messageId.</p><h4id=query>query<ahref=#queryclass=anchoraria-hidden=true>#</a></h4><divclass=expressive-code><figureclass="frame not-content"><figcaptionclass=header><spanclass=title></span></figcaption><divclass=highlight><pretabindex=0class=chroma><codeclass=language-javascriptdata-lang=javascript><spanclass=line><spanclass=cl><spanclass=nx>dispatch</span><spanclass=p>.</span><spanclass=nx>query</span><spanclass=p>({</span><spanclass=nx>options</span><spanclass=o>:</span><spanclass=nx>Swal2Options</span><spanclass=p>})</span><spanclass=o>:</span><spanclass=p>{</span>
</span></span><spanclass=line><spanclass=cl><spanclass=p>})</span><spanclass=o>:</span><spanclass=k>void</span></span></span></code></pre></div></figure></div><p><code>openDialogFromLink</code> opens the supplied urlString through the Roll20 Tabletop.</p><ul><li>If the url is for a handout, it will open the corresponding handout in the campaign. This will also check if the user opening the link has access to the handout.</li><li>If the url is for a compendium, it will open a pop up to the compendium page, it will also check to ensure the user has access to view the page.</li><li>If the url is for an external page, a confirmation pop up will display to warn the user that the link is for an external site and open a new tab in their main window if confirmed.</li></ul><divclass="page-footer-meta d-flex flex-column flex-md-row justify-content-between"></div><divclass="page-nav d-flex flex-column flex-sm-row"><divclass="card w-100"><divclass="card-body d-flex"><divclass="d-flex flex-column justify-content-center"><svgxmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-left" width="20" height="20" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round"><pathstroke="none" d="M0 0h24v24H0z" fill="none"/><pathd="M5 12h14"/><pathd="M5 12l6 6"/><pathd="M5 12l6-6"/></svg></div><divclass="d-flex flex-column"><divclass=text-body-secondary>Prev</div><ahref=/beacon-docs/docs/components/rolls/class="stretched-link text-reset text-decoration-none">Rolls</a></div></div></div><divclass=m-2></div><divclass="card text-end w-100"><divclass="card-body d-flex justify-content-end"><divclass="d-flex flex-column"><divclass=text-body-secondary>Next</div><ahref=/beacon-docs/docs/components/custom-sheet-macro-attributes/class="stretched-link text-reset text-decoration-none">Custom Sheet Macro Attributes</a></div><divclass="d-flex flex-column justify-content-center"><svgxmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-right" width="20" height="20" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round"><pathstroke="none" d="M0 0h24v24H0z" fill="none"/><pathd="M5 12h14"/><pathd="M13 18l6-6"/><pathd="M13 6l6 6"/></svg></div></div></div></div></main></div></div></div><footerclass="footer text-muted"><divclass=container-lg><divclass=row><divclass="col-lg-8 text-center text-lg-start"><ulclass=list-inline><liclass=list-inline-item><aclass=text-mutedhref=https://help.roll20.net/hc/en-us/articles/360037770793-Terms-of-Service-and-Privacy-Policy>Privacy Policy</a></li></ul></div><divclass="col-lg-8 text-center text-lg-end"><ulclass=list-inline><liclass=list-inline-item>Brought to you by <aclass=text-mutedhref=https://gethyas.com/>Hyas</a></li></ul></div></div></div></footer><scriptasyncsrc=/beacon-docs/js/app.47b84f3b640408af6efe7bf4add1a36f5b9c6227fbae7b8bcdf0c9ce42fefc54.jsintegrity="sha256-R7hPO2QECK9u/nv0rdGjb1ucYif7rnuLzfDJzkL+/FQ="></script><scriptasyncsrc=/beacon-docs/js/flexsearch.cbed95db83d6f8f9987a1bdb82f63e3ccb7eb8d23211108395cb25ccca82e5b4.jsintegrity="sha256-y+2V24PW+PmYehvbgvY+PMt+uNIyERCDlcslzMqC5bQ="></script><scriptasyncsrc=/beacon-docs/js/search-modal.4e30271fef6fac86c3b4143167e9784bd3f7037ce1045d03a321e7e799e91476.jsintegrity="sha256-TjAnH+9vrIbDtBQxZ+l4S9P3A3zhBF0DoyHn55npFHY="></script><divclass="d-inline-flex fixed-bottom-right pb-4 pe-4"><buttonid=toToptype=buttonclass="btn btn-primary rounded-circle ms-auto p-2"><spanclass=visually-hidden>Top</span><svgxmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round"><pathstroke="none" d="M0 0h24v24H0z" fill="none"/><pathd="M6 15l6-6 6 6"/></svg></button></div></body></html>
122
+
</span></span><spanclass=line><spanclass=cl><spanclass=p>})</span><spanclass=o>:</span><spanclass=k>void</span></span></span></code></pre></div></figure></div><p><code>openDialogFromLink</code> opens the supplied urlString through the Roll20 Tabletop.</p><ul><li>If the url is for a handout, it will open the corresponding handout in the campaign. This will also check if the user opening the link has access to the handout.</li><li>If the url is for a compendium, it will open a pop up to the compendium page, it will also check to ensure the user has access to view the page.</li><li>If the url is for an external page, a confirmation pop up will display to warn the user that the link is for an external site and open a new tab in their main window if confirmed.</li></ul><divclass="page-footer-meta d-flex flex-column flex-md-row justify-content-between"></div><divclass="page-nav d-flex flex-column flex-sm-row"><divclass="card w-100"><divclass="card-body d-flex"><divclass="d-flex flex-column justify-content-center"><svgxmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-left" width="20" height="20" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round"><pathstroke="none" d="M0 0h24v24H0z" fill="none"/><pathd="M5 12h14"/><pathd="M5 12l6 6"/><pathd="M5 12l6-6"/></svg></div><divclass="d-flex flex-column"><divclass=text-body-secondary>Prev</div><ahref=/beacon-docs/docs/components/rolls/class="stretched-link text-reset text-decoration-none">Rolls</a></div></div></div><divclass=m-2></div><divclass="card text-end w-100"><divclass="card-body d-flex justify-content-end"><divclass="d-flex flex-column"><divclass=text-body-secondary>Next</div><ahref=/beacon-docs/docs/components/custom-sheet-macro-attributes/class="stretched-link text-reset text-decoration-none">Custom Sheet Macro Attributes</a></div><divclass="d-flex flex-column justify-content-center"><svgxmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-right" width="20" height="20" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round"><pathstroke="none" d="M0 0h24v24H0z" fill="none"/><pathd="M5 12h14"/><pathd="M13 18l6-6"/><pathd="M13 6l6 6"/></svg></div></div></div></div></main></div></div></div><footerclass="footer text-muted"><divclass=container-lg><divclass=row><divclass="col-lg-8 text-center text-lg-start"><ulclass=list-inline><liclass=list-inline-item><aclass=text-mutedhref=https://help.roll20.net/hc/en-us/articles/360037770793-Terms-of-Service-and-Privacy-Policy>Privacy Policy</a></li></ul></div><divclass="col-lg-8 text-center text-lg-end"><ulclass=list-inline><liclass=list-inline-item>Brought to you by <aclass=text-mutedhref=https://gethyas.com/>Hyas</a></li></ul></div></div></div></footer><scriptasyncsrc=/beacon-docs/js/app.47b84f3b640408af6efe7bf4add1a36f5b9c6227fbae7b8bcdf0c9ce42fefc54.jsintegrity="sha256-R7hPO2QECK9u/nv0rdGjb1ucYif7rnuLzfDJzkL+/FQ="></script><scriptasyncsrc=/beacon-docs/js/flexsearch.cbed95db83d6f8f9987a1bdb82f63e3ccb7eb8d23211108395cb25ccca82e5b4.jsintegrity="sha256-y+2V24PW+PmYehvbgvY+PMt+uNIyERCDlcslzMqC5bQ="></script><scriptasyncsrc=/beacon-docs/js/search-modal.4e30271fef6fac86c3b4143167e9784bd3f7037ce1045d03a321e7e799e91476.jsintegrity="sha256-TjAnH+9vrIbDtBQxZ+l4S9P3A3zhBF0DoyHn55npFHY="></script><divclass="d-inline-flex fixed-bottom-right pb-4 pe-4"><buttonid=toToptype=buttonclass="btn btn-primary rounded-circle ms-auto p-2"><spanclass=visually-hidden>Top</span><svgxmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentcolor" fill="none" stroke-linecap="round" stroke-linejoin="round"><pathstroke="none" d="M0 0h24v24H0z" fill="none"/><pathd="M6 15l6-6 6 6"/></svg></button></div></body></html>
0 commit comments