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): ignoreRepliedUser option in has() #8202

Merged
merged 1 commit into from Jul 29, 2022

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Jun 30, 2022

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

  • The ignoreRepliedUser option was not being respected when paired with ignoreDirect: false
  • Added a parsedUsers getter, which parses user mentions from the message content to address the following comment:
  • Moved the ignoreEveryone condition to the top as the other options don't affect it

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

@vercel
Copy link

vercel bot commented Jun 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
discord-js ⬜️ Ignored (Inspect) Jul 20, 2022 at 9:06PM (UTC)

@almeidx almeidx changed the title fix(MessageMentions): has() not taking into account replies when fix(MessageMentions): ignoreRepliedUser option in has() Jun 30, 2022
@Jiralite Jiralite added this to the discord.js v14 milestone Jun 30, 2022
@Syjalo
Copy link
Contributor

Syjalo commented Jul 1, 2022

If we will mention the user in the content and by reply then it also will ignore the content mention. As I said in the issue we should remove the ignoreRepliedUser option or parse user mentions in the message content like channel ones.

@iCrawl iCrawl merged commit b4e2c0c into discordjs:main Jul 29, 2022
@almeidx almeidx deleted the mentions-has branch July 29, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

message.mentions.has ignoreRepliedUser bug
7 participants