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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical2y ago
probably performance? shrug The enums are also better at showing what is deprecated
21Z
21ZOP2y ago
hmm
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
21Z
21ZOP2y ago
i thought performance would be better with enums
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical2y ago
uhhh internally... it imports the module and still uses the enum
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server