Carbon
Core/Type Aliases

MessagePayload

MessagePayload = { allowedMentions: AllowedMentions; components: TopLevelComponents[]; 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: TopLevelComponents[]; content: string; embeds: Embed[]; files: MessagePayloadFile[]; flags: number; tts: boolean; }

NameTypeDescription
allowedMentions?AllowedMentionsThe settings for which mentions are allowed in the message
components?TopLevelComponents[]The components to send in the message
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