Class: Profile

Profile

new Profile(taskManager, community, auth, logger)

A class to handle all profile functions for the bot account
Parameters:
Name Type Description
taskManager
community
auth
logger
Source:

Methods

changeDisplayName(newName, namePrefix, callbackErrorOnly)

Change the display name of the account (with prefix)
Parameters:
Name Type Description
newName String The new display name
namePrefix String The prefix if there is one (Nullable)
callbackErrorOnly callbackErrorOnly A callback returned with possible errors
Source:

getDisplayName() → {String|undefined}

Get the display name of the account
Source:
Returns:
displayName - Display name of the account
Type
String | undefined

getSteamUser(id, callback)

Parameters:
Name Type Description
id Either a SteamID object or a user's URL (the part after /id/)
callback Called when the user's data is loaded and ready err - If an error occurred, this is an Error object. null otherwise. user - A CSteamUser instance
Source: