Modifying internal functions
Is it safe to modify any Discord.js function to add my own code before and after the execution.
Example:
3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.depends on whether you know what you're doing (the code you've shown will have issues)
but also this should be considered unsupported (especially if when you say 'any djs function' you mean any)
Yeah, I think you are right, I just think its a bad idea.
I wanted to add some debugging code some functions globally but ig I will just make my own functions and call them.