Skip to main content

User class

not to be confused with Player

Properties

name string

name

The User's Roblox username

id string

id

The User's Roblox user ID

displayName string

displayName

The User's Roblox display name

aboutMe string

aboutMe

The User's Roblox 'About me' section

accountCreated Date

accountCreated

A Date object of when the User's account was created

robloxVerified boolean

robloxVerified

If the User is verified by Roblox (also has verified badge on profile page)

robloxBanned boolean

robloxBanned

If the User's Roblox account is terminated

Methods

constructor(userID: string, username: string, displayName: string, description: string, accountCreatedUnix: string, isVerified: boolean, isBanned: boolean) returns User

constructor

Creates a Server object with the provided server key and optional authorization key.

ban(server: Server) returns void

ban

Ban the User from the given server with the given reason