Options
All
  • Public
  • Public/Protected
  • All
Menu

Class User

Represents an user on Roblox.

Hierarchy

Index

Constructors

constructor

  • new User(client: any, data: any): User
  • Creates a new user with the json response from API call.

    internal

    Parameters

    • client: any

      the client that instancied this class

    • data: any

      the json response from API call

    Returns User

Properties

avatar

avatar: Avatar

The user's avatar

remarks

Must be fetched with User.fetchAvatar.

Readonly client

client: Client

Readonly createdAt

createdAt: Date

description

description: string

displayName

displayName: string

Readonly id

id: number

isBanned

isBanned: boolean

isFriend

isFriend: boolean

Readonly name

name: string

Methods

addFriend

  • addFriend(): Promise<any>

getFriends

  • getFriends(): Promise<Friend[]>

getPresence

Generated using TypeDoc