-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move from const enums #295
Comments
What's the use case for this? Getting the PascalCase names? The reason these enums are const and will most likely stay that way is to inline their values in the compiled code when using TS 👀 |
I need to convert a string type such as I wonder how discord.js does it for non typescript users providing |
I've also had this issue. NextJS uses the For now I've just stuck with copy/pasting enums without |
Would be great to do this for sure especially now that discordjs/discord.js#7270 is done |
Is your feature request related to a problem? Please describe.
I need to access one of the enums (
ApplicationCommandOptionType
) but do it dynamically, currently it's a const enum so you are unable to do thatDescribe the ideal solution
It's made a non const enum
Describe alternatives you've considered
Copying and pasting the enum into my project (I will then have to make sure I constantly update this which works but isn't ideal)
Additional context
Would be worth doing this on discord.js itself if there aren't plans to fully use this package on djs
The text was updated successfully, but these errors were encountered: