Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
User
Class User
Hierarchy
BaseStructure
<
APIUser
>
User
ExtendedUser
Index
Constructors
constructor
Properties
avatar
banner
bot
client
discriminator
dm
flags
id
system
username
Accessors
created
At
created
Timestamp
tag
Methods
_deserialise
createDM
fetch
send
toJSON
to
String
toJSON
Constructors
constructor
new
User
(
client
:
Client
, data
?:
APIUser
)
:
User
Parameters
client:
Client
Optional
data:
APIUser
Returns
User
Properties
avatar
avatar
:
null
|
string
= null
banner
banner
:
null
|
string
= null
bot
bot
:
boolean
= false
client
client
:
Client
discriminator
discriminator
:
string
= '0000'
dm
dm
:
null
|
DMChannel
= null
flags
flags
:
UserFlags
= ...
id
id
:
string
system
system
:
boolean
= false
username
username
:
string
Accessors
created
At
get
createdAt
(
)
:
Date
Returns
Date
created
Timestamp
get
createdTimestamp
(
)
:
number
Returns
number
tag
get
tag
(
)
:
string
Returns
string
Methods
_deserialise
_deserialise
(
data
:
APIUser
)
:
User
Parameters
data:
APIUser
Returns
User
createDM
createDM
(
cache
?:
boolean
)
:
Promise
<
DMChannel
>
Parameters
cache:
boolean
= false
Returns
Promise
<
DMChannel
>
fetch
fetch
(
)
:
Promise
<
User
>
Returns
Promise
<
User
>
send
send
(
content
:
string
|
MessagePayload
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
content:
string
|
MessagePayload
Returns
Promise
<
Message
<
TextChannel
>
>
toJSON
toJSON
(
)
:
APIUser
Returns
APIUser
to
String
to
String
(
)
:
string
Returns
string
Static
toJSON
toJSON
(
data
:
any
)
:
any
Parameters
data:
any
Returns
any
Exports
Internals
Tokens
Externals
Types
User
constructor
avatar
banner
bot
client
discriminator
dm
flags
id
system
username
created
At
created
Timestamp
tag
_deserialise
createDM
fetch
send
toJSON
to
String
toJSON
Generated using
TypeDoc