You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/Message.md
+34-10Lines changed: 34 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,7 @@ Represents a message sent in a channel within Discord.
104
104
| GUILD_INCIDENT_REPORT_RAID | 38 | true |
105
105
| GUILD_INCIDENT_REPORT_FALSE_ALARM | 39 | true |
106
106
| PURCHASE_NOTIFICATION | 44 | true |
107
+
| POLL_RESULT | 46 | true |
107
108
108
109
\* Can only be deleted by members with `MANAGE_MESSAGES` permission
109
110
@@ -345,6 +346,13 @@ There are multiple message types that have a `message_reference` object.
345
346
- These messages have `message_id`, `channel_id`, and `guild_id`.
346
347
- These messages will never have content, embeds, or attachments, mainly just the `message_reference` and `referenced_message` fields.
347
348
349
+
###### Poll result messages
350
+
351
+
- These are automatic messages sent after a poll has ended and the results have been finalized. (type 46)
352
+
- These messages have `message_id` and `channel_id`, which point to the original poll message. The `channel_id` will be the same as that of the poll.
353
+
- The author will be the same as the author of the poll and will be mentioned.
354
+
- These messages contain a [`poll_result` embed](#DOCS_RESOURCES_MESSAGE/embed-fields-by-embed-type-poll-result-embed-fields)
355
+
348
356
#### Voice Messages
349
357
350
358
Voice messages are messages with the `IS_VOICE_MESSAGE` flag. They have the following properties.
@@ -420,16 +428,15 @@ The reaction count details object contains a breakdown of normal and super react
420
428
421
429
###### Embed Types
422
430
423
-
Embed types are "loosely defined" and, for the most part, are not used by our clients for rendering. Embed attributes power what is rendered. Embed types should be considered deprecated and might be removed in a future API version.
| rich | generic embed rendered from embed attributes |
434
+
| image | image embed |
435
+
| video | video embed |
436
+
| gifv | animated gif image embed rendered as a video embed |
437
+
| article | article embed |
438
+
| link | link embed |
439
+
| poll_result |[poll result embed](#DOCS_RESOURCES_MESSAGE/embed-fields-by-embed-type-poll-result-embed-fields)|
433
440
434
441
###### Embed Thumbnail Structure
435
442
@@ -510,6 +517,23 @@ Additionally, the combined sum of characters in all `title`, `description`, `fie
510
517
511
518
Embeds are deduplicated by URL. If a message contains multiple embeds with the same URL, only the first is shown.
512
519
520
+
#### Embed Fields by Embed Type
521
+
522
+
Certain embed types are used to power special UIs. These embeds use [fields](#DOCS_RESOURCES_MESSAGE/embed-object-embed-field-structure) to include additional data in key-value pairs. Below is a reference of possible embed fields for each of the following embed types.
0 commit comments