Making a custom pin creator which basically gives you a cool little image on your leaderboard profile, but I also want to log when a person creates one in case, he does one that is basically a pin of another which is only given if you win something and would be removed from his profile
This is the code I use:
local Hook = "https://webhook.newstargeted.com/api/webhooks/"
local Data
Data = {
["content"]= "",
["thumnail"] = {
["url"] = **converted id of the image** <----- *for example: http://www.roblox.com/asset/?id=15452494453*
},
["embeds"]= {
{
["title"]= Title,
["color"]= 0xFFFFFF,
["fields"]= {
{
["name"] = FieldTitle,
["value"] = Message
},
},
["timestamp"] = DateTime.now():ToIsoDate()
}
}
}
Data = HttpService:JSONEncode(Data)
local Success, ErrorMsg = pcall(function()
HttpService:PostAsync(Hook,Data)
end)
if Success then
return true
else
return false
end
In the field of thumbnail>url is where i want the coverted image to be with the example link