Merge pull request #84 from BramCeulemans/master

Fix color for Discord webhook embed API
pull/86/head
Chris Caron 2019-03-15 21:55:24 -04:00 committed by GitHub
commit 240785b2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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