Skip to content

feat: add missing fields to EmbedResource#546

Merged
topi314 merged 5 commits into
disgoorg:masterfrom
MatthewSH:add-content-type
Jun 1, 2026
Merged

feat: add missing fields to EmbedResource#546
topi314 merged 5 commits into
disgoorg:masterfrom
MatthewSH:add-content-type

Conversation

@MatthewSH

Copy link
Copy Markdown
Contributor

When working on my project I noticed EmbedResource was missing both content_type and description.

Docs: https://docs.discord.com/developers/resources/message#embed-object-embed-image-structure

Didn't include flags, but could be worth adding.

@topi314 topi314 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

while at it, feel free to also add the other 3 missing fields

@MatthewSH MatthewSH requested a review from topi314 June 1, 2026 20:12
@MatthewSH

Copy link
Copy Markdown
Contributor Author

I basically just copy-pasted from

type MessageFlags int

Let me know if that's not the correct path and I'll be happy to change it.

Comment thread discord/embed.go
MatthewSH and others added 2 commits June 1, 2026 16:25
Co-authored-by: Kshitij Anurag <230598819+kshitijanurag@users.noreply.github.com>
@MatthewSH MatthewSH requested a review from kshitijanurag June 1, 2026 20:27
Comment thread discord/embed.go Outdated
@MatthewSH

Copy link
Copy Markdown
Contributor Author

🕺

@topi314 topi314 merged commit 0fea91e into disgoorg:master Jun 1, 2026
4 checks passed
@MatthewSH MatthewSH deleted the add-content-type branch June 1, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants