Skip to content

Examples

Plain text

discordit --webhook "$DISCORD_WEBHOOK_URL" --text "Hello"

Profile

discordit --profile testing --text "Hello"

Config path

discordit -p alerts --config "$HOME/work/discordit.yml" --text "Disk full"

File plus text

discordit --webhook "$DISCORD_WEBHOOK_URL" --file report.txt --text "see attached"

Embed plus TTS

discordit --webhook "$DISCORD_WEBHOOK_URL" --embed '{"title":"Hi"}' --tts

Thread name

discordit --webhook "$DISCORD_WEBHOOK_URL" --thread-name Incident --text started

Allowed mentions

discordit --webhook "$DISCORD_WEBHOOK_URL" --allowed-mentions '{"parse":[]}' --text "no pings"

Validation post

discordit --profile testing --validate

This probes the webhook, then posts This is a validation message plus username and avatar when set.

Version

python -m lupaxa.discordit --version