feat(notifications): improve discord notifications (#1102)

* feat: improve discord notifications

Added a field in the general notification settings to allow a role to be mentioned in the webhook
message via discord notification agent

* feat: add discord role id notification - locales
This commit is contained in:
Guillaume ARNOUX
2024-11-15 18:38:23 +01:00
committed by GitHub
parent ba84212e68
commit 5c24e79b1d
7 changed files with 45 additions and 1 deletions

View File

@@ -291,6 +291,10 @@ class DiscordAgent
}
}
if (settings.options.webhookRoleId) {
userMentions.push(`<@&${settings.options.webhookRoleId}>`);
}
const response = await fetch(settings.options.webhookUrl, {
method: 'POST',
headers: {