Flow reference: Messages

Send Text as File

Send text you build in the flow (a list, a log, JSON) as a .txt, .json, .csv or .md file, up to 1 MB. Blank channel answers the command or message.

Send text you build in the flow (a list, a log, JSON) as a .txt, .json, .csv or .md file, up to 1 MB. Blank channel answers the command or message.

When and how to use it

Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.

Configuration fields

Channel (blank = answer here) — channel


Choose the channel this block targets or filters. Use its Discord ID or a supported channel variable. Check channel overrides for the bot.

Input: Text.

Default: ``.


File name (.txt, .json, .csv or .md) — fileName


Attachment name ending in .txt, .json, .csv or .md. Variables are allowed; other characters are replaced, and other extensions are refused.

Input: Text with variable suggestions.

Format example, not a ready value for your server: orders-{user.id}.txt.

Default: export.txt.


File content — fileContent


Text written into the file, with {variables}. At most 1 MB. Keep secrets and private data of members out of files posted in public channels.

Input: Multiline text.

Format example, not a ready value for your server: One line per item….

Default: Made by {user.username}.


Message text — content


Enter message text and supported {variables}. Keep secrets out of visible output. Message layout is configured separately in the message editor when available.

Input: Text with variable suggestions.

Default: ``.

Outputs and next steps

out: Continue to the next step.

Test and troubleshoot

Invoke the correct trigger with simple inputs and verify the expected effect. Confirm variables exist on this path. A preview alone does not verify Discord delivery.

Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).