Represents a message to be sent to the API.
Name | Type | Optional | Description |
---|---|---|---|
target | MessageTarget | No | None |
options | MessagePayloadOption | No | None |
Whether or not the target is an BaseInteraction or an InteractionWebhook
Whether or not the target is a Message
Whether or not the target is a MessageManager
Whether or not the target is a User
Whether or not the target is a Webhook or a WebhookClient
Creates a MessagePayload from user-level arguments.
Name | Type | Optional | Description |
---|---|---|---|
target | MessageTarget | No | Target to send to |
options | string | MessagePayloadOption | No | Options or content to use |
extra | MessagePayloadOption | Yes | Extra options to add onto specified options |
Makes the content of this message.
Returns
Resolves the body.
Resolves a single file into an object sendable to the API.
Name | Type | Optional | Description |
---|---|---|---|
fileLike | BufferResolvable | Stream | AttachmentPayload | JSONEncodable<AttachmentPayload> | No | Something that could be resolved to a file |
Resolves files.