Search
Preparing search index...
The search index is not available
@alexthemaster/moonlight
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"lib/extendables/MoonlightUser"
MoonlightUser
Class MoonlightUser
Hierarchy
User
MoonlightUser
Index
Constructors
constructor
Properties
avatar
bot
client
cooldowns
created
At
created
Timestamp
default
AvatarURL
discriminator
dm
Channel
flags
id
last
Message
last
MessageID
locale
partial
presence
system
tag
username
Methods
avatarURL
createDM
deleteDM
display
AvatarURL
equals
fetch
fetch
Flags
send
toJSON
to
String
typing
Duration
In
typing
In
typing
Since
In
value
Of
Constructors
constructor
new
Moonlight
User
(
client
:
Client
, data
:
object
)
:
MoonlightUser
Parameters
client:
Client
data:
object
Returns
MoonlightUser
Properties
avatar
avatar
:
string
|
null
bot
bot
:
boolean
Readonly
client
client
:
Client
Readonly
cooldowns
cooldowns
:
Map
<
Command
,
Date
>
= new Map<Command, Date>()
The Map that stores command cooldowns
Readonly
created
At
created
At
:
Date
Readonly
created
Timestamp
created
Timestamp
:
number
Readonly
default
AvatarURL
default
AvatarURL
:
string
discriminator
discriminator
:
string
Readonly
dm
Channel
dm
Channel
:
DMChannel
|
null
flags
flags
:
Readonly
<
UserFlags
>
|
null
id
id
:
Snowflake
Readonly
last
Message
last
Message
:
Message
|
null
last
MessageID
last
MessageID
:
Snowflake
|
null
locale
locale
:
string
|
null
Readonly
partial
partial
:
false
Readonly
presence
presence
:
Presence
system
system
:
boolean
|
null
Readonly
tag
tag
:
string
username
username
:
string
Methods
avatarURL
avatarURL
(
options
?:
ImageURLOptions
&
{
dynamic
?:
undefined
|
false
|
true
}
)
:
string
|
null
Parameters
Optional
options:
ImageURLOptions
&
{
dynamic
?:
undefined
|
false
|
true
}
Returns
string
|
null
createDM
createDM
(
)
:
Promise
<
DMChannel
>
Returns
Promise
<
DMChannel
>
deleteDM
deleteDM
(
)
:
Promise
<
DMChannel
>
Returns
Promise
<
DMChannel
>
display
AvatarURL
display
AvatarURL
(
options
?:
ImageURLOptions
&
{
dynamic
?:
undefined
|
false
|
true
}
)
:
string
Parameters
Optional
options:
ImageURLOptions
&
{
dynamic
?:
undefined
|
false
|
true
}
Returns
string
equals
equals
(
user
:
User
)
:
boolean
Parameters
user:
User
Returns
boolean
fetch
fetch
(
force
?:
undefined
|
false
|
true
)
:
Promise
<
User
>
Parameters
Optional
force:
undefined
|
false
|
true
Returns
Promise
<
User
>
fetch
Flags
fetch
Flags
(
force
?:
undefined
|
false
|
true
)
:
Promise
<
UserFlags
>
Parameters
Optional
force:
undefined
|
false
|
true
Returns
Promise
<
UserFlags
>
send
send
(
content
:
APIMessageContentResolvable
|
(
MessageOptions
&
{
split
?:
undefined
|
false
}
)
|
MessageAdditions
)
:
Promise
<
Message
>
send
(
options
:
MessageOptions
&
{
split
:
true
|
SplitOptions
}
)
:
Promise
<
Message
[]
>
send
(
options
:
MessageOptions
|
APIMessage
)
:
Promise
<
Message
|
Message
[]
>
send
(
content
:
StringResolvable
, options
:
(
MessageOptions
&
{
split
?:
undefined
|
false
}
)
|
MessageAdditions
)
:
Promise
<
Message
>
send
(
content
:
StringResolvable
, options
:
MessageOptions
&
{
split
:
true
|
SplitOptions
}
)
:
Promise
<
Message
[]
>
send
(
content
:
StringResolvable
, options
:
MessageOptions
)
:
Promise
<
Message
|
Message
[]
>
Parameters
content:
APIMessageContentResolvable
|
(
MessageOptions
&
{
split
?:
undefined
|
false
}
)
|
MessageAdditions
Returns
Promise
<
Message
>
Parameters
options:
MessageOptions
&
{
split
:
true
|
SplitOptions
}
Returns
Promise
<
Message
[]
>
Parameters
options:
MessageOptions
|
APIMessage
Returns
Promise
<
Message
|
Message
[]
>
Parameters
content:
StringResolvable
options:
(
MessageOptions
&
{
split
?:
undefined
|
false
}
)
|
MessageAdditions
Returns
Promise
<
Message
>
Parameters
content:
StringResolvable
options:
MessageOptions
&
{
split
:
true
|
SplitOptions
}
Returns
Promise
<
Message
[]
>
Parameters
content:
StringResolvable
options:
MessageOptions
Returns
Promise
<
Message
|
Message
[]
>
toJSON
toJSON
(
...
props
:
{}
[]
)
:
object
Parameters
Rest
...
props:
{}
[]
Returns
object
to
String
to
String
(
)
:
string
Returns
string
typing
Duration
In
typing
Duration
In
(
channel
:
ChannelResolvable
)
:
number
Parameters
channel:
ChannelResolvable
Returns
number
typing
In
typing
In
(
channel
:
ChannelResolvable
)
:
boolean
Parameters
channel:
ChannelResolvable
Returns
boolean
typing
Since
In
typing
Since
In
(
channel
:
ChannelResolvable
)
:
Date
Parameters
channel:
ChannelResolvable
Returns
Date
value
Of
value
Of
(
)
:
string
Returns
string
Globals
"lib/extendables/
Moonlight
User"
Moonlight
User
constructor
avatar
bot
client
cooldowns
created
At
created
Timestamp
default
AvatarURL
discriminator
dm
Channel
flags
id
last
Message
last
MessageID
locale
partial
presence
system
tag
username
avatarURL
createDM
deleteDM
display
AvatarURL
equals
fetch
fetch
Flags
send
toJSON
to
String
typing
Duration
In
typing
In
typing
Since
In
value
Of
Generated using
TypeDoc
The Map that stores command cooldowns