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