-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Document with_counts param for GET /users/@me/guilds #5628
Conversation
iirc this is disabled for oauth2 and bots, and only works for user tokens has that changed? |
Well I'm using it in my project right now as we speak so I imagine it has. |
i remember something about this param needing both guild members read and guilds |
Just tested with a bot token, worked fine for me. |
docs/resources/Guild.md
Outdated
| approximate_member_count? | integer | approximate number of members in this guild, returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true` | | ||
| approximate_presence_count? | integer | approximate number of non-offline members in this guild, returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on bot tokens too, so I would suggest removing the "(OAuth2)" text from this.
Can't reproduce with following: GET /users/@me/guilds
{"with_counts": True} I get an exception:
What do I miss? I use a bot token |
it's a query param, gets don't take body's |
Ah okay. So e.g. |
Yep. |
* Document with_counts param for GET /users/@me/guilds * Update docs/resources/Guild.md --------- Co-authored-by: shay <[email protected]>
I noticed the with_counts query parameter isn't documented for
/users/@me/guilds
, this PR documents it.