Post a Discord message
Input
channelUrl requiredFull channel URL, e.g. https://discord.com/channels/<guildId>/<channelId>
dry_run optionalWhen true, the message and any attachment are prepared in the channel but not sent. Nothing is posted: sent comes back false, messageId is null and dry_run is true. Use it to check that a channel, message and attachment are accepted without posting a real, visible message.
message optionalText of the message. Optional when a file is attached, in which case it becomes the message's caption. Up to 2000 characters.
filename optionalName the file is posted under, e.g. report.csv. Required whenever fileBase64 is given. Not used with the `attachment` file input, which posts the file under the input's own name.
mimeType optionalOptional content type for the attachment, e.g. text/csv. Guessed from the filename extension when omitted.
attachment optionalA file to attach. Preferred over fileBase64 for larger files, as it is not limited to roughly 380 KB. The file is posted under the name of this input, so use fileBase64 + filename instead when the posted filename matters.
fileBase64 optionalOptional file to attach, as base64 bytes, as an alternative to the `attachment` file input. Sent as one message together with the text. Limited to roughly 380 KB of base64, well under Discord's own upload limit. Use this when you need to control the posted filename.
Output
sent requiredFalse on a dry run, where nothing was posted.
content optionalContent as stored by Discord. Null on a dry run.
dry_run optionalTrue when this run prepared the message without sending it.
channelId optionalmessageId optionalID of the created message. Null on a dry run.
timestamp optionalattachment optionalThe file Discord stored — null when no file was sent, and null on a dry run.
