Skip to content

Commit

Permalink
feat: added approximate_user_install_count field to application (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandserver authored Oct 19, 2024
1 parent 626157e commit 73c4751
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 73c4751

Please sign in to comment.