Typescript: GatewayIntentBits is not exported #10615
Replies: 1 comment
-
You need to review your tsconfig.json, specifically |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which package is this bug report for?
discord.js
Issue description
I am trying to use discord.js with TypeScript. However, I am unable to import
GatewayIntentBits
. My IDE is complaining that the element has not been exported. Is passing gateway intents as strings instead of using the enum the only option in typescript?Minimal code in a .ts file:
and my
tsconfig
:Code sample
No response
Versions
Issue priority
Low (slightly annoying)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildPresences, GuildMessages, MessageContent
I have tested this issue on a development release
No response
Beta Was this translation helpful? Give feedback.
All reactions