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 User16mo ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical16mo ago
probably performance? shrug The enums are also better at showing what is deprecated
21Z
21Z16mo ago
hmm
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
21Z
21Z16mo ago
i thought performance would be better with enums
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
MrMythical
MrMythical16mo ago
uhhh internally... it imports the module and still uses the enum
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View