**Fix nickname retrieval in GuildRoutes**
Replaced `getNickname()` with `getEffectiveName()` to ensure the correct name is retrieved, falling back to the username when no nickname is set. This improves accuracy and consistency in member summaries.
This commit is contained in:
1 parent
87ba09b001
commit
dba7a84819
1 file changed
+1
-1
@@ -471,7 +471,7 @@ public final class GuildRoutes {
|
||||
Map<String, String> summary = new LinkedHashMap<>();
|
||||
summary.put("user_id", member.getId());
|
||||
summary.put("username", member.getUser().getName());
|
||||
summary.put("nickname", member.getNickname());
|
||||
summary.put("nickname", member.getEffectiveName());
|
||||
return summary;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user