Foe some reason when I try send test message I get the “Roblox http 400 (bad request)” error. I have no idea what the reason is. It would be great if someone could help. Below is the Code
This Fires The Message
LoggingModule.WhiteListSuccess(ProductName,tPlayerId,PlayerName,game.PlaceId,game.JobId,os.date("%c"),"All went well when Whitelisting")
This Receives it and sends the message.
local HttpService = game:GetService("HttpService")
local URL = ""
function Log.WhiteListSuccess(Product,PlayerID,PlayerName,PlaceID,JobID,Date,Extra)
local data = HttpService:JSONEncode({
username = "SL",
avatar_url = "https://media.discordapp.net/attachments/990239924517228624/990240456346566726/Logo_plain_background.png",
content = "",
embeds = { {
title = "__Whitelist: Success__",
color = 65280,
description = "",
timestamp = "",
url = "",
author = {
name = "",
url = "",
icon_url = ""
},
image = {
url = ""
},
thumbnail = {
url = ""
},
footer = {
text = "SL",
icon_url = ""
},
fields = { {
name = "**Product:**",
value = Product
}, {
name = "**Product Owner:**",
value = PlayerName
}, {
name = "**Product Owner ID:**",
value = PlayerID
}, {
name = "**Product Owner Profile Link:**",
value = "https://www.roblox.com/users/"..PlaceID.."/profile"
}, {
name = "**Game Link:**",
value = "https://www.roblox.com/games/"..PlaceID
},{
name = "**Notes:**",
value = "https://www.roblox.com/games/"..PlaceID
} }
} },
})
HttpService:PostAsync(URL, data)
end
This is the error:
Note: Before anyone has a go at me. No it does not send to a discord webhook.
Edit: I assume its a formatting issue
