I wanna make in webhook image like this:
local url = "https://discord.com/api/webhooks/_/_"
function rgbToColor(red, green, blue)
return bit32.lshift(red, 16) + bit32.lshift(green, 8) + blue
end
local data = {
["embeds"] = {
{
["title"] = "Nextinel1 Just Hatched A Secret 🎉",
["description"] = "**King Doggy**",
["url"] = "",
["color"] = rgbToColor(143, 24, 212),
["image"] = {
['url'] = "",
},
["fields"] = {
{
["name"] = "🍀**Rarity**",
["value"] = "1 in 2M",
["inline"] = false
},
{
["name"] = "🥚**Egg**",
["value"] = "Basic Egg",
["inline"] = false
},
{
["name"] = "🥚**Eggs Opened**",
["value"] = "1,488,228",
["inline"] = false
},
}
}
}
}
local encodedBody = game:GetService("HttpService"):JSONEncode(data)
local response = game:GetService("HttpService"):RequestAsync(
{
Url = url,
Method = "POST",
Headers = {["Content-Type"] = "application/json"},
Body = encodedBody
}
)