Class JsonResolver
java.lang.Object
io.github.kaktushose.jdac.message.resolver.internal.JsonResolver
- All Implemented Interfaces:
Resolver<tools.jackson.databind.JsonNode>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintpriority()The priority of this resolver influences the order in which resolver are applied in a resolution pipeline.tools.jackson.databind.JsonNoderesolve(tools.jackson.databind.JsonNode node, Locale locale, Map<String, @Nullable Object> placeholders) Resolves the given object for the provided locale.
-
Constructor Details
-
JsonResolver
-
-
Method Details
-
resolve
-
priority
public int priority()Description copied from interface:ResolverThe priority of this resolver influences the order in which resolver are applied in a resolution pipeline.
Currently, this only applies to
Resolver<String>, when usingMessageResolver(as JDA-Commands does internally). Generally speaking, resolvers with lower priority run first.If the priority isn't important (e.g. for
ComponentResolver) this should return0.
-