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

/members-search doesn't fetch a newly joined member's information #6781

Open
patrikcb opened this issue Apr 2, 2024 · 2 comments
Open

/members-search doesn't fetch a newly joined member's information #6781

patrikcb opened this issue Apr 2, 2024 · 2 comments
Labels
bug synced Synced to internal tracker

Comments

@patrikcb
Copy link

patrikcb commented Apr 2, 2024

Description

When using the /members-search endpoint for a member that joined the guild <20 seconds ago, their information doesn't show up, as if they aren't currently in the guild.

Steps to Reproduce

I'm not exactly sure how to do curl requests, since I'm using the API with the help of a third-party app (BotGhost).

  1. Have a member join the guild.
  2. Send the following request:
POST /guilds/guild.id/members-search
key: and_query
value: {
         "user_id": {
             "or_query": ["{Member.id}"]
         }}
  1. View first object from results

Expected Behavior

{
  "response": {
    "guild_id": "1211762421879013506",
    "members": [
      {
        "member": {
          "avatar": null,
          "communication_disabled_until": null,
          "flags": 0,
          "joined_at": "2024-03-05T14:22:57.835000+00:00",
          "nick": null,
          "pending": false,
          "premium_since": null,
          "roles": [
            "1215019331151331368",
            "1211765187372130435",
            "1214301016657232013"
          ],
          "unusual_dm_activity_until": null,
          "user": {
            "id": "819667609690701874",
            "username": "patrikcb",
            "avatar": "edf7ef2064062f9c6050c08f82b81e6e",
            "discriminator": "0",
            "public_flags": 4194304,
            "premium_type": 0,
            "flags": 4194304,
            "banner": null,
            "accent_color": null,
            "global_name": "Patrik",
            "avatar_decoration_data": null,
            "banner_color": null
          },
          "mute": false,
          "deaf": false
        },
        "source_invite_code": "BYQrz4PUYE",
        "join_source_type": 5,
        "inviter_id": "480126550868754465"
      }
    ],
    "page_result_count": 1,
    "total_result_count": 1
  },
  "status": 200,
  "statusText": "OK"
}

Current Behavior

{
  "response": {
    "guild_id": "1211762421879013506",
    "members": [],
    "page_result_count": 0,
    "total_result_count": 0
  }
}

Screenshots/Videos

Screenshot 2024-04-02 at 1 10 53 PM Screenshot 2024-04-02 at 1 11 00 PM

Client and System Information

I'm using BotGhost as my client, so I'm not exactly sure if that checks any criteria.

@patrikcb patrikcb added the bug label Apr 2, 2024
@Jupith
Copy link
Contributor

Jupith commented Apr 2, 2024

members, like anything, take a bit to be indexed.

@lmle lmle added the synced Synced to internal tracker label Apr 2, 2024
@patrikcb
Copy link
Author

patrikcb commented Apr 2, 2024

How long does it take at the maximum?

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

No branches or pull requests

3 participants