mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
oops
This commit is contained in:
parent
606136dfe4
commit
5970ee963d
1 changed files with 28 additions and 0 deletions
|
@ -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];
|
||||
// }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue