From 1e3a42bf42f659f799191a5bd9f4adeaaa46c500 Mon Sep 17 00:00:00 2001 From: Derek Antrican Date: Tue, 21 Feb 2023 15:27:57 -0800 Subject: [PATCH] Implemented OnMovieAdded for Discord --- .../Notifications/Discord/Discord.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/Discord/Discord.cs b/src/NzbDrone.Core/Notifications/Discord/Discord.cs index 0f25c186a..9ad14a102 100644 --- a/src/NzbDrone.Core/Notifications/Discord/Discord.cs +++ b/src/NzbDrone.Core/Notifications/Discord/Discord.cs @@ -222,6 +222,21 @@ public override void OnDownload(DownloadMessage message) _proxy.SendPayload(payload, Settings); } + public override void OnMovieAdded(Movie movie) + { + var attachments = new List + { + new Embed + { + Title = movie.MovieMetadata.Value.Title, + Description = $"{movie.Title} added to library", + } + }; + + var payload = CreatePayload("Added", attachments); + _proxy.SendPayload(payload, Settings); + } + public override void OnMovieRename(Movie movie, List renamedFiles) { var attachments = new List();