Print the JSON of the webhook

This commit is contained in:
Radek Golan 2024-04-22 16:56:17 +02:00
parent 8f1719a17f
commit d4910a76e1

View File

@ -1,5 +1,6 @@
from os import environ
from discord_webhook import DiscordEmbed, DiscordWebhook
from pprint import pprint
webhook = DiscordWebhook(environ["PLUGIN_WEBHOOK_URL"])
@ -39,4 +40,5 @@ webhook.add_embed(DiscordEmbed(
}]
))
pprint(webhook.json)
webhook.execute()