Class: UserBadge

January 23, 2026 ยท View on GitHub

steamapi


steamapi / UserBadge

Class: UserBadge

Defined in: structures/UserBadge.ts:1

Constructors

Constructor

new UserBadge(data): Badge

Defined in: structures/UserBadge.ts:26

Parameters

data

any

Returns

Badge

Properties

appID?

optional appID: number

Defined in: structures/UserBadge.ts:18

If this badge belongs to a game, this is the app ID of that game


borderColor?

optional borderColor: number

Defined in: structures/UserBadge.ts:24

If this badge belongs to a game, this is the border color for the badge. (note: seems to always be 0)


communityItemID?

optional communityItemID: number

Defined in: structures/UserBadge.ts:21

If this badge belongs to a game, this is the community item ID for the badge


completedTimestamp

completedTimestamp: number

Defined in: structures/UserBadge.ts:9

UNIX Timestamp for when this badge was completed


id

id: number

Defined in: structures/UserBadge.ts:3

This badge's ID


level

level: number

Defined in: structures/UserBadge.ts:6

The user's level for this badge


scarcity

scarcity: number

Defined in: structures/UserBadge.ts:15

How many have received this badge


xp

xp: number

Defined in: structures/UserBadge.ts:12

The amount of XP gained towards this badge

Accessors

completedAt

Get Signature

get completedAt(): Date

Defined in: structures/UserBadge.ts:40

Date when this badge was completed

Returns

Date