export class MessagePayloadRepresents a message to be sent to the API.
Constructors
constructor(target: MessageTargetoptions: MessagePayloadOption)
target: MessageTarget
options: MessagePayloadOption
body : RawMessagePayloadData | null
Body sendable to the API
readonlyisInteraction : boolean
Whether or not the target is an BaseInteraction or an InteractionWebhook
readonlyisMessageManager : boolean
Whether or not the target is a MessageManager
readonlyisWebhook : boolean
Whether or not the target is a Webhook or a WebhookClient
options : MessagePayloadOption
The payload of this message.
target : MessageTarget
The target for this message to be sent to
static create() : MessagePayload
Creates a MessagePayload from user-level arguments.
static resolveFile(fileLike: BufferResolvable | Stream | AttachmentPayload | JSONEncodable<AttachmentPayload>) : Promise<RawFile>
fileLike: BufferResolvable | Stream | AttachmentPayload | JSONEncodable<AttachmentPayload>
Resolves a single file into an object sendable to the API.
resolveFiles() : Promise<this>
Resolves files.