Creating a class for events
Hello, I am trying to make a class for events. I have came up with the following, and it doesn't work I have provided my eslint errors below:
I want the class to inherit the parameters when given an event from the Events enum from the discord.js package.
e.g:
The eslint errors that I am recieving:
8 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I made this that doesn't give me any errors but doesn't function how I would like it to
Events only exists as a type, not a value usable in js
Sorry for not updating I have resolved this issue
Not rly a fan of how the event registers itself, would prefer if the caller did that
As in like when the event is imported?
Yea
I made that adjustment thanks for the input
Also a more cleaner implementation: