Skip to content

Class: User

Extends: Base

Represents a user on Yurba

Constructors

Constructor

new User(client, data): User

Parameters

client

Client

The instantiating client

data

UserModel

The data for the user

Returns

User

Overrides

Base.constructor

Properties

id

readonly id: number

The user's ID

Accessors

bot

Get Signature

get bot(): boolean

Whether this user is a bot

Returns

boolean

Methods

_clone()

_clone(): any

Returns

any

Inherited from

Base._clone


toJSON()

toJSON(): UserModel

Returns the user data as JSON

Returns

UserModel

The user data


toString()

toString(): string

Returns a string representation of the user

Returns

string

The user's link with @ prefix


valueOf()

valueOf(): any

Returns

any

Inherited from

Base.valueOf