Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

API Object documentation missing properties?

1632310742
David M.
Pro
API Scripter
I just noticed that documentation of API "Graphic" Objects in both the  community wiki  and the official  Roll20 Help  seem to be missing references to the "sides" and "currentSide" properties. I'm fairly certain that these used to be present in the documentation, so not sure how they fell off. IIRC: sides is a list of image urls delimited by pipes ("|") currentSide is an integer value corresponding to the index of the sides array
1632342575
David M.
Pro
API Scripter
Also just ran across this: it looks like the token_markers property is missing from the Campaign object documentation and is incorrectly placed in the Graphic Object section.
1632347977

Edited 1632348097
Andreas J.
Forum Champion
Sheet Author
Translator
Looking at the wiki page's history, picking randomly few versions, didn't spot references to currentSide , at least. If you take a better dive into the history, you should be able to find them, if they ever been there. If they are real things, update & add them to the wiki.
1632350669

Edited 1632351188
David M.
Pro
API Scripter
Ok so that was slightly terrifying, but I think I made the corrections without screwing anything up. I'd never done any wiki editing before, but it seemed pretty straightforward after reading the "Wiki Help". Thanks, Andreas! EDIT - here's the changelog . Please let me know if everything looks ok from a procedural standpoint!
1632483628
Andreas J.
Forum Champion
Sheet Author
Translator
Great work! I've put in a good amount of effort on both updating the wiki itself, as well as updating the page for how to edit the wiki , so that more people can contribute. Roll20 implemented new API stuff this week, and you as api author would know better how to update the relevant stuff, if you find the time. they listed the changes here: <a href="https://app.roll20.net/forum/permalink/10392621/" rel="nofollow">https://app.roll20.net/forum/permalink/10392621/</a>