Skip to content

Image


The Image element can be used to put any image on your card by using a url

ParameterDescription
idID Parameter that will be used in error messages
typeElement type. In this case it’s “image”
urlImage URL
transparencyTransparency of the image. Needs to be a number between 1 and 100. 100 being not transparent and 0 being fully transparent.
layerLayer of the image. Can be any number but is useful to control which Image goes on top of which element.
border_radiusUsed to round the image. Needs to be a number between 1 and 100. 100 being fully round.
positionContains “x” and “y”. Used to specify the position of the image.
sizeContains “width” and “height”. Used to specify the size of the Image. In this case also “auto” for both width and height can be used to use the size of the original image.
{
"id": "4",
"type": "image",
"url": "https://cdn.discordapp.com/avatars/136327647792726016/c09224ebac192909a9151ea5e9a41535.webp?size=256",
"transparency": "100",
"layer": "2",
"border_radius": "100",
"position": {
"x": 7.5,
"y": 3
},
"size": {
"width": "auto",
"height": 24
}
}