#+) Typescript autocomplete
33 messages · Page 1 of 1 (latest)
• 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.
you need to enable message content intent
(new Client({intents: [32767], partials: ['CHANNEL']}
Is '32767' not the master permission?
no.
never was, never will be, as there is no concept of "this intent is everything"
oops..! thx,
don't use magic numbers
I tried using const , but it didn't work. Will be corrected soon
no, making it js const intents = 32767 new Client({ intents: intents })does not count as not using magic numbers
use the enums we provide to have way better and actually readable way of providing intents
With intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent],
fixed
Thx!
++
Autocomplete isn't as good in Typescript as in JavaScript.
@wooden canopyes doesn't seem to exist, is there any way?
+) Typescript autocomplete
the autocomplete in typescript is at least order of magnitude better than for javscript, even if in vsc both run on technically same thing
but it doesn't work well..
But if I change the extension to .js it works better
...
Normal nodejs not discordjs works fine