mirror of https://github.com/caronc/apprise
Merge pull request #84 from BramCeulemans/master
Fix color for Discord webhook embed APIpull/86/head
commit
240785b2d2
|
@ -131,9 +131,6 @@ class NotifyDiscord(NotifyBase):
|
||||||
# If Text-To-Speech is set to True, then we do not want to wait
|
# If Text-To-Speech is set to True, then we do not want to wait
|
||||||
# for the whole message before continuing. Otherwise, we wait
|
# for the whole message before continuing. Otherwise, we wait
|
||||||
'wait': self.tts is False,
|
'wait': self.tts is False,
|
||||||
|
|
||||||
# Our color associated with our notification
|
|
||||||
'color': self.color(notify_type, int)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Acquire image_url
|
# Acquire image_url
|
||||||
|
@ -149,6 +146,9 @@ class NotifyDiscord(NotifyBase):
|
||||||
'title': title,
|
'title': title,
|
||||||
'type': 'rich',
|
'type': 'rich',
|
||||||
'description': body,
|
'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
|
# Break titles out so that we can sort them in embeds
|
||||||
|
|
Loading…
Reference in New Issue