Giter VIP home page Giter VIP logo

Comments (2)

p0ryae avatar p0ryae commented on August 27, 2024

reason is beacuse of the intents:

Maintaining a stateful application can be difficult when it comes to the amount of data you're expected to process, especially at scale. Gateway Intents are a system to help you lower that computational burden.

Some intents are defined as "Privileged" due to the sensitive nature of the data. Those intents are:

GUILD_PRESENCES
GUILD_MEMBERS

Once your bot reaches 100 or more servers, Privileged Intents require Verification and whitelisting.

My bot uses those intents! How do I fix this?

First you need to go to your bot page on the discord developer portal and click on 'bot', below your token enable these two features https://i.imgur.com/WfBLtXY.png.
once you have done that now you have to implement the intents into your bot! you can do this by simply going to your index.js file and where you defined client/bot add the partials like this:

new Discord.Client({ ws: { intents: ['GUILDS', 'GUILD_MESSAGES', 'GUILD_MEMBERS', 'GUILD_PRESENCES'] } });

now you just have to commit and you are done!

from discord-xp.

MrAugu avatar MrAugu commented on August 27, 2024

You either enable GUILD_MEMBERS intent, or use latest version v1.1.7 and pass the fetchUsers argument as third argument to computeLeaderboard function (but its slower & does not require gateway intents). Please do note that this new version contains braking changes to the existing code, check latest changelog and examples for more information on how to update.

from discord-xp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.