Skip to content

Commit

Permalink
fix reading twitch username
Browse files Browse the repository at this point in the history
  • Loading branch information
slugalisk committed Feb 14, 2022
1 parent e0f81f2 commit 195e517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/TwitchClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ uint64_t UsersResult::User::GetID() const {
}

std::string UsersResult::User::GetName() const {
return json::StringRef(data_["id"]);
return json::StringRef(data_["display_name"]);
}

std::string UsersResult::User::GetOfflineImageURL() const {
Expand Down

0 comments on commit 195e517

Please sign in to comment.