feat(notifications): custom ping support for discord notifications #6726
+77
−29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New
Users can set custom pings/mentions instead of receiving discord notifications with hardcoded

@here
ping.Why this change?
The main reason for this change is that
@here
only notifies users who have the Discord app open or running in the background. Even if users open Discord later (in case they didn't had discord running on background), they won’t see a ping for the message where@here
was used, increasing the risk of missing critical notifications. Additionally, if many people are online, it will notify all of them, which can become annoying.Usage
Users have to format the role or user ID using Discord's mention syntax and enter it in the Ping Text field. If this field is left empty, no pings will be sent. The helper text has been updated to guide users on the correct syntax to use

Notes: