Samir Never mind figured it out!!!
Thank you so much! here is my final code if anyone needs it in the future:
local net = require "net"
local json = require "json"
local webhook_url = "https://discord.com"
local client = net.Http(webhook_url)
local data = json.encode({
content = "Hello World!",
username = "LuaRT Bot"
})
client.headers["Content-Type"] = "application/json"
client:post("/api/webhooks/1292239305338523699/Vvy-BtEoOWTavRG4ZRwLnOFJi4cdKkrznVVfxJSjTeLrn3oqF89mw6dbwmUXWH6Whg_U", data).after = function (self, response)
if not response then
error(net.error)
end
print(response.status, response.ok, response.reason)
end
waitall()