I made a fully working discord embed message sender script for sending admin calls but when I try to display textbox contents into the script it stops working. Here is the script and the error I get:

Error: 21:17:12.518 - HTTP 400 21:17:12.519 - Stack Begin 21:17:12.519 - Script 'Players.NitrousGalaxy.PlayerGui.Test Menu.AdminCallMenu.Send.Activate.Script', Line 29 21:17:12.520 - Stack End

script.Parent.MouseButton1Down:connect(function()
	local message = script.Parent.Parent.Parent.MessageBox.Text
    local owner = "Player"
    local player = script.Parent.Parent.Parent.Parent.Parent.Parent.Name
    local http = game:GetService("HttpService")
    local Data = 
	{
		["content"] = "",
		["embeds"] = {{
			["title"] = "ADMIN CALL ALERT",
			["description"] = "A player from Sedona International has submitted an admin call form with their username and message included which will now be displayed.",
			["type"] = "rich",
			["color"] = tonumber(0xFF2D00),
			["fields"] = {
				{
					["name"] = "Form Submitter Username",
					["value"] = player,
					["inline"] = true
				},
				{
					["name"] = "Form Submitter Message",
					["value"] = message,   --< Problem Causer
					["inline"] = true
				}
			}
		}}
	}
    Data = http:JSONEncode(Data)
    http:PostAsync("Removed webhook to prevent abuse", Data) 
end)

2 comments

0

As a troubleshooting step try declaring message with a definite value.

0

Wdym by that