Open bitcandy opened 8 months ago
I see the problem. It count new member as "fake" or valid at the moment when the new member added to the server. To group them as "role" (have verified role) need to re-check each invite after some time something as full resync, right? Maybe not possible at all ass discord will limit request?
Or maybe separated table of "members" at db and keep track periodically if they have the role and when show leaderboard add this info from db. But still hard and a lot of request to discord api if there are a lot of members at the server.
Or maybe discord can notify bot about event of "role changed" ?
Seems possible to add listened for guildMemberUpdate event, and update counters if undated member added to role or removed. Now need to understand how you currently manage members at your local db and is it possible to track changes :-)
This project is no longer maintained by us, sorry. If you want, you can make PR, i'll accept it. However, I suggest you take a look at some other projects, e.g. https://github.com/Bes-js/advanced-invite-bot (uses https://www.npmjs.com/package/discord-invite)
Discord also has a new feature called "Members" where you can see everyone and also the invites they have used. You can create a self-bot to track connections from this and it will be even better and 100% true.
Thank you!
Maybe any source where this new feature "Members" used? I'm new to discord and with good example it will be much easy to understand.
Thank you!
Maybe any source where this new feature "Members" used? I'm new to discord and with good example it will be much easy to understand.
https://support.discord.com/hc/en-us/articles/15946797617431-Members-Page
Hello, can you please add "role requirement". The idea is to count only member who was invited and then (after some time) who received the role. Is it possible? Maybe count this invite at reparate category as "role"... Or if not have role count as "fake".