i dont see any breaking changes regarding listeners/events in sapphire migrating guide and this same code was working perfectly fine but stopped working after upgrading to sapphire v4 and I didnt need to make any changes to this code for migration. Is there anything I missed or doing wrong? pls lemme know if i need to provide any other info which i might have missed. if anyone can point me in right direction, I would be immensely thankful.
Solution
Okay Vladdy found the problem @owoer
You forgot to call
super.onLoad()
super.onLoad()
in your
onLoad
onLoad
method
onLoad() { super.onLoad(); container.logger.info('MessageCommandFinish event listener is now loaded.');}
onLoad() { super.onLoad(); container.logger.info('MessageCommandFinish event listener is now loaded.');}