diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index d6ee0afe1..971c26e5e 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -62,6 +62,11 @@ class Discord extends NotificationProvider { ], }], } + + if (notification.discordPrefixMessage) { + discorddowndata.content = notification.discordPrefixMessage; + } + await axios.post(notification.discordWebhookUrl, discorddowndata) return okMsg; @@ -92,6 +97,11 @@ class Discord extends NotificationProvider { ], }], } + + if (notification.discordPrefixMessage) { + discordupdata.content = notification.discordPrefixMessage; + } + await axios.post(notification.discordWebhookUrl, discordupdata) return okMsg; } diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index ffb7ba71d..0dff26b33 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -80,6 +80,11 @@ + +