What is the role of a Piece and a Store in SapphireJS?

From my research, it seems that a Piece cannot perform standalone actions. Instead, Pieces are stored in a Store, and developers retrieve them from the container's store to utilize them in other functionalities. Is this correct? I am looking for examples or related articles that explain the usage of Store and Piece, but the official documentation seems to lack such detailed explanations, so I am asking here.
Solution:
that is correct
Jump to solution
3 Replies
Solution
Favna
Favna•2mo ago
that is correct
kyra
kyra•2mo ago
To put it in an analogy, think of it as a puzzle, the collection (Store) of the pieces (Piece) make up your app's behaviour.
RookieAND_
RookieAND_OP•5w ago
I truly appreciate it! Thanks for your kind response And sorry for my late reply 😭

Did you find this page helpful?