Class: User
Extends: Base
Represents a user on Yurba
Constructors
Constructor
new User(
client,data):User
Parameters
| Name | Type | Description |
|---|---|---|
client | Client | The instantiating client |
data | UserModel | The data for the user |
Returns
User
Overrides
Properties
id
readonlyid: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
toJSON()
toJSON():
UserModel
Returns the user data as JSON
Returns
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