Sandy Stone
Sandy Stone
Explore posts from servers
SIASapphire - Imagine a framework
Created by Sandy Stone on 8/19/2024 in #sapphire-support
Will the custom path in a store apply also when using cogs (or modules)?
If I have the following code that changes the stores path:
this.stores.get('arguments').registerPath(join(this.rootData.root, 'options'));
this.stores.get('interaction-handlers').registerPath(join(this.rootData.root, 'interactions'));
this.stores.get('arguments').registerPath(join(this.rootData.root, 'options'));
this.stores.get('interaction-handlers').registerPath(join(this.rootData.root, 'interactions'));
And I also use a cog system that is grouped in a single folder:
this.stores.registerPath(join(this.rootData.root, 'cogs', 'audio'));
this.stores.registerPath(join(this.rootData.root, 'cogs', 'moderation'));
this.stores.registerPath(join(this.rootData.root, 'cogs', 'music'));
this.stores.registerPath(join(this.rootData.root, 'cogs', 'audio'));
this.stores.registerPath(join(this.rootData.root, 'cogs', 'moderation'));
this.stores.registerPath(join(this.rootData.root, 'cogs', 'music'));
Would sapphire, instead of looking for "interaction-handlers" inside each cog, would look instead for the custom path folder name, which would be "interactions"? Same thing with "arguments" being "options"? If not, how would I accomplish this? Or is there a better way of doing this?
65 replies
SIASapphire - Imagine a framework
Created by Sandy Stone on 6/13/2024 in #sapphire-support
IntelliSense autocomplete not showing up exclusively for Sapphire classes?
No description
107 replies