MessagePayload
MessagePayload = {
allowedMentions
:AllowedMentions
;components
:Row
[];content
:string
;embeds
:Embed
[];files
:MessagePayloadFile
[];flags
:number
;tts
:boolean
; } |string
/**
- The data that is sent to Discord when sending a message.
- If you pass just a string, it will be treated as the content of the message.
Type declaration
{ allowedMentions
: AllowedMentions
; components
: Row
[]; content
: string
; embeds
: Embed
[]; files
: MessagePayloadFile
[]; flags
: number
; tts
: boolean
; }
Name | Type | Description |
---|---|---|
allowedMentions? | AllowedMentions | The settings for which mentions are allowed in the message |
components? | Row [] | The components to send in the message, listed in rows |
content? | string | The content of the message |
embeds? | Embed [] | The embeds of the message |
files? | MessagePayloadFile [] | The files to send in the message |
flags? | number | The flags for the message |
tts? | boolean | Whether the message should be TTS |
string