DisTubeEvents is not array-based like ClientEvents in discord.js #264
Majoramari
started this conversation in
Ideas
Replies: 1 comment 8 replies
-
|
I will convert to this later. Workaround of your CustomEventstype CustomEvents = {
[K in keyof DisTubeEvents]: Parameters<DisTubeEvents[K]>;
} & ClientEvents; |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please describe your problem in as much detail as possible:
Why this might be an issue?
You can't migrate
DisTubeEventswithClientEventsinto one Event handler natively, you will have to declare your own type array-based like this:As far as I see DisTube is meant to complete discord.js to work with it so I suggest converting
DisTubeEventsto be array-based likeClientEventsFurther information:
Beta Was this translation helpful? Give feedback.
All reactions