Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PlayerAchievement

import type { PlayerAchievement } from "https://googleapis.deno.dev/v1/games:v1.ts";

An achievement object.

interface PlayerAchievement {
achievementState?: "HIDDEN" | "REVEALED" | "UNLOCKED";
currentSteps?: number;
experiencePoints?: bigint;
formattedCurrentStepsString?: string;
id?: string;
kind?: string;
lastUpdatedTimestamp?: bigint;
}

§Properties

§
achievementState?: "HIDDEN" | "REVEALED" | "UNLOCKED"
[src]

The state of the achievement.

§
currentSteps?: number
[src]

The current steps for an incremental achievement.

§
experiencePoints?: bigint
[src]

Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished.

§
formattedCurrentStepsString?: string
[src]

The current steps for an incremental achievement as a string.

§
id?: string
[src]

The ID of the achievement.

§
kind?: string
[src]

Uniquely identifies the type of this resource. Value is always the fixed string games#playerAchievement.

§
lastUpdatedTimestamp?: bigint
[src]

The timestamp of the last modification to this achievement's state.