Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Im constantly getting the HTTP 400 error when I try to post the Webhooks. What I did wrong here?

here's the code (ignore the Webhooks its valid I just don't want to show it)

event.OnServerEvent:Connect(function(name,type0,m,ms)
	--funny discord intergration	
	local Data = {}
	if type0 == "SoABNA" then
		Data = {
			["content"] = name.Name .. " have beaten **Steeple of A Brand New Adventure 		[<:easy:784750353542676523>]** " --in: `"..m..":"..ms.."` !"
		}
	end

	Data = http:JSONEncode(Data)	
	http:PostAsync("https://discord.com/api/webhooks/XXXXXXXXXXXX", Data)
	
end)

3 comments

0

Try to allow HttpsService on your game and make sure its published

0

I did that before I posted this question already.

0

It's quite impossible due it says Http 400 (Bad Request)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.