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

refactor(MessageEmbed): remove files #5813

Merged
merged 2 commits into from
Jun 11, 2021
Merged

refactor(MessageEmbed): remove files #5813

merged 2 commits into from
Jun 11, 2021

Conversation

vaporoxx
Copy link
Contributor

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

Attaching files to MessageEmbeds doesn't do more than just adding them to the message options for the user. Especially with the changes in #5758, this has become less convenient than before, to the point where you could just pass the files directly with the message options.

It also fixes a "bug" where TypeScript lets you use .send(<MessageEmbed>) because MessageEmbed and InteractionReplyOptions both have a files property, however this is misleading because it doesn't actually send the full embed.

Status and versioning classification:

  • I know how to update typings and have done so
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

@iCrawl iCrawl merged commit e3e466d into discordjs:master Jun 11, 2021
@vaporoxx vaporoxx deleted the refactor-embed-files branch June 12, 2021 10:16
@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

5 participants