Carbon
Core/Type Aliases

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; }

NameTypeDescription
allowedMentions?AllowedMentionsThe settings for which mentions are allowed in the message
components?Row[]The components to send in the message, listed in rows
content?stringThe content of the message
embeds?Embed[]The embeds of the message
files?MessagePayloadFile[]The files to send in the message
flags?numberThe flags for the message
tts?booleanWhether the message should be TTS

string

On this page