Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Conversation

Lixqa
Copy link
Contributor

@Lixqa Lixqa commented Jul 29, 2025

This PR refactors the GuildMemberManager.search method to use Discord's new /members-search endpoint, replacing the older search logic. The updated system allows for advanced, flexible, and structured member querying, using logical and range-based filters.

Using new query system:

  • "or" and "and" blocks
  • Range filters (gte/lte) for dates
  • Logical filters (or/and) for usernames, roles, and more
  • Support for internal safety signal filters

Why?

  • Greater flexibility
  • Enables precise user searches for bots, tools, and dashboards

@VillainsRule
Copy link

does this work if the user isn't a mod/admin?

@Lixqa
Copy link
Contributor Author

Lixqa commented Jul 29, 2025

does this work if the user isn't a mod/admin?

Nope, it requires access to the member safety.

@VillainsRule
Copy link

does this work if the user isn't a mod/admin?

Nope, it requires access to the member safety.

that's a problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants