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

chore(Typings): fix WebhookEditMessageOptions not having attachments #6430

Merged
merged 4 commits into from Aug 17, 2021
Merged

chore(Typings): fix WebhookEditMessageOptions not having attachments #6430

merged 4 commits into from Aug 17, 2021

Conversation

Milo123459
Copy link
Contributor

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

Fixes some issues in the Typings (basically like my previous PR #6162)

attachments wasn't typed in MessageOptions, so I added that and update the Pick when defining WebhookEditMessageOptions to add attachments to the typings and to ensure this doesn't bug

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

@Milo123459 Milo123459 changed the title chore(Typings): fix WebhookMessageOptions not having attachments chore(Typings): fix WebhookEditMessageOptions not having attachments Aug 14, 2021
Copy link
Member

@SpaceEEC SpaceEEC left a comment

Choose a reason for hiding this comment

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

Could you also add that to the relevant jsdoc? 👀

* @typedef {Object} WebhookEditMessageOptions

@Milo123459
Copy link
Contributor Author

Milo123459 commented Aug 14, 2021

@SpaceEEC do I have to edit MessageOptions in the jsdoc?

EDIT: I did it for TextBasedChannel's MessageOptions and WebhookEditMessageOptions

@iCrawl iCrawl requested a review from SpaceEEC August 15, 2021 11:10
@iCrawl iCrawl added this to the Version 13.2 milestone Aug 15, 2021
src/structures/Webhook.js Outdated Show resolved Hide resolved
@iCrawl iCrawl merged commit 76cf52c into discordjs:main Aug 17, 2021
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.

None yet

6 participants