**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:
anthorob committed 2026-10-28 03:58:31 -04:00
1 parent 87ba09b001
commit dba7a84819
1 file changed
+1 -1
@@ -471,7 +471,7 @@ public final class GuildRoutes {
Map<String, String> summary = new LinkedHashMap<>(); Map<String, String> summary = new LinkedHashMap<>();
summary.put("user_id", member.getId()); summary.put("user_id", member.getId());
summary.put("username", member.getUser().getName()); summary.put("username", member.getUser().getName());
summary.put("nickname", member.getNickname()); summary.put("nickname", member.getEffectiveName());
return summary; return summary;
} }