Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role requestment #38

Open
bitcandy opened this issue Dec 28, 2023 · 5 comments
Open

role requestment #38

bitcandy opened this issue Dec 28, 2023 · 5 comments

Comments

@bitcandy
Copy link

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

@bitcandy
Copy link
Author

bitcandy commented Dec 28, 2023

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" ?

@bitcandy
Copy link
Author

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 :-)

@xhyrom
Copy link
Member

xhyrom commented Dec 29, 2023

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.

@bitcandy
Copy link
Author

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.

@xhyrom
Copy link
Member

xhyrom commented Dec 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants