8000 CV2: Add missing limits for alt texts, ID clarifications by freya022 · Pull Request #7537 · discord/discord-api-docs · GitHub
[go: up one dir, main page]

Skip to content

CV2: Add missing limits for alt texts, ID clarifications #7537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

freya022
Copy link
@freya022 freya022 commented May 2, 2025
  • Added limits to alt text of Thumbnail and Media Gallery Item
  • Added details on pre-CV2 component IDs
  • Added details of the behavior when sending 0 IDs

@freya022 freya022 requested a review from a team as a code owner May 2, 2025 13:54
@freya022 freya022 requested review from abe-discord and removed request for a team May 2, 2025 13:54
@colinloretz colinloretz added the message components click click click click click click click label May 8, 2025
@@ -1172,6 +1172,8 @@ To upload a file with your message, you'll need to send your payload as `multipa

Before the introduction of the `IS_COMPONENTS_V2` flag ([see changelog](/docs/change-log/2025-04-22-components-v2)), message components were sent in conjunction with message content. This means that you could send a message using a subset of the available components without setting the `IS_COMPONENTS_V2` flag, and the components would be included in the message content along with `content` and `embeds`.

Messages preceding components V2 will contain an `id` of `0`, sending back `0` is allowed but will be incremented to 1, then generated sequentially while avoiding duplicates.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "Legacy message component's id will start at 0 with each following id incrementing by 1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
message components click click click click click click click
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0