mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-20 04:24:46 -04:00
add posibility to have a prefixMessage before the embed
This commit is contained in:
parent
0d280f5edb
commit
8352d9abbe
2 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue