From c8d83565f4b1f927c5ea2a0c199e35e8e546bcfe Mon Sep 17 00:00:00 2001 From: Bram Ceulemans Date: Fri, 15 Mar 2019 22:05:56 +0100 Subject: [PATCH 1/2] Fix color for Discord webhook embed API --- apprise/plugins/NotifyDiscord.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apprise/plugins/NotifyDiscord.py b/apprise/plugins/NotifyDiscord.py index 9e7b7e5a..86c2ee40 100644 --- a/apprise/plugins/NotifyDiscord.py +++ b/apprise/plugins/NotifyDiscord.py @@ -131,9 +131,6 @@ class NotifyDiscord(NotifyBase): # If Text-To-Speech is set to True, then we do not want to wait # for the whole message before continuing. Otherwise, we wait 'wait': self.tts is False, - - # Our color associated with our notification - 'color': self.color(notify_type, int) } # Acquire image_url @@ -149,6 +146,9 @@ class NotifyDiscord(NotifyBase): 'title': title, 'type': 'rich', 'description': body, + + # Our color associated with our notification + 'color': self.color(notify_type, int), }] # Break titles out so that we can sort them in embeds From 901a69e0f40b4eb4c99248834b32a92164cbaae7 Mon Sep 17 00:00:00 2001 From: Bram Ceulemans Date: Fri, 15 Mar 2019 22:10:25 +0100 Subject: [PATCH 2/2] Removed whitespace on empty line --- apprise/plugins/NotifyDiscord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apprise/plugins/NotifyDiscord.py b/apprise/plugins/NotifyDiscord.py index 86c2ee40..e6b3523a 100644 --- a/apprise/plugins/NotifyDiscord.py +++ b/apprise/plugins/NotifyDiscord.py @@ -146,7 +146,7 @@ class NotifyDiscord(NotifyBase): 'title': title, 'type': 'rich', 'description': body, - + # Our color associated with our notification 'color': self.color(notify_type, int), }]