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(Message): editing with MessageEmbed or APIMessage #5612

Merged
merged 2 commits into from May 11, 2021

Conversation

SpaceEEC
Copy link
Member

Please describe the changes this PR makes and why it should be merged:

This PR fixes a bug in Message#edit causing operations that tried to edit a message either using an APIMessage or a MessageEmbed to fail (treated as omitted).

This PR resolves that issue by creating an APIMessage from the provided options or pass along the provided APIMessage to MessageManager#edit, which now also accepts an APIMessage.

Status and versioning classification:

  • This PR changes the library's interface (methods or parameters added)

@kyranet kyranet requested review from vladfrangu and iCrawl May 11, 2021 16:14
@iCrawl iCrawl merged commit 74e97ef into discordjs:master May 11, 2021
@SpaceEEC SpaceEEC deleted the fix/message_edit branch May 18, 2021 07:34
iShibi added a commit to iShibi/discord.js that referenced this pull request May 18, 2021
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
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.

None yet

4 participants