I'm trying to setup webhooks that are embeded however I keep getting an HTTP 400 error I'm not quite sure what I'm doing wrong I've tested with multiple discord bot links and they all failed.
local webhook = "https://discordapp.com/api/webhooks/5084692--" -- I cropped this part so its hidden
local color = 13632027
local Data = {
['username'] = 'Test',
['embeds'] = {{
['color'] = color,
['fields'] = {
{value = 'Test', inline = true},
{value = 'Test', inline = true},
{value = 'Test', inline = false},
{value = 'Test', inline = false}
},
['title'] = 'Test'
}},
}
Data = game:GetService('HttpService'):JSONEncode(Data)
game:GetService('HttpService'):PostAsync(webhook, Data, Enum.HttpContentType.ApplicationJson)

1 comment
Is Http requests enabled?