post_logging_discord_image#

API documentation for tradeexecutor.cli.discord.post_logging_discord_image Python function.

post_logging_discord_image(image)[source]#

Post an image to Discord to the Discord logging channel.

It’s a bit broken abstraction here, as we do not specifically pass the Discord webhook data around. We will just grab it from the active logger and post using those credentials.

If no Discord logger is active do nothing.

Parameters:

image (bytes) –