Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
MessagePayload
Class MessagePayload
Hierarchy
MessagePayloadData
MessagePayload
Index
Constructors
constructor
Properties
attachments
content
embeds
flags
nonce
reference
tts
Methods
json
from
Constructors
constructor
new
Message
Payload
(
data
:
MessagePayload
|
MessagePayloadData
)
:
MessagePayload
Parameters
data:
MessagePayload
|
MessagePayloadData
Returns
MessagePayload
Properties
Optional
attachments
attachments
?:
(
FileResolvable
|
MessagePayloadAttachment
)
[]
Optional
content
content
?:
string
Optional
embeds
embeds
?:
MessageEmbed
[]
Optional
flags
flags
?:
Types
.
MessageFlags
|
MessageFlags
Optional
nonce
nonce
?:
string
Optional
reference
reference
?:
MessagePayloadReference
Optional
tts
tts
?:
boolean
Methods
json
json
(
)
:
Promise
<
{
body
:
Partial
<
AddUndefinedToPossiblyUndefinedPropertiesOfInterface
<
{
allowed_mentions
?:
APIAllowedMentions
;
attachments
?:
(
Pick
<
APIAttachment
,
"id"
|
"description"
>
&
Partial
<
Pick
<
APIAttachment
,
"filename"
>
>
)
[]
;
components
?:
APIActionRowComponent
<
APIMessageActionRowComponent
>
[]
;
content
?:
string
;
embeds
?:
APIEmbed
[]
;
flags
?:
Types
.
MessageFlags
;
message_reference
?:
APIMessageReferenceSend
;
nonce
?:
string
|
number
;
sticker_ids
?:
[
string
]
|
[
string
,
string
]
|
[
string
,
string
,
string
]
;
tts
?:
boolean
}
>
>
;
files
:
File
[]
}
>
Returns
Promise
<
{
body
:
Partial
<
AddUndefinedToPossiblyUndefinedPropertiesOfInterface
<
{
allowed_mentions
?:
APIAllowedMentions
;
attachments
?:
(
Pick
<
APIAttachment
,
"id"
|
"description"
>
&
Partial
<
Pick
<
APIAttachment
,
"filename"
>
>
)
[]
;
components
?:
APIActionRowComponent
<
APIMessageActionRowComponent
>
[]
;
content
?:
string
;
embeds
?:
APIEmbed
[]
;
flags
?:
Types
.
MessageFlags
;
message_reference
?:
APIMessageReferenceSend
;
nonce
?:
string
|
number
;
sticker_ids
?:
[
string
]
|
[
string
,
string
]
|
[
string
,
string
,
string
]
;
tts
?:
boolean
}
>
>
;
files
:
File
[]
}
>
Static
from
from
(
value
:
string
|
MessagePayload
|
MessagePayloadData
)
:
MessagePayload
Parameters
value:
string
|
MessagePayload
|
MessagePayloadData
Returns
MessagePayload
Exports
Internals
Tokens
Externals
Types
Message
Payload
constructor
attachments
content
embeds
flags
nonce
reference
tts
json
from
Generated using
TypeDoc