Add some rudimentary tsts for discord webhook integration

This commit is contained in:
Matthias
2022-06-11 17:45:37 +02:00
parent fdfa94bcc3
commit 4b70e03daa
2 changed files with 43 additions and 1 deletions

View File

@@ -51,7 +51,8 @@ class Discord(Webhook):
for f in fields:
for k, v in f.items():
v = v.format(**msg)
embeds[0]['fields'].append({'name': k, 'value': v, 'inline': True})
embeds[0]['fields'].append( # type: ignore
{'name': k, 'value': v, 'inline': True})
# Send the message to discord channel
payload = {'embeds': embeds}