Sending Linux Variables to Discord Webhook from Linux Bash Shell Script

used the script, works for normal messages but when I write $ commands I get this
{“message”: “Cannot send an empty message”, “code”: 50006}