discord-api-docs
discord-api-docs copied to clipboard
embed thumbnail width and hight doesnt work
Description
In the embeds there is the thumbnail property but the width and height do not work
Steps to Reproduce
Create an embed with a thumbnail and add width and height property
{
color: 9731306,
fields: [],
author: { name: 'Music Added', icon_url: undefined, url: undefined },
thumbnail: {
url: 'https://i.scdn.co/image/ab67616d00001e025fa646a4cfcd17842fdd7bbd',
width: 200,
height: 200
},
description: 'Heart - Alone - 03:38
'
}
Expected Behavior
he thumbnail should have a size of 64x64 pixel
Current Behavior
The size of the image is not changed when the embed is displayed on discord
Screenshots/Videos
Client and System Information
Library: Eris 0.17.1 Debian 11 nodejs: v17.9.0
This is working as intended:
https://discord.com/developers/docs/resources/channel#create-message
For the embed object, you can set every field except type (it will be rich regardless of if you try to set it), provider, video, and any height, width, or proxy_url values for images.
This is working as intended:
https://discord.com/developers/docs/resources/channel#create-message
For the embed object, you can set every field except type (it will be rich regardless of if you try to set it), provider, video, and any height, width, or proxy_url values for images.
I don't really understand what that means
the width and height properties are read-only; the only thing you can set is the url
The comments here are correct, the fields you're talking about are read-only.