Skip to content Skip to sidebar Skip to footer

Can't Reach Members

this is my code for displaying members in a role. But when i call this command for a role that has a lot of members in, it only returns my name. How i can fix it? V12 let role; if

Solution 1:

Hey there your issue is because of recent gateway changes of the Discord Api that the Guild cache is empty , you need to enable the intents here is a fix for you -

  • Head over to Discord Developers Portal
  • Choose your application
  • Inside the bot section if you scroll a little bit down , you will see a section named Privileged Gateway Intents
  • Enable the SERVER MEMBERS INTENT and restart the bot and you will find your cache is not limited to small number!

If this still dosent work try fetching all guild members - message.guild.members.fetch() Learn more about intents at Discord.js

Post a Comment for "Can't Reach Members"