For some reason I cannot get any members anymore from the guild the bot is in.
To make sure I have the users, I construct it with
DiscordSocket
This is a result of Discord enforcing intents.
Intents allow you to opt-in to certain gateway events. Currently, the GUILD_MEMBERS and GUILD_PRESENCES intents are "privileged intents" and have the following effects:
Privileged intents are disabled by default. To enable them:
If your bot is in over 100 guilds, you will need to verify your bot: https://dis.gd/bot-verification. If your bot is already verified, but need to request intents permission, contact Discord support: https://dis.gd/contact.