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
d.js docs
d.js docs2y ago
• 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.
mooz.tsx
mooz.tsx2y ago
That's their type check the js version and see their values
Almeida
Almeida2y ago
CNR
Almeida
Almeida2y ago
do you have discord-api-types listed in your dependencies or something?
Lilly
Lilly2y ago
I have it installed yes
Almeida
Almeida2y ago
remove it you can import everything from discord.js
Lilly
Lilly2y ago
well that screenshot ( the error one ) is from BEFORE i install api types tho and i import from discord.js anyway
Almeida
Almeida2y ago
doesnt matter you likely have a conflict of 2 versions of it
Lilly
Lilly2y ago
14.3 with api types installed ( wait the second screenshot is coming ) 14.4 with api types Uninstalled
Almeida
Almeida2y ago
try restarting the ts server or vscode entirely
Lilly
Lilly2y ago
ah ..... seems to work , that's weird 😅 well , Thanks !