Image
The Image element can be used to put any image on your card by using a url
Parameters
Section titled “Parameters”Parameter | Description |
---|---|
id | ID Parameter that will be used in error messages |
type | Element type. In this case it’s “image” |
url | Image URL |
transparency | Transparency of the image. Needs to be a number between 1 and 100. 100 being not transparent and 0 being fully transparent. |
layer | Layer of the image. Can be any number but is useful to control which Image goes on top of which element. |
border_radius | Used to round the image. Needs to be a number between 1 and 100. 100 being fully round. |
position | Contains “x” and “y”. Used to specify the position of the image. |
size | Contains “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. |
JSON structure
Section titled “JSON structure”{ "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 }}