Error [UNLOADED_PIECE] The piece 'CoreReady' does not exist.
I have no idea why prod started throwing this error on restart, cannot reproduce on test
32|Massive-Automation | Error [UNLOADED_PIECE]: The piece 'CoreReady' does not exist.32|Massive-Automation | at Map.resolve (/root/Massive/Automation/node_modules/@sapphire/pieces/dist/lib/structures/Store.js:152:23)32|Massive-Automation | at Map.unload (/root/Massive/Automation/node_modules/@sapphire/pieces/dist/lib/structures/Store.js:98:28)32|Massive-Automation | at CoreEvent.unload (/root/Massive/Automation/node_modules/@sapphire/pieces/dist/lib/structures/Piece.js:87:26)32|Massive-Automation | at CoreEvent._runOnce (/root/Massive/Automation/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:100:20)32|Massive-Automation | at processTicksAndRejections (node:internal/process/task_queues:96:5) {32|Massive-Automation | type: 'UNLOADED_PIECE'32|Massive-Automation | }
32|Massive-Automation | Error [UNLOADED_PIECE]: The piece 'CoreReady' does not exist.32|Massive-Automation | at Map.resolve (/root/Massive/Automation/node_modules/@sapphire/pieces/dist/lib/structures/Store.js:152:23)32|Massive-Automation | at Map.unload (/root/Massive/Automation/node_modules/@sapphire/pieces/dist/lib/structures/Store.js:98:28)32|Massive-Automation | at CoreEvent.unload (/root/Massive/Automation/node_modules/@sapphire/pieces/dist/lib/structures/Piece.js:87:26)32|Massive-Automation | at CoreEvent._runOnce (/root/Massive/Automation/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:100:20)32|Massive-Automation | at processTicksAndRejections (node:internal/process/task_queues:96:5) {32|Massive-Automation | type: 'UNLOADED_PIECE'32|Massive-Automation | }
Solution
I moved my client.login to a different file and forgot to re-upload the file I removed the old call from, so it was getting called twice. Sorry to bother