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

Discrepancy between dev portal and application directory for bot's installed server count #7316

Open
AlecM33 opened this issue Dec 19, 2024 · 1 comment

Comments

@AlecM33
Copy link

AlecM33 commented Dec 19, 2024

Description

See the thread in discord's dev support server. Else, read below:
https://discord.com/channels/613425648685547541/1318784803289563166

I noticed that my bot has a strange discrepancy in stated values of how many servers have installed the app. The dev portal states around 170 servers:

Screenshot_20241219-144414

However, viewing my app in the public app directory displays a value that is consistently 40-50 servers higher:

Screenshot_20241219-144539

I was advised in the dev support server thread to see what the GET /applications/{application-id} endpoint returns for the app, and the answer is the dev portal value of around 170 servers. At that point I was advised to open an issue here - I am uncertain how the app directory site is deriving 215 servers or so.

For reference, my applications ID is 777314683333771285.

Steps to Reproduce

  1. Retrieve application ID 777314683333771285 via discord's API. Note the approximate installed server count in the response.
  2. View the same app in the app directory site. Note the significant difference in value for the number of servers that have installed the bot.

Expected Behavior

The values eventually display close to the same value

Current Behavior

The values continue to disagree. I know caching or something may be in effect, but interestingly the app directory value is much higher, and the dev portal value, which is stated to update daily, remains much lower.

Screenshots/Videos

No response

Client and System Information

Viewing on Google Pixel 6a running Chrome

@thomasgtaylor
Copy link

I am experiencing this issue for an HTTP interaction-based application as well.

curl "https://discord.com/api/v10/applications/@me" \
  -H "Authorization: Bot $DISCORD_TOKEN" | jq ".approximate_guild_count"

Output: 0

curl "https://discord.com/api/v10/application-directory-static/applications/$APP_ID" | jq .directory_entry.guild_count

Output: 252

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

No branches or pull requests

2 participants