Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
Message
Class Message<ChannelType>
Type parameters
ChannelType
:
TextChannel
=
TextChannel
Hierarchy
BaseStructure
<
APIMessage
>
Message
Index
Constructors
constructor
Properties
attachments
author
channel
Id
client
content
edited
Timestamp
embeds
flags
guild
Id
id
nonce
pinned
reference
timestamp
tts
type
Accessors
channel
created
At
created
Timestamp
edited
At
guild
member
referenced
Message
Methods
_deserialise
_modify
attach
delete
edit
fetch
Member
remove
Attachments
reply
set
Flags
suppress
Embeds
toJSON
toJSON
Constructors
constructor
new
Message
<
ChannelType
>
(
client
:
Client
, data
?:
APIMessage
)
:
Message
<
ChannelType
>
Type parameters
ChannelType
:
TextChannel
=
TextChannel
Parameters
client:
Client
Optional
data:
APIMessage
Returns
Message
<
ChannelType
>
Properties
attachments
attachments
:
MessageAttachment
[]
= []
author
author
:
ExtendedUser
|
User
channel
Id
channel
Id
:
string
client
client
:
Client
content
content
:
string
edited
Timestamp
edited
Timestamp
:
null
|
number
= null
embeds
embeds
:
MessageEmbed
[]
= []
flags
flags
:
MessageFlags
= ...
guild
Id
guild
Id
:
null
|
string
= null
id
id
:
string
nonce
nonce
:
null
|
string
|
number
= null
pinned
pinned
:
boolean
= false
reference
reference
:
null
|
MessageReference
= null
timestamp
timestamp
:
number
tts
tts
:
boolean
= false
type
type
:
MessageType
= MessageType.Default
Accessors
channel
get
channel
(
)
:
ChannelType
Returns
ChannelType
created
At
get
createdAt
(
)
:
Date
Returns
Date
created
Timestamp
get
createdTimestamp
(
)
:
number
Returns
number
edited
At
get
editedAt
(
)
:
null
|
Date
Returns
null
|
Date
guild
get
guild
(
)
:
null
|
Guild
Returns
null
|
Guild
member
get
member
(
)
:
null
|
GuildMember
Returns
null
|
GuildMember
referenced
Message
get
referencedMessage
(
)
:
null
|
Message
<
TextChannel
>
Returns
null
|
Message
<
TextChannel
>
Methods
_deserialise
_deserialise
(
data
:
APIMessage
)
:
Message
<
ChannelType
>
Parameters
data:
APIMessage
Returns
Message
<
ChannelType
>
_modify
_modify
(
data
:
Partial
<
APIMessage
>
, files
?:
File
[]
)
:
Promise
<
Message
<
ChannelType
>
>
Parameters
data:
Partial
<
APIMessage
>
Optional
files:
File
[]
Returns
Promise
<
Message
<
ChannelType
>
>
attach
attach
(
...
files
:
(
FileResolvable
|
MessagePayloadAttachment
)
[]
)
:
Promise
<
Message
<
ChannelType
>
>
Parameters
Rest
...
files:
(
FileResolvable
|
MessagePayloadAttachment
)
[]
Returns
Promise
<
Message
<
ChannelType
>
>
delete
delete
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
edit
edit
(
content
:
string
|
MessagePayload
|
MessagePayloadData
)
:
Promise
<
Message
<
ChannelType
>
>
Parameters
content:
string
|
MessagePayload
|
MessagePayloadData
Returns
Promise
<
Message
<
ChannelType
>
>
fetch
Member
fetch
Member
(
)
:
Promise
<
GuildMember
>
|
Promise
<
null
>
Returns
Promise
<
GuildMember
>
|
Promise
<
null
>
remove
Attachments
remove
Attachments
(
)
:
Promise
<
Message
<
ChannelType
>
>
Returns
Promise
<
Message
<
ChannelType
>
>
reply
reply
(
content
:
string
|
MessagePayload
|
MessagePayloadData
, cache
?:
boolean
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
content:
string
|
MessagePayload
|
MessagePayloadData
cache:
boolean
= false
Returns
Promise
<
Message
<
TextChannel
>
>
set
Flags
set
Flags
(
flags
:
number
|
MessageFlags
)
:
Promise
<
Message
<
ChannelType
>
>
Parameters
flags:
number
|
MessageFlags
Returns
Promise
<
Message
<
ChannelType
>
>
suppress
Embeds
suppress
Embeds
(
suppress
:
boolean
)
:
Promise
<
Message
<
ChannelType
>
>
alias
Message.setFlags
Parameters
suppress:
boolean
Returns
Promise
<
Message
<
ChannelType
>
>
toJSON
toJSON
(
)
:
APIMessage
Returns
APIMessage
Static
toJSON
toJSON
(
data
:
any
)
:
any
Parameters
data:
any
Returns
any
Exports
Internals
Tokens
Externals
Types
Message
constructor
attachments
author
channel
Id
client
content
edited
Timestamp
embeds
flags
guild
Id
id
nonce
pinned
reference
timestamp
tts
type
channel
created
At
created
Timestamp
edited
At
guild
member
referenced
Message
_deserialise
_modify
attach
delete
edit
fetch
Member
remove
Attachments
reply
set
Flags
suppress
Embeds
toJSON
toJSON
Generated using
TypeDoc
Message.setFlags