Skip to content

Commit

Permalink
document super reactions (#6056)
Browse files Browse the repository at this point in the history
* document super reactions

* delete me_burst field

Co-authored-by: Lala Sabathil <aiko@aitsys.dev>

* add error code 90002

* apply suggestions

Co-authored-by: shay <swdewael@gmail.com>

---------

Co-authored-by: Lala Sabathil <aiko@aitsys.dev>
Co-authored-by: shay <swdewael@gmail.com>
  • Loading branch information
3 people authored Aug 24, 2023
1 parent e8110ae commit b1bed46
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 11 deletions.
47 changes: 36 additions & 11 deletions docs/resources/Channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,16 @@ Represents a message sent in a channel within Discord.
"reactions": [
{
"count": 1,
"count_details": {
"burst": 0,
"normal": 1
},
"me": false,
"emoji": {
"id": null,
"name": "🔥"
}
"id": null,
"name": "🔥"
},
"burst_colors": []
}
],
"attachments": [],
Expand Down Expand Up @@ -425,11 +430,17 @@ Represents a message sent in a channel within Discord.
"reactions": [
{
"count": 1,
"count_details": {
"burst": 0,
"normal": 1
},
"me": false,
"me_burst": false,
"emoji": {
"id": null,
"name": "🔥"
}
"id": null,
"name": "🔥"
},
"burst_colors": []
}
],
"attachments": [],
Expand Down Expand Up @@ -544,11 +555,25 @@ The encoding, and the waveform details, are an implementation detail and may cha

###### Reaction Structure

| Field | Type | Description |
| ----- | ---------------------------------------------------------- | ------------------------------------------------- |
| count | integer | times this emoji has been used to react |
| me | boolean | whether the current user reacted using this emoji |
| emoji | partial [emoji](#DOCS_RESOURCES_EMOJI/emoji-object) object | emoji information |
| Field | Type | Description |
| ------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| count | integer | Total number of times this emoji has been used to react (including super reacts) |
| count_details | object | [Reaction count details object](#DOCS_RESOURCES_CHANNEL/reaction-count-details-object) |
| me | boolean | Whether the current user reacted using this emoji |
| me_burst | boolean | Whether the current user super-reacted using this emoji |
| emoji | partial [emoji](#DOCS_RESOURCES_EMOJI/emoji-object) object | emoji information |
| burst_colors | array | HEX colors used for super reaction |

### Reaction Count Details Object

The reaction count details object contains a breakdown of normal and super reaction counts for the associated emoji.

###### Reaction Count Details Structure

| Field | Type | Description |
| ------ | --------- | ----------------------------- |
| burst | integer | Count of super reactions |
| normal | integer | Count of normal reactions |

### Overwrite Object

Expand Down
1 change: 1 addition & 0 deletions docs/topics/Opcodes_and_Status_Codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ Along with the HTTP error code, our API can also return more detailed error code
| 60003 | Two factor is required for this operation |
| 80004 | No users with DiscordTag exist |
| 90001 | Reaction was blocked |
| 90002 | User cannot use burst reactions |
| 110001 | Application not yet available. Try again later |
| 130000 | API resource is currently overloaded. Try again a little later |
| 150006 | The Stage is already open |
Expand Down

0 comments on commit b1bed46

Please sign in to comment.