steam
Steam API library.
Modules
library
steam.achievements
The Garry's Mod Steam achievements library.
library
steam.workshop
The Steam Workshop API library.
Classes & types
type
steam.AchievementsInfo
Information about a Garry's Mod achievement.
class
steam.Identifier
A Steam ID, the identifier of a Steam account.
Functions
#steam.getUserName
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
| Name | Type | Description |
|---|---|---|
id | steam.Identifier | The Steam ID of the user, or its SteamID64 string. |
timeoutoptional | number | The timeout in seconds, 10 by default. |
Returns
| Type | Name | Description |
|---|---|---|
string | name | The Steam name of the user. |