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