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 attached file is posted under, e.g. report.csv. Omitted: the file keeps the name it arrives with.
attachment optionalA file to attach to the message.
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.
