feat(notif): add settings for Discord bot username & avatar URL (#1113)

This commit is contained in:
TheCatLady
2021-03-09 07:42:32 -05:00
committed by GitHub
parent e5f5bdb95c
commit 3384eb1c47
5 changed files with 73 additions and 9 deletions

View File

@@ -95,6 +95,8 @@ export interface NotificationAgentConfig {
}
export interface NotificationAgentDiscord extends NotificationAgentConfig {
options: {
botUsername?: string;
botAvatarUrl?: string;
webhookUrl: string;
};
}
@@ -120,7 +122,7 @@ export interface NotificationAgentEmail extends NotificationAgentConfig {
export interface NotificationAgentTelegram extends NotificationAgentConfig {
options: {
botUsername: string;
botUsername?: string;
botAPI: string;
chatId: string;
sendSilently: boolean;
@@ -229,6 +231,8 @@ class Settings {
enabled: false,
types: 0,
options: {
botUsername: '',
botAvatarUrl: '',
webhookUrl: '',
},
},