Skip to content

Commit

Permalink
feat: added approximate_user_install_count field to application class
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandserver committed Oct 18, 2024
1 parent 20dc2f0 commit ec7edbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/dpp/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ class DPP_EXPORT application : public managed, public json_interface<application
*/
uint64_t approximate_guild_count;

/**
* @brief Optional: Approximate count of users that have installed the app
*/
uint64_t approximate_user_install_count;

/**
* @brief Optional: Array of redirect URIs for the app.
*/
Expand Down
1 change: 1 addition & 0 deletions src/dpp/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ application& application::fill_from_json_impl(nlohmann::json* j) {
set_iconhash_not_null(j, "cover_image", cover_image);
set_int32_not_null(j, "flags", flags);
set_int64_not_null(j, "approximate_guild_count", approximate_guild_count);
set_int64_not_null(j, "approximate_user_install_count", approximate_user_install_count);

if (j->contains("redirect_uris")) {
for (const auto& uri : (*j)["redirect_uris"]) {
Expand Down

0 comments on commit ec7edbc

Please sign in to comment.