Does not send embed in thread, does not throw error, does not log anything

https://github.com/MRDGH2821/Perpetual-Mechanical-Array-Bot/blob/rewrite-sapphire/src/damageLeaderboard/listeners/LBPostRegister.ts#L77 My bot is able to execute the run method in this listener, but somehow it doesn't run sendLogs method defined in the listener class.
GitHub
Perpetual-Mechanical-Array-Bot/LBPostRegister.ts at rewrite-sapphir...
Discord Bot for Traveler Mains Server. Contribute to MRDGH2821/Perpetual-Mechanical-Array-Bot development by creating an account on GitHub.
2 Replies
Favna
Favna17mo ago
You have a bunch of conditional returns. You'll have to analyze yourself why the line of sendLog is never reached. We can't help you there. Use a debugger or just console logs to analyze such things.
MRDGH2821
MRDGH282117mo ago
This was the insight which I needed! Thanks a lot! Solution: Check all code paths. In my case, there were early returns which prevented sendLog() being called. As a fix, I have to call it early
Want results from more Discord servers?
Add your server