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

Regex for messages containing @here/@everyone ? #5

Open
Lustris opened this issue Jul 29, 2020 · 4 comments
Open

Regex for messages containing @here/@everyone ? #5

Lustris opened this issue Jul 29, 2020 · 4 comments

Comments

@Lustris
Copy link

Lustris commented Jul 29, 2020

One big issues with webhooks is that they can mention @everyone and there's no current way to disable it.
This can be done by quoting a message with additional content.

@neet
Copy link
Member

neet commented Jul 30, 2020

What do you mean by "additional content"? The bot quotes messages using embeds instead of copying the content directly which means mentions will not actually send notifications 🤔

Ref:
image

@Lustris
Copy link
Author

Lustris commented Jul 31, 2020

12_29_20img

@neet
Copy link
Member

neet commented Jul 31, 2020

@Lustris Thanks for the explanation. Indeed we don't have any way to restrict an usage of @everyone / @here via webhook.

I honestly would like to respect the original post rather than modifying the content though it might cause this problem. Checking if the bot itself have a permission to use @everyone before re-posting the additional content through webhook may help resolving this issue.

I'm gonna continue to seek for the solution and keep you posted🙏

@Lustris
Copy link
Author

Lustris commented Jul 31, 2020

Thank you!! I'll be waiting for the solution!
I thought of 2 methods while I was wondering if there was a permission check for the bot.

  1. Having a setting to post quotes as a bot instead of a webhook.
  2. Ignoring the quote if message content contains @here, @everyone.

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

No branches or pull requests

2 participants