openfrontio-api-client
    Preparing search index...

    Function getPlayerInfo

    • Get Player Info Retrieve information and stats for a specific player.

      Parameters

      Returns Promise<
          {
              createdAt: string;
              games: {
                  clientId?: string;
                  difficulty: Difficulty;
                  gameId: string;
                  map: GameMapType;
                  mode: GameMode;
                  start: string;
                  type: GameType;
              }[];
              stats: Partial<
                  Record<
                      GameType,
                      Partial<
                          Record<
                              GameMode,
                              Partial<
                                  Record<
                                      Difficulty,
                                      {
                                          losses: bigint;
                                          stats?: {
                                              attacks?: ...;
                                              betrayals?: ...;
                                              boats?: ...;
                                              bombs?: ...;
                                              conquests?: ...;
                                              gold?: ...;
                                              killedAt?: ...;
                                              units?: ...;
                                          };
                                          total: bigint;
                                          wins: bigint;
                                      },
                                  >,
                              >,
                          >,
                      >,
                  >,
              >;
              user?: {
                  avatar: string
                  | null;
                  discriminator: string;
                  global_name: string | null;
                  id: string;
                  username: string;
              };
          },
      >