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(files): file data can be much more than buffer #7238

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

ckohen
Copy link
Member

@ckohen ckohen commented Jan 10, 2022

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

The data for a file is directly appended to formdata, which accepts a multitude of types, not just a buffer, this corrects the types and changes the name of the property accordingly (not every single stream type is covered, but it is the natively supported set)

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

@iCrawl iCrawl added this to the rest v1 milestone Jan 10, 2022
@iCrawl iCrawl merged commit 86ab526 into discordjs:main Jan 11, 2022
@ckohen ckohen deleted the rest/improve-file-types branch January 11, 2022 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants