Common Issues
Failed to fetch data from Discord API.
Possible Causes:
Invalid or Expired Bot Token
Ensure that
Config.Discord.botToken
is valid and has the necessary permissions to fetch member data from the guild.
Guild ID or Discord ID is Incorrect
Ensure
Config.Discord.id
(guild ID) anddiscordID
(user ID) are correct.
Bot Lacks Required Permissions
The bot needs the
GUILD_MEMBERS
intent enabled in the Discord Developer Portal.Ensure the bot has
Read Members
permission in the Discord server.
API Changes or Outage
Check Discord's status page (https://discordstatus.com/) to see if there are any ongoing issues.
Suggested Fixes:
Verify the Bot Token Ensure that
Config.Discord.botToken
is correct and hasn't expired.Check Cooldown You might need to adjust how frequently requests are made to avoid hitting Discord's limit.
Enable Privileged Intents Go to the Discord Developer Portal → Your Bot → "Privileged Gateway Intents" → Enable
SERVER MEMBERS INTEN