Skip to content

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

Open

Description

@Lustris

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.

Activity

  1. neet commented on Jul 30, 2020

    @neet
    Member

    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

  2. Lustris commented on Jul 31, 2020

    @Lustris
    Author

    12_29_20img

  3. neet commented on Jul 31, 2020

    @neet
    Member

    @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🙏

  4. Lustris commented on Jul 31, 2020

    @Lustris
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions