#utilities-store

1 messages · Page 1 of 1 (latest)

lethal salmon
#

from what information I've read. I should think of this as more of a service? which would allow the use of all files inside the store to be used with strings instead of importing them for each command, making the command cleaner and shorter?

gentle sandalBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

calm chasm
#

You can expose functions to this.container.utilities.<your thing>. As per the readme example it would be this.container.utilities.sum.add(...). If you want to put raw strings in there use public class properties or getters.

So yes I suppose you're right. It's a bit of a niche thing for people who don't like many imports. I don't use it personally.

lethal salmon
#

I thought about giving it a try, if it made it easier then using a service setup. though doing business logic as a service is a good way to go. I'll try to read up on it more and see if this is something I want to move to. Thank you