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

feat: added approximate_user_install_count field to application #1293

Merged
merged 15 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading