For creating my bot I have an index class which is getting a bit large, I would like to split it into individual classes for the functions.
For example, I'm wanting to put client.on('messageReactionAdd' and client.on('messageReactionRemove' into their own class, and then call them from the index.
client.on('messageReactionAdd'
client.on('messageReactionRemove'
How would I be able to achieve this?
Never mind, I figured it out, my JavaScript knowledge isn't as clear as I thought. Just had to require the external file and then call it in the ready function
1.4m articles
1.4m replys
5 comments
56.9k users