>>

Create Message

This route requires a valid Authorization header.

POST/channels/<channel_id>/messages

Post a message to Eludris.

>>

Path Params

NameType
channel_idNumber
>>

Request Body

FieldTypeDescription
content?StringThe message’s content. The upper limit is the instance’s Instance Info message_limit.

Leading and trailing whitespace will be trimmed off the content.
attachmentsArray of AttachmentCreates
embedsArray of CustomEmbeds
reference?NumberThe ID of the message referenced by this message.
_disguise?MessageDisguise
>>

Response

201Message

FieldTypeDescription
idNumberThe ID of the message.
authorUserThe message’s author.
contentString?The message’s content.
reference?MessageThe message referenced by this message.
channelSphereChannelThe channel in which the message is sent.
attachmentsArray of AttachmentsThe attachments of this message.
embedsArray of EmbedsThe embeds of this message.
reactionsArray of ReactionsThe 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!"
}