Skip to content

feat(http, model): Add placeholder, content-type, and flags to embeds - #2566

Open
goodspark wants to merge 4 commits into
twilight-rs:mainfrom
goodspark:placeholder
Open

feat(http, model): Add placeholder, content-type, and flags to embeds#2566
goodspark wants to merge 4 commits into
twilight-rs:mainfrom
goodspark:placeholder

Conversation

@goodspark

@goodspark goodspark commented Jul 28, 2026

Copy link
Copy Markdown

Closes #2524

This adds the optional content-type, placeholder (see the image or video type docs in that section) (essentially a small thumbnail), and media flag fields to the embed image and video types as well as the placeholder fields to the attachment type.

@github-actions github-actions Bot added c-model Affects the model crate t-feature Addition of a new feature labels Jul 28, 2026
@goodspark goodspark changed the title feat(model): Add placeholder, content-type, and flags to embeds feat(http, model): Add placeholder, content-type, and flags to embeds Jul 28, 2026
@github-actions github-actions Bot added the c-util Affects the util crate label Jul 28, 2026
Closes twilight-rs#2524

This adds the optional content-type, placeholder, and media flag fields
to the embed image and video structs.
@goodspark
goodspark marked this pull request as ready for review July 28, 2026 19:05
@@ -0,0 +1,84 @@
use bitflags::bitflags;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I just copied and modified the AttachmentFlags code here, since it's basically the same thing.

@github-actions github-actions Bot added the c-http Affects the http crate label Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-http Affects the http crate c-model Affects the model crate c-util Affects the util crate t-feature Addition of a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add additional flags for ImageEmbeds

1 participant