diff --git a/src/Ombi/ClientApp/app/interfaces/INotifcationSettings.ts b/src/Ombi/ClientApp/app/interfaces/INotifcationSettings.ts index 97bc849a2..11c134055 100644 --- a/src/Ombi/ClientApp/app/interfaces/INotifcationSettings.ts +++ b/src/Ombi/ClientApp/app/interfaces/INotifcationSettings.ts @@ -43,3 +43,31 @@ export enum NotificationType { RequestDeclined, ItemAddedToFaultQueue } + +export interface IDiscordNotifcationSettings extends INotificationSettings{ + webhookUrl : string, + username : string, + + + // public string WebhookUrl { get; set; } + // public string Username { get; set; } + + // [JsonIgnore] + // public string WebookId => SplitWebUrl(4); + + // [JsonIgnore] + // public string Token => SplitWebUrl(5); + + // private string SplitWebUrl(int index) + // { + // if (!WebhookUrl.StartsWith("http", StringComparison.InvariantCulture)) + // { + // WebhookUrl = "https://" + WebhookUrl; + // } + // var split = WebhookUrl.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries); + + // return split.Length < index + // ? string.Empty + // : split[index]; + // } +} \ No newline at end of file