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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(*): typedefs and typings for image & webhook options #5805

Merged
merged 1 commit into from Jun 11, 2021

Conversation

iShibi
Copy link
Contributor

@iShibi iShibi commented Jun 11, 2021

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

While working on #5785, I found some inconsistencies between typedefs and typings of options for editing/creating webhook and fetching image. For eg, the typings for Webhook#edit show that it takes only a single param, whereas in code it takes an object as first param and reason as second. Similarly, the ImageURLOptions typedef is used for even those methods that don't support/use dynamic param at all. This PR fixes all these inconsistencies by adding new typedefs and interfaces for these options.

Status and versioning classification:

  • I know how to update typings and have done so
  • This PR includes breaking changes ( just one 馃樅)

@iCrawl iCrawl merged commit a5a6e22 into discordjs:master Jun 11, 2021
@iShibi iShibi deleted the fix-options-typedefs branch June 15, 2021 15:00
@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