Common Issues

Failed to fetch data from Discord API.

Possible Causes:

  1. Invalid or Expired Bot Token

    • Ensure that Config.Discord.botToken is valid and has the necessary permissions to fetch member data from the guild.

  2. Guild ID or Discord ID is Incorrect

    • Ensure Config.Discord.id (guild ID) and discordID (user ID) are correct.

  3. 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.

  4. API Changes or Outage

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