I am trying to develop a ReservationTask Piece using SapphireJS to perform a specified task after a certain time. First, I created a ReservationTask by extending the Piece class and then created a ReservationTaskStore to store it.
In this case, I wonder if the ReservationTask Piece is automatically registered with SapphireJS. Also, if I add a custom Piece that inherits from this Piece, will it also be automatically added?
P.S I am trying to register a task that performs a Reservation Task after a certain time through a Command, and I found that in Skyra, it encourages registration through the ScheduleManager.
In this case, the TaskStore retrieves a specific task based on the taskId, but the actual Task class does not have an id value, so I am curious about how this check is done.