What's the difference between GatewayIntentBits.Guilds and using 'Guilds'
in discord.js v13 i can see it was Intents.FLAGS.GUILDS
in discord.js v14 it's changed to GatewayIntentBits.Guilds
but... using just 'Guilds' works too.
so then why should i use GatewayIntentBits, will the old method ('Guilds') be removed in the future?
Does it improve performance?
the same goes to ActivityType, PermissionsBitField etc..
8 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
probably performance?
The enums are also better at showing what is deprecated
hmm
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i thought performance would be better with enums
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
uhhh
internally... it imports the module and still uses the enum
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View