diff --git a/Ombi.Api/DiscordApi.cs b/Ombi.Api/DiscordApi.cs index a5214c503..d293d65a2 100644 --- a/Ombi.Api/DiscordApi.cs +++ b/Ombi.Api/DiscordApi.cs @@ -50,7 +50,8 @@ public void SendMessage(string message, string webhookId, string webhookToken, s { var request = new RestRequest { - Resource = "webhooks/{webhookId}/{webhookToken}" + Resource = "webhooks/{webhookId}/{webhookToken}", + Method = Method.POST }; request.AddUrlSegment("webhookId", webhookId); @@ -72,7 +73,8 @@ public async Task SendMessageAsync(string message, string webhookId, string webh { var request = new RestRequest { - Resource = "webhooks/{webhookId}/{webhookToken}" + Resource = "webhooks/{webhookId}/{webhookToken}", + Method = Method.POST }; request.AddUrlSegment("webhookId", webhookId); diff --git a/Ombi.UI/NinjectModules/ApiModule.cs b/Ombi.UI/NinjectModules/ApiModule.cs index 9926f30e3..9de21af99 100644 --- a/Ombi.UI/NinjectModules/ApiModule.cs +++ b/Ombi.UI/NinjectModules/ApiModule.cs @@ -47,6 +47,7 @@ public override void Load() Bind().To(); Bind().To(); Bind().To(); + Bind().To(); } } } \ No newline at end of file