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

fix(Webhook): #editMessage throws error when content is null #5757

Merged
merged 2 commits into from Jun 5, 2021

Conversation

iShibi
Copy link
Contributor

@iShibi iShibi commented Jun 5, 2021

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

This PR fixes a bug in Webhook#editMessage where it throws an error when the content param is null, even tho discord.js supports it as a way to remove content on edits. It also documents that content can be null in Webhook#editMessage. The typings already support null as a valid type for content so it doesn't need any change.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes

@iCrawl iCrawl merged commit 2901fd5 into discordjs:master Jun 5, 2021
@iShibi iShibi deleted the fix-webhook-editmessage branch June 15, 2021 15:01
@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