Open bivashy opened 7 months ago
Hello there! Any update on this? If you have reviewed this PR, make sure that your comments doesn't have PENDING state (I cannot see them) (Related link)
I apologize for not replying earlier. I've seen this, however, I haven't settled on a satisfying design yet. I'm looking for something that ticks these boxes:
I'm still considering multiple designs, the most prominent one I have is some sort of Serializers. If you've ever used kotlinx.serialization
, it's pretty much the design I'm thinking of, as it ticks all the boxes above. There's still some experimentation and adaptation needed with the idea to ensure the developer experience goes smooth.
I might do a follow-up comment with sample code that shows the concept. If I forget, please shamelessly ping me on Discord. I'm perfectly okay with that 😛
Pull Request Etiquette
Changes
Closes Issue: #75
Description
This pull request makes possible to create custom locale reader types that can send adventure component, discord embed messages, and etc.
Breaking changes:
I believe that this Pull Request doesn't have any breaking changes. Please let me know if you have found one.
How to use:
Simply implement
DynamicLocaleReader
instead ofLocaleReader
, and register usingTranslator#add
. childrenList Example: ComponentLocaleReader:Component:
Current state
Currently this Pull Request was tested using
ConsoleCommandHandler
.