Skip to content

Commit b837660

Browse files
author
BuildTools
committed
getGlobalDisplayName()
1 parent edf31be commit b837660

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/java/material/user/BungieUser.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,18 @@ public String getDisplayName() {
133133
return displayName;
134134
}
135135

136+
/**
137+
* Returns the Global Display Name of the user across all Destiny Platforms
138+
* Should be used instead of getDisplayName
139+
*/
136140
public String getGlobalDisplayName() {
137141
getJE();
138142

139143
if(globalDisplayName == null) {
140144

145+
// LinkedProfiles is not populated with bungieGlobalDisplayName as of 8/29/2021: github issue #1511
146+
// As far as I know, getSupplementalDisplayName is also the bungieGlobalDisplayName
147+
globalDisplayName = getSupplementalDisplayName().split("#")[0];
141148
}
142149

143150
return globalDisplayName;

0 commit comments

Comments
 (0)