Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Function to get all token details in a single call. #5191

Open
bubblobill opened this issue Feb 7, 2025 · 0 comments
Open

[Feature]: Function to get all token details in a single call. #5191

bubblobill opened this issue Feb 7, 2025 · 0 comments
Labels
feature Adding functionality that adds value

Comments

@bubblobill
Copy link
Collaborator

bubblobill commented Feb 7, 2025

Describe the Problem

When constructing character sheets and other things that require a bunch of different aspects to be obtained from a token, I usually have to build something to gather pretty much every detail of a token and compile it into a json. Property Type, Properties, States, Sight, Bars, Names, Labels, Halos, etc. Effectively a large percentage of the getter functions.
Long winded, and not particularly quick.

The Solution you'd like

A function that returns a JSON Object containing all there is to know about the token.
getTokenInfo()

***and, in a perfect world, ***

a setter that takes the same object and writes to the token, thus bypassing a zillion setters.
setTokenInfo(object)

nb: related(#1384)

Alternatives that you've considered.

UDFing up the whazoo

Additional Context

No response

@bubblobill bubblobill added the feature Adding functionality that adds value label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

No branches or pull requests

1 participant