dreamworkAPI
Ctrl K
GitHub
libraryDocs / steam

steam

librarysharedmenusource

Steam API library.

Modules

Classes & types

Functions

#steam.getUserName

clientmenuasyncnodiscardsource
async function steam.getUserName(id: steam.Identifier, timeout?: number): string

Requests the Steam name of the user with the given Steam ID.

Fails with SteamError if Steam doesn't know the account (EResult 42) or doesn't respond in time (EResult 16).

Parameters
NameTypeDescription
idsteam.IdentifierThe Steam ID of the user, or its SteamID64 string.
timeoutoptionalnumberThe timeout in seconds, 10 by default.
Returns
TypeNameDescription
stringnameThe Steam name of the user.
Generated from the dreamwork meta branch.