-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(*): document and support embeds field in message create endpoint #5792
Conversation
Upstream has been merged 🚀 changes are live. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Discord seems to plan the removal of the embed
field (in favour of embeds
), should we refactor the code and account for less overloads? I see this as a great opportunity to remove some conditional checks made for webhooks (and interactions).
As for the embed
option, should we keep it as an alias for embeds: [embed]
? Since { embed }
is much nicer and shorter to write (and we already have an alias for content
, so why not?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/structures/APIMessage.js#L147 needs to be updated aswell, so this works properly.
I am aware, please refer to the initial comment in italics, I somewhat mistimed opening the PR yesterday |
Changes adressed, tested & rebased :) |
src/structures/APIMessage.js#L206 needs some changes here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @property {MessageEmbed|Object} [embed] An embed for the message |
Done, thank you |
Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
fix(TextChannel): JSDoc doesn't seem to like this, revert
Please describe the changes this PR makes and why it should be merged:
The message create endpoint now supports up to 10 embeds just like the webhook endpoint, these changes reflect that addition within the typings and APIMessage#create function.
Status and versioning classification: