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

New Plugin: RoleMembersViewer #3199

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

okisooo
Copy link

@okisooo okisooo commented Feb 2, 2025

This plugin lets you quickly view role members through a submenu in two contexts:

Dev Context Menu

Dev Context Screenshot

Message Context Menu

Message Context Screenshot

Key Technical Points:

  • Chunked Fetching:
    Uses FluxDispatcher to dispatch multiple GUILD_MEMBERS_REQUEST events, ensuring even offline members are picked up in large servers.

  • Efficient Filtering & Sorting:
    Compares current GuildMemberStore count to the expected memberCount to trigger additional fetches only when needed. Retrieved members are then filtered by role and sorted alphabetically.

  • Context-Specific Integration:

    • Dev Context: Immediately displays a submenu when right-clicking a role in a user profile—ideal for audits and troubleshooting.
    • Message Context: Deduplicates role mentions to generate a clean, consolidated submenu for quick checks.
  • Live Updates:
    Uses GuildMemberStore's dynamic updates to reflect real-time changes as members come online or offline.

I would like to add that I've seen a similar plugin as a pull request, however since my plugin is different in functionality and we were pretty much working on it at the same time, I thought it'd be more appropriate to make my own pull request, but I have no problem in collaborating with the other plugin author if necessary!

@wheredoweallgo
Copy link

this could help out a lot when it comes to massive discord servers esp for moderation and the amount of roles they have

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

Successfully merging this pull request may close these issues.

2 participants