Class: UserAchievement

January 23, 2026 ยท View on GitHub

steamapi


steamapi / UserAchievement

Class: UserAchievement

Defined in: structures/UserAchievement.ts:1

Constructors

Constructor

new UserAchievement(data): UserAchievement

Defined in: structures/UserAchievement.ts:15

Parameters

data

any

Returns

UserAchievement

Properties

name

name: string

Defined in: structures/UserAchievement.ts:3

API name for this achievement (e.g. ACH03, TF_GET_TURRETKILLS, Champion)


unlocked

unlocked: boolean

Defined in: structures/UserAchievement.ts:6

Whether the user has unlocked this achievement


unlockedTimestamp?

optional unlockedTimestamp: number

Defined in: structures/UserAchievement.ts:13

Unix Timestamp for when the user unlocked this achievement. Is 0 if the user has not unlocked this achievement. Only defined when calling getUserAchievements()

Accessors

unlockedAt

Get Signature

get unlockedAt(): undefined | Date

Defined in: structures/UserAchievement.ts:23

Date when this achievement was unlocked

Returns

undefined | Date