Create Message
This route requires a valid Authorization header.
POST/channels/<channel_id>/messages
Post a message to Eludris.
Path Params
| Name | Type | 
|---|---|
| channel_id | Number | 
Request Body
| Field | Type | Description | 
|---|---|---|
| content? | String | The message’s content. The upper limit is the instance’s Instance Info message_limit.Leading and trailing whitespace will be trimmed off the content.  | 
| attachments | Array of AttachmentCreates | |
| embeds | Array of CustomEmbeds | |
| reference? | Number | The ID of the message referenced by this message. | 
| _disguise? | MessageDisguise | 
Response
201Message
| Field | Type | Description | 
|---|---|---|
| id | Number | The ID of the message. | 
| author | User | The message’s author. | 
| content | String? | The message’s content. | 
| reference? | Message | The message referenced by this message. | 
| channel | SphereChannel | The channel in which the message is sent. | 
| attachments | Array of Attachments | The attachments of this message. | 
| embeds | Array of Embeds | The embeds of this message. | 
| reactions | Array of Reactions | The reactions of this message. | 
| _disguise? | MessageDisguise | 
Example
curl \
  --json '{"author":"Not a weeb","content":"Hello, World!"}' \
  https://api.eludris.gay/messages
{
  "author": "Not a weeb",
  "content": "Hello, World!"
}