Closed dipamsen closed 11 months ago
Fixed!
Why do you think the discord.js guide includes this intent?
From discordjs.guide:
The GatewayIntentBits.Guilds intents option is necessary for the discord.js client to work as you expect it to, as it ensures that the caches for guilds, channels, and roles are populated and available for internal use.
So looks like even if we don't actually listen to guild events, discord.js behind the scenes uses them to populate client.guilds
, client.guild.channels
etc. This is not used in the current example, but will be needed when working with guild stuff later.
Thank you!
Fixes #12