Add discord as a possible receiver in cloud rules (#59366)

This commit is contained in:
Sonia Aguilar 2022-11-29 17:23:21 +01:00 committed by GitHub
parent dc918f7e91
commit 1020e33409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,6 +330,26 @@ export const cloudNotifierTypes: NotifierDTO[] = [
httpConfigOption,
],
},
{
name: 'Discord',
description: 'Sends notifications to Discord',
type: 'discord',
info: '',
heading: 'Discord settings',
options: [
option('title', 'Title', 'Templated title of the message', {
placeholder: '{{ template "discord.default.title" . }}',
}),
option(
'message',
'Message Content',
'Mention a group using @ or a user using <@ID> when notifying in a channel',
{ placeholder: '{{ template "discord.default.message" . }}' }
),
option('webhook_url', 'Webhook URL', '', { placeholder: 'Discord webhook URL', required: true }),
httpConfigOption,
],
},
];
export const globalConfigOptions: NotificationChannelOption[] = [