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(MessageMentions): check guild exists before adding roles #6313

Merged
merged 2 commits into from Aug 6, 2021

Conversation

ckohen
Copy link
Member

@ckohen ckohen commented Aug 6, 2021

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

Fixes a hard crash when resolving mentioned roles in previously uncached messages being replied to.
Also passes the guild id that is received with said message reference so that it is more likely the mentions will be resolved.

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 added this to the Version 13 milestone Aug 6, 2021
kyranet
kyranet previously requested changes Aug 6, 2021
src/structures/MessageMentions.js Outdated Show resolved Hide resolved
@vladfrangu vladfrangu requested a review from kyranet August 6, 2021 12:34
@iCrawl iCrawl merged commit 1200bba into discordjs:master Aug 6, 2021
@ckohen ckohen deleted the fix-mentions branch August 6, 2021 19:24
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