tools.redirect_task module

Wire a backgrounded task’s output to any channel on any platform.

When the task finishes (success or failure), its result is automatically delivered to the target channel — no polling required.

Works cross-platform: specify a platform name to target a different platform than the one the command was issued from.

async tools.redirect_task.run(task_id, channel_id='', platform='', max_chars=0, ctx=None)[source]
Return type:

str

Parameters: