From 26898deeec7c0cab08570c54fc40a300dd448850 Mon Sep 17 00:00:00 2001 From: Jupith <51760248+Jupith@users.noreply.github.com> Date: Thu, 13 Jul 2023 20:32:04 +0100 Subject: [PATCH] Adds approx guild count and get self application endpoint (#5971) * Add endpoint * Add new fields * Update docs/resources/Application.md Co-authored-by: IllagerCaptain <76600137+IllagerCaptain@users.noreply.github.com> * Update docs/resources/Application.md Co-authored-by: shay * Update docs/resources/Application.md Co-authored-by: shay * Update docs/resources/Application.md Co-authored-by: shay * Update docs/resources/Application.md Co-authored-by: shay --------- Co-authored-by: IllagerCaptain <76600137+IllagerCaptain@users.noreply.github.com> Co-authored-by: shay --- docs/resources/Application.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/resources/Application.md b/docs/resources/Application.md index 3cb392fc8e..7f67ab761d 100644 --- a/docs/resources/Application.md +++ b/docs/resources/Application.md @@ -19,11 +19,13 @@ | summary *(deprecated)* | string | **deprecated and will be removed in v11.** An empty string. | | verify_key | string | the hex encoded key for verification in interactions and the GameSDK's [GetTicket](#DOCS_GAME_SDK_APPLICATIONS/getticket) | | team | ?[team](#DOCS_TOPICS_TEAMS/data-models-team-object) object | if the application belongs to a team, this will be a list of the members of that team | -| guild_id? | snowflake | if this application is a game sold on Discord, this field will be the guild to which it has been linked | +| guild_id? | snowflake | guild associated with the app. For example, a developer support server. | +| guild? | partial [guild](#DOCS_RESOURCES_GUILD/guild-object) object | a partial object of the associated guild | | primary_sku_id? | snowflake | if this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists | | slug? | string | if this application is a game sold on Discord, this field will be the URL slug that links to the store page | | cover_image? | string | the application's default rich presence invite [cover image hash](#DOCS_REFERENCE/image-formatting) | | flags? | integer | the application's public [flags](#DOCS_RESOURCES_APPLICATION/application-object-application-flags) | +| approximate_guild_count? | integer | an approximate count of the app's guild membership. | | tags? | array of strings | up to 5 tags describing the content and functionality of the application | | install_params? | [install params](#DOCS_RESOURCES_APPLICATION/install-params-object) object | settings for the application's default in-app authorization link, if enabled | | custom_install_url? | string | the application's default custom authorization link, if enabled | @@ -95,3 +97,7 @@ | ----------- | ---------------- | ---------------------------------------------------------------------------------------------------------- | | scopes | array of strings | the [scopes](#DOCS_TOPICS_OAUTH2/shared-resources-oauth2-scopes) to add the application to the server with | | permissions | string | the [permissions](#DOCS_TOPICS_PERMISSIONS) to request for the bot role | + +## Get Current Application % GET /applications/@me + +Returns the [application](#DOCS_RESOURCES_APPLICATION/application-object) object associated with the requesting bot user.