Discord Profile
Discord Profile
Section titled “Discord Profile”The discord porile element can be used to directly paste someone’s profile picture on your card by using their user id.
Parameters
Section titled “Parameters”Parameter | Description |
---|---|
id | ID Parameter that will be used in error messages |
type | Element type. In this case it’s “discord_profile” |
user_id | The target user. Must be a discord user id |
transparency | Transparency of the user profile image. Needs to be a number between 1 and 100. 100 being not transparent and 0 being fully transparent. |
layer | Layer of the discord profile. Can be any number but is useful to control which profile 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 discord profile. |
size | Contains “width” and “height”. Used to specify the size of the discord profile. |
JSON structure
Section titled “JSON structure”{ "id": "43", "type": "discord_profile", "user_id": "820655401518235669", "transparency": "100", "layer": "1", "border_radius": "100", "position": { "x": 7.5, "y": 3 }, "size": { "width": "auto", "height": 24 }}