Hello.
I am trying to use an image from roblox on a discord embed. No matter what I try, the image just won’t pop up. When using a random image from imgur, the image popped up perfectly, but for what I need, I can’t have to upload the image to imgur every single time.
(Top is using roblox URL and bottom is random imgur image)
For the roblox URL, I tried: "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId="..carImage.."&format=png", but this doesn’t return an image. Does anyone know how to do this?
Roblox replaced the "https://www.roblox.com/Thumbs/Asset.ashx" endpoint a while ago and moved over to https://tr.rbxcdn.com. I don’t know how you can get this for decals, but for meshes you can use https://assetdelivery.roblox.com/v1/asset/?id=, however if you try this with a decal it returns a useless XML file. I’d recommend looking into the api endpoints that roblox has documented, and if you still don’t find anything, then try using fiddler to sniff your HTTP traffic.