Skip to content
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

fix: correct embed schemas #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brawaru
Copy link

@brawaru brawaru commented Aug 19, 2023

Correct embed schemas according to the Discord documentation.

Notable change: fixes ability to set icon_url to author in embeds.

Correct embed schemas according to the Discord documentation.

Notable change: fixes ability to set `icon_url` to `author` in embeds.
@cla-bot
Copy link

cla-bot bot commented Aug 19, 2023

Thank you for contributing to Zeppelin! We require contributors to sign our Contributor License Agreement (CLA). To let us review and merge your code, please visit https://github.com/ZeppelinBot/CLA to sign the CLA!

@brawaru
Copy link
Author

brawaru commented Aug 19, 2023

CLA pending here — ZeppelinBot/CLA#35

@@ -298,8 +299,8 @@ export const tEmbed = t.type({
t.type({
name: t.string,
url: tNullable(t.string),
width: tNullable(t.number),
height: tNullable(t.number),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Despite the fact that we should not allow setting these, as they are ignored by Discord's API, we cannot remove them from the schema as that would break existing configurations that are defining these properties. This also applies to the schema below

For clarity, I'm only talking about the removal of width and height.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Additionally, setting proxy URLs should also not be supported as that will also be ignored by Discord.

@almeidx almeidx changed the title fix: corect embed schemas fix: correct embed schemas Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants