Skip to main content
Module

x/steam_trader/deps.ts>SteamID

https://deno.land/x/steam_trader
Latest
class SteamID
import { SteamID } from "https://deno.land/x/steam_trader@v0.4.0/deps.ts";

Constructors

new
SteamID(input?: string | number)

Properties

accountid: number
format: Format
getAccountID: () => number

Return the Account ID of the current ID

getFormat: () => Format

Return the format that was used to generate the current ID

getInstance: () => string

Return the Instance of the current ID

getInstanceID: () => number

Return the Instance ID of the current ID

getSteam2ID: (format?: boolean) => string

Render this ID in the Steam2 format

getSteam3ID: () => string

Render this ID in the Steam3 format

getSteamID64: () => string

Render this ID in the 64-bit format

getType: () => string

Return the Type of the current ID

getTypeID: () => number

Return the Type ID of the current ID

getUniverse: () => string

Return the Universe of the current ID

getUniverseID: () => number

Return the Universe ID of the current ID

instance: number
isGroupChat: () => boolean

Check whether this ID is tied to a steam groupchat

isLobby: () => boolean

Check whether this ID is a steam lobby

isValid: () => boolean

Check whether this ID is valid

toString

Render this ID in the 64-bit format

type: number
universe: number

Static Properties

Instance
Type
Universe

Static Methods

fromIndividualAccountID(accountid: number | string): SteamID

Create an individual ID in the public universe with an accountid and desktop instance