docs: added endpoints and object models

This commit is contained in:
SauceyRed 2025-05-02 01:42:24 +02:00
parent ebab7e4fb3
commit 142cc5a448
Signed by: sauceyred
GPG key ID: 4BEDD9C389F924D0
7 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#### <b><span style="color: lightgreen;">GET</span> <code>/v1/servers/{serverId}/channels/{channelId}/messages</code></b>
Retrieves all [[Message|messages]] in a [[Guild]].
##### Responses
| Status | Description |
| ------ | --------------------------------------------------------- |
| 200 | The request succeeded and the message object is returned. |
| 400 | The post request included poorly formated data. |
| 401 | User is not authenticated. |
| 403 | User does not have permission to view the message. |
| 500 | An unhandled error occurred. |
###### 200
Returns a [[Message]] object.
#### <b><span style="color: lightgreen;">GET</span> <code>/v1/servers/{serverId}/channels/{channelId}/messages/{messageId}</code></b>
Retrieves a [[Message]] from a channel.
##### Responses
| Status | Description |
| ------ | --------------------------------------------------------- |
| 200 | The request succeeded and the message object is returned. |
| 400 | The post request included poorly formated data. |
| 401 | User is not authenticated. |
| 403 | User does not have permission to view the message. |
| 500 | An unhandled error occurred. |
###### 200
Returns a [[Message]] object.