Represents a message to be sent to the API.
| Name | Type | Optional | Description |
|---|---|---|---|
| target | MessageTarget | No | None |
| options | MessagePayloadOption | No | None |
This will no longer serve a purpose in the next major version.
Deprecated
Whether or not the target is a MessageManager
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.