Skip to content

Commit

Permalink
update message application docs (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding committed Apr 6, 2021
1 parent 6802936 commit ff0c831
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
16 changes: 3 additions & 13 deletions docs/resources/Channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ Represents a message sent in a channel within Discord.
| webhook_id? | snowflake | if the message is generated by a webhook, this is the webhook's id |
| type | integer | [type of message](#DOCS_RESOURCES_CHANNEL/message-object-message-types) |
| activity? | [message activity](#DOCS_RESOURCES_CHANNEL/message-object-message-activity-structure) object | sent with Rich Presence-related chat embeds |
| application? | [message application](#DOCS_RESOURCES_CHANNEL/message-object-message-application-structure) object | sent with Rich Presence-related chat embeds |
| application? | partial [application](#DOCS_TOPICS_OAUTH2/application) object | sent with Rich Presence-related chat embeds |
| message_reference? | [message reference](#DOCS_RESOURCES_CHANNEL/message-object-message-reference-structure) object | reference data sent with crossposted messages and replies |
| flags? | integer | [message flags](#DOCS_RESOURCES_CHANNEL/message-object-message-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) |
| stickers? | array of [sticker](#DOCS_RESOURCES_CHANNEL/message-object-message-sticker-structure) objects | the stickers sent with the message (bots currently can only receive messages with stickers, not send) |
| stickers? | array of [sticker](#DOCS_RESOURCES_CHANNEL/message-object-message-sticker-structure) objects | the stickers sent with the message (bots currently can only receive messages with stickers, not send) |
| referenced_message?\*\*\*\*\* | ?[message object](#DOCS_RESOURCES_CHANNEL/message-object) | the message associated with the message_reference |
| interaction? | [message interaction object](#DOCS_INTERACTIONS_SLASH_COMMANDS/messageinteraction) | sent if the message is a response to an [Interaction](#DOCS_INTERACTIONS_SLASH_COMMANDS/) |
| interaction? | [message interaction object](#DOCS_INTERACTIONS_SLASH_COMMANDS/messageinteraction) | sent if the message is a response to an [Interaction](#DOCS_INTERACTIONS_SLASH_COMMANDS/) |

\* The author object follows the structure of the user object, but is only a valid user in the case where the message is generated by a user or bot user. If the message is generated by a webhook, the author object corresponds to the webhook's id, username, and avatar. You can tell if a message is generated by a webhook by checking for the `webhook_id` on the message object.

Expand Down Expand Up @@ -250,16 +250,6 @@ Represents a message sent in a channel within Discord.
| type | integer | [type of message activity](#DOCS_RESOURCES_CHANNEL/message-object-message-activity-types) |
| party_id? | string | party_id from a [Rich Presence event](#DOCS_RICH_PRESENCE_HOW_TO/updating-presence-update-presence-payload-fields) |

###### Message Application Structure

| Field | Type | Description |
|--------------|-----------|-------------------------------|
| id | snowflake | id of the application |
| cover_image? | string | id of the embed's image asset |
| description | string | application's description |
| icon | ?string | id of the application's icon |
| name | string | name of the application |

###### Message Reference Structure

| Field | Type | Description |
Expand Down
8 changes: 5 additions & 3 deletions docs/topics/OAuth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,11 @@ Any user that wishes to add your webhook to their channel will need to go throug

## Get Current Application Information % GET /oauth2/applications/@me

Returns the bot's OAuth2 [application object](#DOCS_TOPICS_OAUTH2/application-object) without `flags`.
Returns the bot's OAuth2 [application](#DOCS_TOPICS_OAUTH2/application) object.

### Application Object
## Application

###### Application Structure

| Field | Type | Description |
|------------------------|------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
Expand All @@ -390,7 +392,7 @@ Returns the bot's OAuth2 [application object](#DOCS_TOPICS_OAUTH2/application-ob
| cover_image? | string | if this application is a game sold on Discord, this field will be the hash of the image on store embeds |
| flags | int | the application's public flags |

###### Example Application Information
###### Example Application

```json
{
Expand Down

0 comments on commit ff0c831

Please sign in to comment.