Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm having trouble with a Lua Webhook. Anybody have a fix?

Asked by 4 years ago
-- \\ Services // --
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")

-- \\ Main Variables // --
local TitleInstance = script.Parent.Parent.Parent.Parent.Parent.Parent

local WebhookLink = "dont mind this. this is just a replacement for the actual webhook" 

-- \\ Events // --
script.Parent.MouseButton1Down:Connect(function()
    local DataInformation = {
        ["contents"] = "",
        ["embeds"] = {{
            ["title"] = TitleInstance.Name,
            ["description"] = "",
            ["type"] = "rich",
                ["color"] = 63637,
        ["fields"] = {
            {
                ["name"] = "Modcall",
                ["value"] = script.Parent.Parent.Issue.Text,
                ["inline"] = true}}}}
    }
  HttpService:PostAsync(WebhookLink, HttpService:JSONEncode(DataInformation))
end)

Output says "HTTP 400: BAD REQUEST". Anybody a clue or fix?

0
yo this swag SnowieDev 171 — 4y
0
rbyrhherhrehrer ElytraIevu 26 — 4y

Answer this question