mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-12 06:06:28 -05:00
Add inGameName to /api/user/{userId|discordId} route (#2918)
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user