I used reqn addon and tried to do a new project with the involvement of discord webhooks.
code_language.skript:
command /post:test:
trigger:
set {_custom} to "something"
wait a second
send a "post" request to "https://discord.com/api/webhooks/token" with the body "content=Test this var: %{_custom}%&" and the headers "content-type: application/x-www-form-urlencoded"
set {_r} to the last http response
set {_c} to {_r}'s status code
set {_b} to {_r}'s body
broadcast {_b}, {_c}
The code seems fine. But when the post request is sent, the webhook's content/message is Test this var: <none>
Why does the {_custom} variable is <none>. Though it is set to "something"?