Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Piece not loading when stores.register() is called - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
•
2y ago
•
9 replies
Sean
Piece not loading when stores.register() is called
Code
:
https://github.com/UTCSheffield/olp-nixos-config/tree/Sean/Upgrade-tool/update-tool/server
I
'm using pieces without framework as it
's not for a bot
, When I call container
.stores
.register
(new MessageStore
(
)
) no paths get populated and it never loads a piece
, when it should be loading 1
Typescript version
: 5
.5
.4
Pieces version
: 4
.3
.1
Node
: 20
.16
.0
Any ideas
?
GitHub
olp-nixos-config/update-tool/server at Sean/Upgrade-tool · UTCSheff...
School
's Nixos config
. Contribute to UTCSheffield
/olp
-nixos
-config development by creating an account on GitHub
.
Solution
You
're missing
container.stores.registerPath()
container.stores.registerPath()
to set up the path
, followed by
await container.stores.load();
await container.stores.load();
to load the pieces
.
Jump to solution
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,261
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Customize Piece loading strategy
S-IaF
Sapphire - Imagine a Framework / sapphire-support
9mo ago
piece.aliases is not iterable
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Custom Hook before a Piece being called/run
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
What is a Piece?
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago