docs: fix more links
This commit is contained in:
parent
ea12d693ed
commit
d45796629b
4 changed files with 33 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
||||||
#### <b><span style="color: lightgreen;">GET</span> <code>/v1/servers/{serverId}/channels/{channelId}/messages</code></b>
|
#### <b><span style="color: lightgreen;">GET</span> <code>/v1/servers/{serverId}/channels/{channelId}/messages</code></b>
|
||||||
Retrieves all [messages](../../../../../../models/Message.md) in a [Guild](../../../../../../models/Guild.md).
|
Retrieves all [messages](../../../../../../models/Message.md#message-object) in a [Guild](../../../../../../models/Guild.md#guild-object).
|
||||||
##### Responses
|
##### Responses
|
||||||
|
|
||||||
| Status | Description |
|
| Status | Description |
|
||||||
|
@ -11,9 +11,9 @@ Retrieves all [messages](../../../../../../models/Message.md) in a [Guild](../..
|
||||||
| 500 | An unhandled error occurred. |
|
| 500 | An unhandled error occurred. |
|
||||||
|
|
||||||
###### 200
|
###### 200
|
||||||
Returns a [[Message]] object.
|
Returns a [Message](../../../../../../models/Message.md#message-object) object.
|
||||||
#### <b><span style="color: lightgreen;">GET</span> <code>/v1/servers/{serverId}/channels/{channelId}/messages/{messageId}</code></b>
|
#### <b><span style="color: lightgreen;">GET</span> <code>/v1/servers/{serverId}/channels/{channelId}/messages/{messageId}</code></b>
|
||||||
Retrieves a [[Message]] from a channel.
|
Retrieves a [Message](../../../../../../models/Message.md#message-object) from a [Channel]((../../../../../../models/Channel.md#channel-object)).
|
||||||
##### Responses
|
##### Responses
|
||||||
|
|
||||||
| Status | Description |
|
| Status | Description |
|
||||||
|
@ -25,4 +25,4 @@ Retrieves a [[Message]] from a channel.
|
||||||
| 500 | An unhandled error occurred. |
|
| 500 | An unhandled error occurred. |
|
||||||
|
|
||||||
###### 200
|
###### 200
|
||||||
Returns a [[Message]] object.
|
Returns a [Message](../../../../../../models/Message.md#message-object) object.
|
|
@ -10,7 +10,7 @@ Represents a guild in an [Instance](Instance.md).
|
||||||
| name | string | Name of the guild |
|
| name | string | Name of the guild |
|
||||||
| icon | string | URL for the icon |
|
| icon | string | URL for the icon |
|
||||||
| owner_id | string | ID of the owner |
|
| owner_id | string | ID of the owner |
|
||||||
| roles | array of [[#Role Object\|Role]] objects | Roles in the guild |
|
| roles | array of [Role](Role.md#role-object) objects | Roles in the guild |
|
||||||
| emojis | array of [Emoji](Emoji.md#emoji-object) objects | Emojis in the guild |
|
| emojis | array of [Emoji](Emoji.md#emoji-object) objects | Emojis in the guild |
|
||||||
| member_count | integer | Number of members in the guild |
|
| member_count | integer | Number of members in the guild |
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
## Message Object
|
## Message Object
|
||||||
Represents a message in a [Channel](Channel.md)/DM.
|
Represents a message in a [Channel](Channel.md#channel-object)/DM.
|
||||||
|
|
||||||
**Structure**
|
**Structure**
|
||||||
|
|
||||||
| Field | Type | Description |
|
| Field | Type | Description |
|
||||||
| ----------- | -------------------------------------------------------------- | ----------------------------------------------- |
|
| ----------- | ------------------------------------------------- | ----------------------------------------------- |
|
||||||
| id | string | ID of the message |
|
| id | string | ID of the message |
|
||||||
| channel_id | string | ID of the channel the message was sent it |
|
| channel_id | string | ID of the channel the message was sent it |
|
||||||
| author | [User](User.md#user-object) object | Author of the message |
|
| author | [User](User.md#user-object) object | Author of the message |
|
||||||
| content | string | Content of the message |
|
| content | string | Content of the message |
|
||||||
| created_at | timestamp | When the message was sent |
|
| created_at | timestamp | When the message was sent |
|
||||||
| edited | timestamp \| null | When this message was edited, null if it hasn't |
|
| edited | timestamp \| null | When this message was edited, null if it hasn't |
|
||||||
| attachments | array of [Attachment](Attachment.md#attachment-object) objects | Files attached with the message, empty if none |
|
| attachments | array of [Attachment](#attachment-object) objects | Files attached with the message, empty if none |
|
||||||
| embeds | array of [Embed](Embed.md#embed-object) objects | Embeds sent with the message, empty if none |
|
| embeds | array of [Embed](#embed-object) objects | Embeds sent with the message, empty if none |
|
||||||
**Example Message**
|
**Example Message**
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -33,15 +33,15 @@ Represents a message in a [Channel](Channel.md)/DM.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Embed Object
|
## Embed Object
|
||||||
Represents an embed in a [[#Message Object|Message]].
|
Represents an embed in a [Message](Message.md#message-object).
|
||||||
|
|
||||||
**Structure**
|
**Structure**
|
||||||
|
|
||||||
| Field | Type | Description |
|
| Field | Type | Description |
|
||||||
| ------ | ----------------------------------------- | ------------------- |
|
| ------ | --------------------------------------- | ------------------- |
|
||||||
| title | string | Title of the embed |
|
| title | string | Title of the embed |
|
||||||
| color | integer | Color of the embed |
|
| color | integer | Color of the embed |
|
||||||
| fields | array of [[#Field Object\|Field]] objects | Fields of the embed |
|
| fields | array of [Field](#field-object) objects | Fields of the embed |
|
||||||
|
|
||||||
**Example Embed**
|
**Example Embed**
|
||||||
```json
|
```json
|
||||||
|
@ -56,7 +56,7 @@ Represents an embed in a [[#Message Object|Message]].
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
### Field Object
|
### Field Object
|
||||||
Represents a field in an [[#Embed Object|Embed]].
|
Represents a field in an [Embed](#embed-object).
|
||||||
**Structure**
|
**Structure**
|
||||||
|
|
||||||
| Field | Type | Description |
|
| Field | Type | Description |
|
||||||
|
@ -72,7 +72,7 @@ Represents a field in an [[#Embed Object|Embed]].
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
## Attachment Object
|
## Attachment Object
|
||||||
Represents an attachment in a [[#Message Object|Message]].
|
Represents an attachment in a [Message](#message-object).
|
||||||
|
|
||||||
**Structure**
|
**Structure**
|
||||||
|
|
||||||
|
|
9
API/models/Role.md
Normal file
9
API/models/Role.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
## Emoji Object
|
||||||
|
Represents an emoji in a [Guild](Guild.md#guild-object).
|
||||||
|
|
||||||
|
**Structure**
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
| ----- | ------ | ----------------- |
|
||||||
|
| id | string | ID of the emoji |
|
||||||
|
| name | string | Name of the emoji |
|
Loading…
Add table
Add a link
Reference in a new issue