Add inGameName to /api/user/{userId|discordId} route (#2918)

This commit is contained in:
Josiah Glosson
2026-03-28 07:43:24 -05:00
committed by GitHub
parent 2db6e6bc01
commit 555f025d10
2 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
"User.customUrl",
"User.discordId",
"User.discordAvatar",
"User.inGameName",
"User.pronouns",
"PlusTier.tier",
jsonArrayFrom(
@@ -91,6 +92,7 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
: null,
url: `https://sendou.ink/u/${user.customUrl ?? user.discordId}`,
country: user.country,
inGameName: user.inGameName,
pronouns: user.pronouns,
plusServerTier: user.tier as GetUserResponse["plusServerTier"],
socials: {

View File

@@ -38,6 +38,12 @@ export interface GetUserResponse {
badges: Array<Badge>;
/** Teams user is member of. The main team is always first in the array. */
teams: Array<GlobalTeamMembership>;
/**
* Splatoon 3 splashtag name & ID, if one is set.
*
* @example "Sendou#2955"
*/
inGameName: string | null;
/**
* User's pronouns.
*