I know the title may make this look simple but I am very confused. For the past half hour I have been trying to figure out how I send an embed to discord using http service.
local data = {
["content"] = "embed!",
["embeds"] = {
{
["title"] = "a",
["description"] = "a",
["type"] = "rich",
["color"] = tonumber(0x00ff00),
["fields"] = {
{
["name"] = "__A__",
["value"] = "a",
["inline"] = true,
},
{
["name"] = "__B__",
["value"] = "b",
["inline"] = true,
},
},
},
},
};
data = h:JSONEncode(data);
repeat
local s,e = pcall(function()
h:PostAsync(wh, data);
end);
if (not s) then warn(e) end;
wait();
until s;
That's my code but if I comment out the embed part it says "embed!" in discord. Ignore all of the ; characters its just a coding habit.
My issue if you still haven't figured out is that the embed wont send.

3 comments
I mean i don't want to be quick to assumptions but are you making a scam password game where if you put it in it then sends it to discord webhook?
no, its a submission game to submit maps for a game I'm making
doesn't require anything personal, like password. You just type the model Id in and it sends it to my discord server.