Trying to fetch the list of users on a discord guild(server) but whenever I fetch the list it always returns 1 user that is the bot itself. Tried to execute
console.log(client.guilds.cache.get(config.SERVER_ID).members.cache.size)
console.log(client.guilds.cache.get(config.SERVER_ID).memberCount)
The first line returns 1 and second-line returns 420(number of users on discord server). I am not able to update the client's cache. Any help would be appreciated