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(Message): bug in #suppressEmbeds due to #5612 #5644

Merged
merged 1 commit into from May 26, 2021

Conversation

iShibi
Copy link
Contributor

@iShibi iShibi commented May 18, 2021

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

Currently, Message#edit passes this.channel as target to APIMessage#create. This makes isMessage false in APIMessage as target is a channel in this case and not a message and hence the flags don't get set here. This results in a bug where Message#suppressEmbeds doesn't do anything. This change was introduced in #5612, I've tested the fix and it works but It would be great if @SpaceEEC can check that I didn't break something else.

Thanks, @ToasterSticks for noticing the 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

@iCrawl iCrawl merged commit 840ad0a into discordjs:master May 26, 2021
@iShibi iShibi deleted the patch-5612 branch May 30, 2021 10:25
@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