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

Minimessage Web Editor Support #48

Open
Silthus opened this issue Nov 19, 2021 · 0 comments
Open

Minimessage Web Editor Support #48

Silthus opened this issue Nov 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Silthus
Copy link
Collaborator

Silthus commented Nov 19, 2021

okay, all of the API endpoints which accept json input can also take a placeholders field, like {"miniMessage": "...", "placeholders": {...} }
the actually contents of this placeholders object are three fields, stringPlaceholders, componentPlaceholders and miniMessagePlaceholders. All three are just key-value maps.
Note that componentPlaceholders are directly as a json object, while the others are strings ({"componentPlaceholders": {"text": "something", "color": "red"}, "miniMessagePlaceholders": "accepts tags!"})
miniMessagePlaceholders are parsed into components by the server

@Silthus Silthus added the enhancement New feature or request label Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant