Enums exported as Snowflakes
I saw with the new update that ChannelType, GuildExplicitContentFilter, GuildVerificationLevel and others are now exported as Snowflakes but they are supposed to be enums. The screenshot which says its Enums , is from v14.3 , and the one that errors ( exported as snowflakes ) is from v14.4.
11 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.That's their type check the js version and see their values
CNR
do you have discord-api-types listed in your dependencies or something?
I have it installed yes
remove it
you can import everything from discord.js
well that screenshot ( the error one ) is from BEFORE i install api types tho
and i import from discord.js anyway
doesnt matter
you likely have a conflict of 2 versions of it
14.3 with api types installed ( wait the second screenshot is coming )
14.4 with api types Uninstalled
try restarting the ts server
or vscode entirely
ah ..... seems to work , that's weird 😅
well , Thanks !