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

Rework file attachments #1285

Merged
merged 15 commits into from
Jan 5, 2024
Merged

Rework file attachments #1285

merged 15 commits into from
Jan 5, 2024

Conversation

bsian03
Copy link
Collaborator

@bsian03 bsian03 commented Oct 16, 2021

This should futureproof endpoints requiring a multipart/form-data with a JSON body

@bsian03 bsian03 changed the title Rework multipart/form-data construction Rework file attachments Oct 30, 2021
index.d.ts Outdated Show resolved Hide resolved
Co-authored-by: Donovan Daniels <[email protected]>
Copy link
Contributor

@DonovanDMC DonovanDMC left a comment

Choose a reason for hiding this comment

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

see above

lib/Client.js Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
@TheEssem
Copy link

TheEssem commented Jun 28, 2022

Seems to break sending an attachment alongside text content when using CommandInteraction#createMessage, causing Discord to return a 50035 error with the content Only dictionaries may be used in a ModelType.

@abalabahaha abalabahaha added this to the 0.17.x milestone Jun 29, 2022
@DonovanDMC
Copy link
Contributor

Seeing as this has a lot of ongoing issues it would be nice for them to either be fixed or get at least some kind of time frame

DonovanDMC added a commit to DonovanArchive/ErisPRUpdateBot that referenced this pull request Jul 18, 2022
@HeadTriXz
Copy link
Contributor

Any update on this PR?

Copy link
Contributor

@HeadTriXz HeadTriXz left a comment

Choose a reason for hiding this comment

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

Revert broken changes (thanks GitHub)

lib/Client.js Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
@bsian03
Copy link
Collaborator Author

bsian03 commented Jan 4, 2024

Seems to break sending an attachment alongside text content when using CommandInteraction#createMessage, causing Discord to return a 50035 error with the content Only dictionaries may be used in a ModelType.

This should be fixed from my testing, I'm getting @beanjo55 to double check as well

@bsian03 bsian03 merged commit 65ab78b into abalabahaha:dev Jan 5, 2024
@bsian03 bsian03 mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

editMessage and editWebhookMessage send attachments twice in the same request
5 participants